Gross margin and unit economics explained with a simple example
How to calculate gross margin, contribution margin and unit economics for a product or service, and use them to price properly and spot unprofitable sales.
If you remember one idea from this guide, make it this: revenue is not profit, and growth only helps if each sale earns something. Gross margin and unit economics tell you whether it does.
Gross margin in one line
Gross margin = (revenue minus direct costs) divided by revenue.
Direct costs are the costs that exist because you made the sale: materials, packaging, shipping, payment gateway fees, and the labour to deliver. Rent, software and office salaries are generally overheads and come later.
A worked example (illustrative numbers)
Zoya sells a candle gift set for ₹1,000.
| Item | Amount (₹) |
|---|---|
| Selling price | 1,000 |
| Wax, wick and jar | 300 |
| Packaging | 80 |
| Shipping she pays | 120 |
| Payment gateway fee | 25 |
| Direct cost | 525 |
| Gross profit | 475 |
| Gross margin | 47.5% |
Her marketing cost to win a customer through ads is ₹300 per order on average. Now look at one order:
- Gross profit: ₹475
- Minus ad cost: ₹300
- Left to cover rent, tools and her own pay: ₹175
That is unit economics. If her ad cost rose to ₹500, each order would lose money, and selling more would deepen the loss.
Margin vs markup
People mix these up when pricing.
- A product costs ₹60 and sells for ₹100. Margin is 40 percent (profit ÷ price). Markup is 66.7 percent (profit ÷ cost).
- If you want a 40 percent margin, adding a 40 percent markup is not enough. Divide the cost by 0.6 instead.
Questions to ask each month
- Which products or services have the best and worst gross margin?
- Did a cost increase, such as shipping or a supplier price, quietly shrink margin?
- How much does it cost to acquire a customer, and how much gross profit does that customer bring over time?
- After direct costs and acquisition cost, is there anything left?
Mistakes to avoid
- Forgetting hidden direct costs such as returns, discounts and gateway fees.
- Pricing from competitors without checking your own costs.
- Looking only at total profit and missing the loss-making product inside it.
- Ignoring GST. Work with prices and costs excluding GST unless input credit does not apply.
How this fits your finance routine
Good margins start with good records. Use the chart of accounts so direct costs are separated from overheads, and review them in your monthly close. Next, learn how burn rate and runway depend on these numbers. Our virtual CFO service can build this view for you.
Official sources and further reading
The numbers above are illustrations. They are not a calculation for your business. This is general information, not financial advice. See our editorial information for authorship and corrections.
Questions people ask
How do I calculate gross margin?
Subtract the direct cost of goods or services sold from revenue, then divide by revenue. For example, revenue of 100 and direct cost of 60 gives a gross margin of 40 percent.
What is the difference between margin and markup?
Margin is profit as a share of the selling price. Markup is profit as a share of cost. A 60 cost sold at 100 has a 40 percent margin but a 66.7 percent markup.
What is unit economics?
The revenue and costs for a single unit, order or customer, which show whether growth adds profit or adds losses.
What costs count as direct?
Costs that vary with each sale, such as materials, packaging, shipping, payment fees and the labour used to deliver. Rent and general salaries are usually overheads, though some businesses allocate part of them.
Keep reading
- Budget vs actual: how to run a simple monthly reviewBuild a basic budget, compare it to actual results each month, understand variances and decide what to change, with a one-page template and a worked example.
- Burn rate and runway: how long will your cash last?Calculate gross and net burn, work out your runway in months, and decide when to cut costs or raise money, with a worked example and a monthly routine.
- Profit is not cash: why a profitable small business can still run out of moneyThe difference between profit and cash flow, the usual causes of a cash gap, a simple 13-week cash forecast and habits that protect working capital.
Learn about authorship, sources and corrections.
This page is general information, not professional advice. Rules and due dates change by notification; confirm on the official portal or with a qualified CA or CS before you act. Filedge is a technology platform; services are delivered by independent qualified professionals.
Ready to put this into practice?
Explore the service scope and records needed, or keep learning at your own pace.