How to Calculate Net Profit Margin, Gross Margin, and Markup for Small Businesses
Gross margin, net margin and markup measure profit in different ways. Learn each formula, see a small-business example and avoid pricing errors.

Introduction: three numbers every owner should know
A business can grow its sales every month and still run out of cash if its prices do not cover its costs. Three related measures show whether pricing is working: gross margin, net profit margin and markup. They use the same building blocks — revenue, cost of goods and expenses — but answer different questions, and confusing them is one of the most common causes of under-pricing among small firms.
Gross margin shows how much of each sale remains after paying for the product itself. Net margin shows how much remains after every expense, including rent, salaries, interest and tax. Markup shows how much is added to cost to set the selling price.
- Key takeaway: gross margin = (revenue − cost of goods sold) ÷ revenue.
- Key takeaway: net margin = net profit ÷ revenue, after all expenses and tax.
- Key takeaway: markup is based on cost, margin on price — a 50% markup equals only a 33.3% margin.
Gross margin and markup at the product level
Cost of goods sold (COGS) includes the direct costs of making or buying what you sell: materials, wholesale purchase price, direct labour and inbound shipping. Suppose a shop buys a product for $30 and sells it for $50. Gross profit is $20. The gross margin is $20 ÷ $50 = 40%. The markup is $20 ÷ $30 = 66.7%. Both are correct; they simply use different bases.
Owners often set prices with a markup target but read their accounts in margins. If you want a 40% gross margin, you need a 66.7% markup, not a 40% markup. A 40% markup on a $30 cost gives a $42 price and only a 28.6% margin.
Gross margin % = (Price − Cost) ÷ Price × 100
Markup % = (Price − Cost) ÷ Cost × 100
Price for a target margin = Cost ÷ (1 − Target margin)
$30 ÷ (1 − 0.40) = $50
From gross profit to net profit: a worked example
Margins at the product level are only the start. A business must also pay operating expenses — rent, wages, marketing, software, insurance — plus interest and tax. Consider a small retailer with annual revenue of $200,000 and COGS of $120,000. Gross profit is $80,000, a 40% gross margin. Operating expenses total $55,000, leaving operating profit of $25,000 (12.5%). After $3,000 of interest and $5,500 of tax, net profit is $16,500, a net margin of 8.25%.
The gap between the 40% gross margin and the 8.25% net margin is typical. It shows why a product that looks very profitable on its own can contribute little once overheads are allocated.
| Line item | Amount | % of revenue |
|---|---|---|
| Revenue | $200,000 | 100% |
| Cost of goods sold | $120,000 | 60% |
| Gross profit | $80,000 | 40% |
| Operating expenses | $55,000 | 27.5% |
| Operating profit | $25,000 | 12.5% |
| Interest and tax | $8,500 | 4.25% |
| Net profit | $16,500 | 8.25% |
What good margins look like
Healthy margins vary widely by industry. Grocery retailers often operate on net margins of 1% to 3% because they rely on high volume. Restaurants commonly report net margins in the low single digits. Software and consulting firms, with low direct costs, can achieve gross margins above 70% and net margins of 15% or more. Comparing your figures with businesses of similar size and sector is more useful than chasing a universal target.
Track margins over time as well. A falling gross margin can signal rising supplier costs or excessive discounting; a falling net margin with a stable gross margin points to growing overheads. Monthly or quarterly review lets owners adjust prices or costs before problems become serious.
Discounts deserve particular attention. A 10% price cut on a product with a 40% gross margin reduces gross profit per unit by a quarter, so sales volume must rise by about a third just to earn the same total gross profit. Running that calculation before launching a promotion often changes the decision.
Common mistakes to avoid
The most frequent errors are mixing up markup and margin, leaving variable costs such as payment-processing fees and packaging out of COGS, and ignoring the owner's own time. Many sole traders do not pay themselves a salary, which inflates apparent profit. Another mistake is applying a single markup across all products, even when some items carry higher handling, storage or return costs. Calculating margins for each product line reveals which items subsidise others.
Conclusion
Gross margin tells you whether each sale covers its direct cost; net margin tells you whether the business as a whole is profitable; markup is the practical tool for setting prices that achieve both. Calculate all three, use the target-margin formula when pricing, and review them regularly. To see how many sales are needed to cover your fixed costs, read our break-even analysis guide.
For informational purposes only. This article is not financial advice.
Comments (0)
Loading comments…


