📐 Gross Margin Calculator — Revenue, COGS & Gross Profit %
Calculate gross margin %, gross profit in dollars, markup %, and the exact selling price needed to hit any target margin. Three modes: find your margin, find your price, or find your maximum COGS — all instant, all free.
📐 Gross Margin Calculator
Find gross margin from revenue and COGS, reverse to a selling price, or calculate your maximum allowable cost of goods
| Volume (units) | Revenue | Total COGS | Gross Profit |
|---|
What Is Gross Margin?
Gross margin is the percentage of revenue that remains after subtracting the cost of goods sold (COGS). It is the most fundamental profitability metric in business — the first line of defence between your revenue and actual profit. Every business must understand its gross margin before making any pricing, production, or growth decision.
If your business generates $100,000 in revenue and your COGS is $60,000, your gross profit is $40,000 and your gross margin is 40%. That 40% is what remains to cover operating expenses like salaries, rent, and marketing — and ultimately generate net profit. A business with a 10% gross margin and high overhead will always struggle, regardless of revenue growth.
Gross Profit $ = Revenue − COGS
Required Revenue = COGS ÷ (1 − Target Margin %)
Maximum COGS = Revenue × (1 − Required Margin %)
Gross Profit = $4,000 → Gross Margin = 4,000 ÷ 10,000 = 40% → Markup = 4,000 ÷ 6,000 = 66.7%
Gross Margin vs Net Margin — What Each Actually Measures
Gross margin and net margin are both expressed as percentages of revenue, but they measure very different things. Gross margin only deducts the direct costs of producing or purchasing what you sell. Net margin deducts everything — COGS, operating expenses, interest, and tax.
| Metric | Deductions | What It Tells You | Typical Range |
|---|---|---|---|
| Gross Margin | COGS only | Product/service profitability | 20–80% |
| Operating Margin | COGS + operating expenses | Business efficiency | 5–30% |
| Net Margin | All expenses + tax | True bottom-line profitability | 2–20% |
A business can have a 60% gross margin and still be unprofitable if its operating costs are excessive. Gross margin is the ceiling — net profit is the floor. Both matter, but gross margin is where sustainable profitability begins.
Why Gross Margin and Markup Are Not Interchangeable
Gross margin is calculated as a percentage of the selling price. Markup is calculated as a percentage of the cost. Confusing the two is one of the most expensive pricing errors in business — it consistently leads to underpricing.
Gross Margin % = Markup % ÷ (1 + Markup %) × 100
| If COGS = $50 | Gross Margin % | Markup % | Selling Price |
|---|---|---|---|
| 20% margin target | 20% | 25% | $62.50 |
| 30% margin target | 30% | 42.9% | $71.43 |
| 40% margin target | 40% | 66.7% | $83.33 |
| 50% margin target | 50% | 100% | $100.00 |
What Is a Good Gross Margin by Industry?
Gross margin norms vary dramatically across industries. A 20% gross margin is excellent in grocery retail but catastrophically low for a software company. Always benchmark against your specific sector.
| Industry | Typical Gross Margin | Key Driver |
|---|---|---|
| SaaS / Software | 70–90% | Near-zero marginal cost per user |
| Professional Services | 60–75% | Direct labour is primary COGS |
| Branded Apparel / Fashion | 55–70% | Manufacturing cost vs retail price gap |
| Ecommerce (DTC brand) | 40–60% | Product cost + fulfilment + returns |
| Retail — General | 30–50% | Wholesale cost vs selling price |
| Restaurants | 60–70% | Food cost ~30–35% of revenue |
| Manufacturing | 25–40% | Raw materials + direct labour |
| Grocery / Food Retail | 20–30% | Low markup, high volume model |
| Construction | 15–25% | Materials + subcontractor costs |
How to Increase Your Gross Margin
1. Reduce COGS Through Supplier Negotiation
Renegotiate supplier contracts as your order volume grows. Even a 5% reduction in COGS on a 40% margin product improves gross margin to 42.9% — meaningful at scale. Consider consolidating suppliers to increase leverage and explore alternative materials or components without sacrificing quality.
2. Increase Selling Price Strategically
Price increases have a disproportionately large impact on margin because revenue rises while COGS stays fixed. A 10% price increase on a $100 product with $60 COGS raises gross margin from 40% to 45.5% — the same COGS now represents a smaller portion of a higher revenue base.
3. Shift Product Mix Toward Higher-Margin Items
Not all products carry equal margins. Identify your highest-margin SKUs and invest marketing and shelf space in promoting them. Phasing out or repricing chronic low-margin products raises blended gross margin without touching a single supplier contract.
4. Add Value to Justify Premium Pricing
Customers pay premium prices for perceived value — branding, packaging, guarantee, service, and convenience. Investing in brand differentiation lets you command higher prices on the same COGS, directly expanding gross margin without operational changes.