How it is calculated
- Net revenue
Sales − returns and discounts - Gross margin
(Net revenue − cost of sales) ÷ net revenue × 100 - Operating result
Net revenue − cost of sales − operating expenses - Net profit
Operating result − financial costs − income tax
This calculator shows how every unit of currency you take in over a period is split. You enter sales, cost of sales and expenses, and you get the gross margin, the operating margin and the net margin, each with its amount and its percentage. It helps you see where most of the money drops out along the way: in the cost of what you sold, in running expenses or in tax.
How to use the calculator
All amounts belong to the same period (a month, a quarter, a year) and are entered before tax.
- Sales: revenue from sales in the period.
- Returns and discounts: subtracted from sales. Optional.
- Cost of sales: the direct cost of what you sold, such as purchases, materials or the direct cost of the service.
- Operating expenses: rent, staff, advertising, utilities and similar. You can enter one total figure or break it down.
- Financial costs: interest and similar. Optional.
- Income tax: if you want to include it, enter the amount. The calculator does not estimate rates or tax due.
If you do not enter any tax, the net margin equals the margin before tax, and the calculator says so.
The levels of the result
The result is presented as a cascade. Each margin is expressed as a percentage of net revenue.
Gross margin
Net revenue = Sales − Returns and discounts
It measures what is left after paying for what you sold, before any running expense.
Operating margin
Operating result = Gross profit − Operating expenses
It measures what the activity leaves once running expenses are covered.
Margin before tax
Result before tax = Operating result − Financial costs
Net margin
Net result = Result before tax − Income tax
Net margin answers the question “for every 100 I take in, how much is left at the end?”, with the items you have chosen to include.
Three worked examples
The examples use plain numbers with no currency.
Example 1: a shop with no tax in the calculation
| Item | Amount | % of net revenue |
|---|---|---|
| Sales (= net revenue) | 100,000 | 100% |
| Cost of sales | 60,000 | 60% |
| Gross profit | 40,000 | 40% (gross margin) |
| Operating expenses | 25,000 | 25% |
| Operating result | 15,000 | 15% |
| Financial costs | 1,000 | 1% |
| Result before tax | 14,000 | 14% |
| Income tax (not included) | 0 | |
| Net result | 14,000 | 14% (net margin) |
Out of every 100 taken in, 40 is left over after the cost of what was sold and 14 reaches the end of the journey.
Example 2: a service business
Sales: 48,000. Direct cost of the services: 18,000. Operating expenses: 20,000. No other items.
- Gross profit: 48,000 − 18,000 = 30,000 → gross margin 62.50%
- Operating result: 30,000 − 20,000 = 10,000 → operating margin 20.83%
- Net result: 10,000 → net margin 20.83%
A high gross margin is common when direct costs are low. It does not mean there is a lot of money left over: here operating expenses take two thirds of the gross profit.
Example 3: returns, financial costs and income tax
Sales: 260,000. Returns and discounts: 10,000. Cost of sales: 150,000. Operating expenses: 70,000. Financial costs: 5,000. Income tax: 6,250 (an example amount, not a rate).
- Net revenue: 260,000 − 10,000 = 250,000
- Gross profit: 250,000 − 150,000 = 100,000 → 40%
- Operating result: 100,000 − 70,000 = 30,000 → 12%
- Before tax: 30,000 − 5,000 = 25,000 → 10%
- Net result: 25,000 − 6,250 = 18,750 → 7.50%
All percentages are calculated on 250,000, not on the sales of 260,000. If you used 260,000, the net margin would come out at 7.21%, which is wrong.
When the result is negative
The calculator accepts negative results and shows them as a loss. With revenue of 20,000, cost of sales of 12,000 and expenses of 10,000:
- Gross profit: 8,000 → gross margin of 40%
- Operating result: −2,000 → operating margin of −10%
The gross margin is positive and the business still loses money. When this happens, the problem is usually in operating expenses, not in the price.
Gross margin and profit margin
The profit margin of a product is (price − cost) ÷ price, and the profit margin calculator works it out per unit. The gross margin for the period is the result of combining all your sales. With two products:
| Product | Sales | Cost of sales | Margin |
|---|---|---|---|
| A | 60,000 | 30,000 | 50% |
| B | 40,000 | 30,000 | 25% |
| Total | 100,000 | 60,000 | 40% |
The overall gross margin (40%) is an average weighted by sales. The same gross margin can hide very profitable products and others that barely leave any margin.
Net margin and net profit are not the same
- The net margin is a percentage: 14% in example 1.
- The net profit (or net result) is an amount: 14,000.
And neither is the markup on cost, which measures profit against cost and not against sales. To see both percentages for a specific product, use the profit margin calculator.
Sales tax, tax withheld on invoices and income tax
- Sales tax (VAT, GST or similar): not included in sales or expenses. It is neither income nor an expense of the business for the purposes of these margins.
- Tax withheld by clients on invoices (where this exists in your country): it is an amount that appears on some invoices and is not the same as income tax on the profits of the business. It should not be entered in this calculator’s tax field.
- Income tax: if you include it, enter an amount. The tax that applies to each business depends on its legal form and its situation, and the calculator does not estimate it. If you are unsure how to work it out, ask a professional. To compare the profitability of the activity, you can stop at the margin before tax.
Common mistakes
Thinking gross margin is what you keep
A 40% gross margin does not mean earning 40%. Operating expenses, financial costs and, where relevant, tax are still to come.
Including tax in sales or expenses
Mixing amounts with and without sales tax distorts every margin. Always use figures before tax.
Classifying items differently each time
If one month you put transport under cost of sales and the next under operating expenses, the margins are not comparable. Choose a criterion and stick to it. The calculator does not validate how you classify each item or its tax treatment.
Leaving out your own work
If you work in the business yourself and your time appears in no item, your margin will come out higher than that of a business that does pay wages. Compare with care.
Comparing margins across different sectors
A 7.5% net margin can be normal in one sector and low in another. The useful comparison is your own over time, with the same criteria.
More on how we write and review this content in Methodology.
Frequently asked questions
What is net revenue?
The period’s sales minus returns and discounts. It is the base for all the percentages.
Are gross margin and profit margin the same thing?
No. The profit margin of a product uses its price and its cost; gross margin is for the whole business over a period, on net revenue.
What goes under operating expenses?
Running costs for the period that are not cost of sales: rent, utilities, staff, advertising… Always use amounts from the same period.
Can the result be negative?
Yes. If costs and expenses exceed sales, the result is a loss and the calculator shows it with a minus sign.