Financial Ratios & Valuation
Gross Profit Margin: Formula and How to Improve It
Gross profit margin is the share of revenue left after subtracting the cost of goods sold (COGS), expressed as a percentage. The formula is (Revenue − COGS) ÷ Revenue × 100. A company with $1,000,000 in revenue and $600,000 in COGS has a gross profit of $400,000 and a gross profit margin of 40%. It measures how efficiently a business turns direct production costs into profit before overhead, interest, and taxes.
Gross profit margin formula
Gross profit margin equals gross profit divided by revenue, times 100. Gross profit is revenue minus cost of goods sold. COGS covers only the direct costs of producing what you sell: materials, direct labor, and inbound freight. Operating expenses like rent, marketing, and salaries for non-production staff are excluded.
The two-step calculation:
- Gross profit = Revenue − COGS
- Gross profit margin = (Gross profit ÷ Revenue) × 100
Worked example: a retailer sells $800,000 of goods that cost $520,000 to acquire. Gross profit is $280,000. Gross profit margin is ($280,000 ÷ $800,000) × 100 = 35%. For every dollar of sales, 35 cents remains to cover overhead and generate net profit.
Note the difference between gross profit (a dollar figure) and gross profit margin (a percentage). The dollar figure tells you the absolute contribution; the percentage lets you compare periods, products, and competitors on a like-for-like basis regardless of size.
What counts as COGS
COGS includes the direct costs tied to producing or acquiring the goods and services a company sells. For a manufacturer, that means raw materials, direct labor on the production line, and factory overhead allocated to units made. For a retailer, it is mainly the wholesale purchase price plus inbound freight.
Costs that stay out of COGS and therefore do not reduce gross margin: administrative salaries, sales commissions, marketing, rent on office space, and interest. These sit lower on the income statement as operating or non-operating expenses. Misclassifying an expense (for example, putting shipping-to-customer in COGS versus operating expenses) can shift the reported margin, so consistent treatment matters for period-to-period comparison. For a full breakdown of what belongs in the calculation, see our guide to cost of goods sold.
Because gross margin depends directly on COGS, anything that moves your direct costs (supplier pricing, input inflation, inventory shrinkage, wasted material) moves the margin. This is the mechanical link that makes gross margin the first place analysts look when a company’s profitability slips.
Gross vs operating vs net margin
The three profit margins strip out progressively more cost as you move down the income statement. Gross margin removes only COGS. Operating margin also removes operating expenses. Net margin removes everything, including interest and taxes. Each answers a different question about the same business.
| Margin | Formula | What it subtracts | What it measures |
|---|---|---|---|
| Gross profit margin | (Revenue − COGS) ÷ Revenue | Direct production costs only | Production and pricing efficiency |
| Operating margin | Operating income ÷ Revenue | COGS + operating expenses (SG&A, R&D, depreciation) | Management and overhead efficiency |
| Net profit margin | Net income ÷ Revenue | All costs, including interest and taxes | Overall bottom-line profitability |
Gross margin is always the highest of the three because it deducts the fewest costs. A worked chain on $1,000,000 revenue: COGS of $600,000 gives a 40% gross margin; after $250,000 of operating expenses, operating income is $150,000, a 15% operating margin; after $30,000 interest and $30,000 tax, net income is $90,000, a 9% net margin.
Reading them together is more useful than any single number. A high gross margin with a thin net margin points to heavy overhead, interest, or tax drag rather than a production problem. A falling gross margin usually signals rising input costs or pricing pressure. For how these ratios sit within the full statement, see how to read an income statement.
Gross profit margin benchmarks by industry
A good gross profit margin depends heavily on the industry, because cost structures differ. Software and other digital businesses carry almost no marginal production cost and often post gross margins above 70%. Grocery and auto retail run on high volume and thin margins, frequently in the 10% to 25% range. Comparing a business against its own sector matters far more than against a cross-industry average.
Approximate gross profit margin ranges, drawn from published market data and company filings. Treat these as directional; actual figures vary by company, year, and accounting choices.
| Industry | Typical gross profit margin |
|---|---|
| Packaged / SaaS software | 70% to 85% |
| Apparel and accessories | 45% to 55% |
| Pharmaceuticals | 60% to 70% |
| Restaurants | 30% to 45% |
| General merchandise / big-box retail | 25% to 35% |
| E-commerce (varies by first vs third party) | 25% to 50% |
| Grocery | 20% to 25% |
| Construction | 15% to 25% |
| Auto and truck manufacturing | 10% to 20% |
| Paper and steel | 8% to 15% |
The cross-industry average gross margin often cited from market datasets sits near 35% to 37%, but that blend has little meaning for any single company. A 25% margin can be strong for a grocer and weak for a software firm. When benchmarking, match the comparison set on sector, business model (product vs service), and stage, then look at the trend in your own margin over several periods rather than a single snapshot.
How to improve gross profit margin
You can raise gross profit margin only two ways: increase revenue relative to COGS, or reduce COGS relative to revenue. Every practical tactic maps to one of those levers. Because the margin is a ratio, a small price increase that holds volume can move it more than a large cost cut, since the added revenue carries almost no matching cost.
The main levers, with the mechanism each one uses:
- Raise prices selectively. A 5% price increase on a product with a 40% margin lifts that product’s gross margin toward roughly 43%, assuming volume holds and cost is unchanged, because the extra revenue drops almost entirely into gross profit.
- Negotiate supplier costs. Bulk discounts, early-payment terms, or long-term contracts cut the per-unit input cost that sits in COGS, directly widening the margin.
- Shift the product mix. Steering sales toward higher-margin lines raises the blended margin without changing any single product’s price or cost.
- Reduce waste and shrinkage. Better inventory control lowers spoilage, obsolescence, and theft, all of which inflate COGS relative to sales.
- Improve production efficiency. Automating repetitive steps and reducing rework lowers direct labor per unit, one of the larger COGS components in manufacturing.
Discounting cuts the other way: a 20% discount on a product carrying a 40% gross margin can erase roughly half the gross profit on each unit sold, so heavy promotions may raise revenue while shrinking margin. The related idea of contribution margin, which subtracts only variable costs, can help decide whether a price or a discount still covers the costs that actually change with volume.
Frequently asked questions
What is a good gross profit margin?
A good gross profit margin depends on the industry. Software firms often exceed 70%, while grocers and auto sellers may run 10% to 25%. The cross-industry average sits near 35% to 37%, but that blend is not a target for any single business. Compare your margin against sector peers and against your own trend over time, not against a universal number.
How do you calculate gross profit margin?
Subtract cost of goods sold from revenue to get gross profit, then divide gross profit by revenue and multiply by 100. For example, $500,000 revenue minus $300,000 COGS equals $200,000 gross profit; divided by $500,000 and multiplied by 100 gives a 40% gross profit margin. Include only direct production costs in COGS, not overhead or interest.
What is the difference between gross profit and gross profit margin?
Gross profit is a dollar amount: revenue minus COGS. Gross profit margin is that figure expressed as a percentage of revenue. A business with $400,000 gross profit on $1,000,000 revenue has a 40% gross profit margin. The dollar figure shows absolute contribution; the percentage allows comparison across periods, products, and companies of different sizes.
Is a higher gross profit margin always better?
A higher gross profit margin is generally better because it leaves more to cover overhead and profit, but context matters. A high gross margin paired with a thin net margin can signal heavy operating costs, interest, or taxes. In some cases a lower-margin, high-volume model can generate more total profit than a high-margin, low-volume one. Read the margin alongside operating and net margin.
Why is gross margin higher than operating and net margin?
Gross margin subtracts only cost of goods sold, so it deducts the fewest costs of the three. Operating margin also removes operating expenses like rent, marketing, and administrative salaries. Net margin removes everything else, including interest and taxes. Each step down the income statement takes out more cost, so gross margin is always the largest and net margin the smallest.
Can gross profit margin be negative?
Yes. Gross profit margin is negative when COGS exceeds revenue, meaning a company spends more to produce or acquire its goods than it earns selling them. This can happen with deep discounting, cost spikes, or pricing below cost to gain market share. A sustained negative gross margin is a serious warning sign, since the business loses money before any overhead is even counted.
Reviewed by The Ledgerism Editorial Team. Last reviewed: July 2026.