How to Calculate Gross Profit Margin
Gross profit margin is the share of revenue left after paying the direct cost of what you sold: (Revenue - COGS) / Revenue × 100. On $100,000 of revenue with $55,000 in cost of goods sold, gross profit is $45,000 and the margin is 45% – you keep 45 cents of every sales dollar before rent, payroll, and overhead.
Gross profit margin is the share of revenue left after paying the direct cost of what you sold: (Revenue - COGS) / Revenue × 100. On $100,000 of revenue with $55,000 in cost of goods sold, gross profit is $45,000 and the margin is 45% – you keep 45 cents of every sales dollar before rent, payroll, and overhead.
What gross profit margin actually measures
Gross profit margin answers one question: of every dollar customers pay you, how much remains after you cover the direct costs of delivering what they bought? Those direct costs are called cost of goods sold, or COGS, and they include raw materials, manufacturing, wholesale purchase prices, inbound freight, and direct labor tied to production. For a service business, COGS might be contractor fees, cloud hosting required to deliver the product, or the per-project software licenses your team needs to do client work.
Because gross margin strips out rent, marketing, administrative salaries, and other overhead, it isolates the health of your core product economics. A company can run brilliant marketing and still fail if its gross margin is too thin, because every new sale pushes the business further underwater. Conversely, a company with a strong gross margin has room to fix other problems: it can absorb a price war, fund product improvements, and survive rising input costs longer than a thin-margin rival. This is why investors and lenders look at gross margin before almost any other number.
The gross margin formula
The calculation takes two lines. First compute gross profit, then convert it to a percentage of revenue:
Gross Profit = Revenue - COGS
Gross Profit Margin = (Revenue - COGS) / Revenue × 100
Dividing by revenue turns a dollar figure into a percentage, which is what makes comparison possible across products, months, competitors, and industries. The same math applied to a single unit – unit price minus unit cost, divided by unit price – gives unit margin, which is handy when your product mix shifts and you want to see whether the blend is drifting. If you also want the layers below gross profit, the operating margin calculator and net profit margin calculator continue the same logic with more cost layers included.
Worked example: $100,000 revenue and $55,000 COGS
- Start with revenue: $100,000 in total sales for the quarter.
- Subtract COGS: $55,000 spent on inventory, manufacturing, and direct fulfillment. Gross profit = $100,000 - $55,000 = $45,000.
- Divide gross profit by revenue: $45,000 / $100,000 = 0.45.
- Multiply by 100 to convert to a percentage: 0.45 × 100 = 45%.
That 45% means every $1.00 of sales leaves $0.45 available to cover operating expenses and, eventually, to become profit. The number is most useful in motion. If next quarter COGS rises to $62,000 on the same revenue, gross margin falls to 38% – a visible, early signal to renegotiate supplier pricing, trim waste, or adjust retail prices before the squeeze reaches net income. A margin that holds steady while revenue grows is a healthy sign; a margin that erodes as you grow usually means volume is being bought with discounts that outrun your cost advantages.
Gross vs. operating vs. net margin
The three margin layers each subtract a different set of costs, and keeping them distinct prevents the most common pricing and reporting mistakes. Using the same $100,000 revenue and $55,000 COGS:
| Margin type | Formula | What it subtracts | Example on $100,000 revenue |
|---|---|---|---|
| Gross margin | (Revenue - COGS) / Revenue | Direct production costs only | 45% (gross profit $45,000) |
| Operating margin | Operating income / Revenue | COGS plus rent, payroll, marketing, admin | 18% (operating income $18,000) |
| Net margin | Net income / Revenue | Every cost, including interest and taxes | 12% (net income $12,000) |
Notice how the percentage shrinks as more cost layers are subtracted. A 45% gross margin paired with a 12% net margin is entirely normal for many businesses; a 45% gross margin with a 44% net margin would be extraordinary. When someone quotes a "margin" without saying which one, ask. Mixing gross margin into a conversation about net profitability – or benchmarking one against the other – is how businesses convince themselves they are healthier than the bank statement says.
Industry benchmarks (approximate ranges)
Gross margins vary enormously by business model, so compare yourself to your own industry and model, not to a universal number. The ranges below are approximate figures commonly cited for planning purposes, and actual results differ by company, product line, and year. Treat them as orientation, not targets.
| Industry | Typical gross margin range |
|---|---|
| Restaurants and food service | Roughly 25% to 35% |
| Retail (general merchandise) | Roughly 25% to 45% |
| Grocery stores | Roughly 20% to 30% |
| Manufacturing | Roughly 25% to 40% |
| Professional services | Roughly 50% to 70% |
| SaaS and software | Roughly 70% to 90% |
- Restaurants sit low on the list because food cost and kitchen labor both count as direct costs, so they compensate with table turnover and tight waste control rather than margin.
- Retailers buy at wholesale and sell at retail; keystone-style pricing – roughly doubling the wholesale cost – produces about a 50% gross margin before markdowns and shrinkage erode it.
- Software margins are high because each additional subscription costs very little to deliver, but heavy R&D and sales spending show up below the gross line, which is why a 80% gross margin SaaS can still lose money overall.
How to improve gross margin
- Renegotiate supplier pricing, consolidate vendors, or shift to better-terms suppliers to lower unit COGS without touching the product.
- Raise prices on the products with the strongest demand, testing small increases first and watching volume rather than guessing.
- Shift the sales mix toward higher-margin items through bundling, merchandising, and default options.
- Cut production waste, defect rates, and shipping damage, which inflate COGS without adding anything customers will pay for.
- Automate or outsource direct labor where the payback period is short and quality is unchanged.
Two levers usually dominate: price and unit cost. A two-point price increase on a 45% margin business lifts margin faster than a two-point cost cut, because the increase flows straight through, but price moves risk volume while cost cuts rarely do. Track the effect of any change for at least a full quarter before judging it.
Common mistakes when calculating gross margin
- Confusing markup with margin: a 50% markup produces only a 33.3% margin, so planning "50% margins" by marking up cost by 50% silently leaves money on the table.
- Leaving hidden costs out of COGS, such as payment processing on product sales, inbound freight, custom packaging, or fulfillment fees charged per order.
- Benchmarking against the wrong layer – comparing your gross margin to a competitor's net margin, or to a published figure from a different business model entirely.
- Ignoring mix: blended margin can fall while every individual product's margin stays flat, simply because low-margin products grew faster than the rest.
- Annualizing one good month: a holiday quarter with rich margins is not a run rate, so always measure over a full seasonal cycle.
Once you know your gross margin, the natural next questions are whether your price covers overhead (that is a break-even question) and whether the number trends up or down quarter over quarter. Run your own figures in the gross margin calculator, set a reminder to recheck each quarter, and treat a two-point slide as an action item rather than background noise.
Calculators for this project
Frequently asked questions
What is a good gross profit margin?
There is no universal target. Retailers and restaurants often run 25–45% because their direct costs are high, professional services commonly land near 50–70%, and software frequently exceeds 70%. A good margin is one at or above the typical range for your business model and stable or improving over time.
Is gross margin the same as markup?
No. Markup is profit divided by cost; margin is profit divided by selling price. A 50% markup on a $100 item gives a $150 price and a 33.3% margin. Mixing the two bases is one of the most common and most expensive pricing errors in small business.
Do labor costs count in COGS?
Direct labor that goes into producing the goods or delivering the service does – production workers, contract manufacturers, delivery crews. General staff, administrative payroll, sales commissions, and management salaries belong in operating expenses instead.
Can gross margin be negative or above 100%?
A negative gross margin is possible and means you are selling below direct cost – every sale deepens the loss, so it is a pricing emergency, not a rounding issue. Margins above 100% do not occur in normal accounting, because COGS cannot be less than zero.
Method and sources
- Investopedia – Gross Margin: https://www.investopedia.com/terms/g/grossmargin.asp
- Corporate Finance Institute – Gross Profit Margin: https://corporatefinanceinstitute.com/resources/accounting/gross-profit-margin/
- AccountingTools – Gross Margin Definition: https://www.accountingtools.com/articles/gross-margin