Profit Margin Calculator: Gross, Operating, Net Margin and Markup in One Form
This profit margin calculator gives you four numbers from one form: gross margin, markup, operating margin and net margin. Enter revenue and product cost to see gross margin and markup. Add ad spend, other operating costs, and interest and tax to see operating and net margin. You never have to type revenue into a second calculator.
What each input means
- Revenue or selling price: what customers paid you, without GST or VAT. This can be one order, one product or a full month.
- Product cost (COGS): the landed cost of the goods you sold. That means factory price, inbound freight, import duty and packaging.
- Ad spend: what you paid Meta, Google and other ad platforms in the same period.
- Other operating costs: salaries, rent, 3PL, outbound shipping, payment fees and apps.
- Interest and tax: loan interest and income tax. These are used only for net margin.
Worked example in rupees
- Revenue ₹1,00,000, product cost ₹45,000. Gross profit = ₹55,000. Gross margin = 55,000 ÷ 1,00,000 × 100 = 55%.
- Markup = 55,000 ÷ 45,000 × 100 = 122.2%.
- Ad spend ₹25,000 plus other costs ₹10,000. Operating income = 55,000 − 35,000 = ₹20,000. Operating margin = 20%.
- Interest and tax ₹4,000. Net profit = ₹16,000. Net margin = 16%.
The verdict line reads: you keep about ₹16 of every ₹100. One rule matters more than any other here. Use the same time period for every input. If you put monthly revenue next to yearly rent, every margin will be wrong.
How to Use This Profit Margin Calculator
- Pick a currency chip: ₹, $, £ or €. The ₹ chip uses Indian grouping (1,50,000). The others use US grouping (150,000).
- Type your revenue and product cost. Commas are fine, so 2,000 works. On a phone you get a decimal keypad.
- Read the gross margin tile and the 'Markup (profit % on cost)' tile. They update as you type.
- Add ad spend, other operating costs, and interest and tax to see operating and net margin.
- Read the one-line verdict. It judges net margin if you entered costs, and gross margin if you did not.
- Enter a target margin to see the selling price and markup you need at your product cost.
- Check the formula lines. Each margin is shown worked out with your own numbers.
- Use 'Copy link' to save all inputs in a URL you can share, or Save as PDF.
If a field is empty or zero, the result shows a dash instead of an error.
Profit Margin Formula: Gross, Operating and Net Margin
The profit margin formula is profit divided by revenue, times 100. What changes between gross, operating and net margin is which costs you subtract before you divide.
| Margin | Costs subtracted | ₹ example (revenue ₹1,00,000) | $ example (revenue $40,000) |
|---|---|---|---|
| Gross | COGS only | ₹55,000 → 55% | $40,000 − $16,000 = $24,000 → 60% |
| Operating | COGS + operating costs, including ads | ₹20,000 → 20% | $24,000 − $14,000 = $10,000 → 25% |
| Net | All of the above + interest and tax | ₹16,000 → 16% | $10,000 − $2,000 = $8,000 → 20% |
A note for Shopify stores
Shopify's profit reports work out gross margin on net sales, which means after discounts and refunds. They only count products that had a cost per item saved at the time of the sale. So your report margin can be lower than the margin you see on the product page. Orders placed before you add a cost per item are left out of the profit report.
Two mistakes to avoid
- Calling EBITDA margin 'profit margin'. EBITDA adds back depreciation and amortisation, so it is not your net margin.
- Dividing profit by cost. That gives markup, not margin.
Markup vs Margin: Why a 50% Markup Is Only a 33% Margin
Markup vs margin comes down to the number you divide by. Margin divides profit by the selling price. Markup divides profit by the cost. When you make a profit, the cost is smaller than the price, so markup is always the bigger number.
These conversions follow the definitions in Xero's markup vs margin guide.
| Markup | Margin |
|---|---|
| 20% | 16.7% |
| 25% | 20% |
| 33.3% | 25% |
| 50% | 33.3% |
| 75% | 42.9% |
| 100% | 50% |
| 150% | 60% |
| 200% | 66.7% |
A D2C example
A brand buys a bottle for ₹500 and sells it at '2x cost', so ₹1,000. The founder thinks that is a 100% margin. It is a 100% markup and a 50% margin. Now take off ₹300 of Meta ads per order and ₹120 for shipping and payment fees. Only ₹80 is left, which is 8% of the price.
That is why the tool labels the tile 'Markup (profit % on cost)'. You can see straight away which number you are reading.
Profit Percentage Calculator: The Cost-Price Method From Indian School Maths
If you studied in India, you learned profit percentage on cost price. This tool works as a profit percentage calculator too, because the formula taught in school is the same as markup. Cuemath sets it out like this:
Example: CP ₹400, SP ₹500. Profit = ₹100. Profit % = 100 ÷ 400 × 100 = 25%. Margin = 100 ÷ 500 × 100 = 20%. That is the same sale described by two different numbers.
Why this matters
Investors, marketplaces and most finance software talk about margin on selling price. If you say '25% profit' and mean profit on cost, a buyer may hear 25% margin. The gap gets wider as prices rise. A 150% profit % is only a 60% margin.
Reverse and loss formulas
- SP = CP × (100 + Profit %) ÷ 100
- CP = SP × 100 ÷ (100 + Profit %)
- Loss % = (CP − SP) ÷ CP × 100. Example: CP ₹800, SP ₹680 gives a loss of ₹120, which is 15%.
Operating Margin: What Counts as an Operating Expense for a D2C Brand
Operating margin is operating income divided by net revenue, times 100. Operating income is revenue minus COGS minus operating expenses. Interest and income tax are left out, as CMC Markets explains.
Operating expenses checklist for D2C
- Meta, Google and marketplace ads
- Salaries, freelancers and agency retainers
- Warehouse or 3PL fees and outbound shipping
- Payment gateway fees. In India, also COD handling fees and RTO (return to origin) costs
- Shopify apps, SaaS tools and rent
Ad spend is an operating cost, not COGS. It does not change what a unit costs to make. This is the line that often turns a healthy 60% gross margin into a thin operating margin.
The 2027 change: IFRS 18
IFRS 18 takes effect on 1 January 2027 and replaces IAS 1. It requires an 'operating profit' subtotal and a 'profit before financing and income taxes' subtotal. If you raise money from investors who read IFRS statements, expect operating profit to be shown more consistently.
Which margin to use when
- Operating margin: how well the business runs before financing.
- EBITDA margin: operating profit with depreciation and amortisation added back. Common in investor decks.
- Net margin: what is left for owners after everything.
Your Margin After Meta and Google Ads, and Your Break-Even ROAS
Fill in the ad spend field and your operating and net margins show what is left after marketing, not just after product cost. For brands that pay for most of their traffic, this is the number that decides whether you are actually making money.
Use the margin after COGS and variable costs such as shipping and payment fees, as described in Omniconvert's ROAS guide. You can work this out by hand from your margin, or use the ROAS Calculator.
| Margin | Break-even ROAS |
|---|---|
| 60% | 1.67x |
| 50% | 2x |
| 40% | 2.5x |
| 35% | 2.86x |
| 25% | 4x |
| 20% | 5x |
Example: the same 3x ROAS, two results
- You spend ₹10,000 on ads and get ₹30,000 in sales (3x ROAS).
- At a 25% margin you keep ₹7,500 before ads. After ads that is a loss of ₹2,500.
- At a 50% margin you keep ₹15,000 before ads. After ads that is a profit of ₹5,000.
Use the margin of the product you are advertising, not your blended store margin. A discounted hero product can have a much lower margin than the store average. Set your target ROAS above break-even so there is room for the net margin you want. If you want this checked every day against real ad spend, ScaleWin tracks profit after Meta and Google ads automatically.
How to Price a Product for a Target Margin
To hit a target margin, divide cost by one minus the margin. Do not just add the margin percentage to the cost.
- ₹ example: cost ₹700, target 30%. Price = 700 ÷ 0.70 = ₹1,000. Adding 30% to cost gives ₹910, which is only a 23.1% margin.
- $ example: cost $18, target 40%. Price = 18 ÷ 0.60 = $30. Markup = 12 ÷ 18 = 66.7%.
The calculator has this built in. Enter a target margin and it shows the selling price and markup you need at your product cost.
| Target margin | Markup needed |
|---|---|
| 30% | 42.9% |
| 40% | 66.7% |
| 50% | 100% |
| 60% | 150% |
So if someone asks what markup gives a 40% margin, the answer is 66.7%.
Does Profit Margin Include GST or VAT?
No. Work out margin on revenue without GST or VAT, because that tax belongs to the government, not to you.
- India: you sell at ₹1,180 including 18% GST, so your revenue is ₹1,000. With a ₹600 cost, your margin is 40%. If you leave the tax in, you get a false 49.2%.
- UK: a £120 price including 20% VAT is £100 of revenue.
Use the same rule on the cost side. If you can claim back the GST or VAT on purchases, leave it out of cost. If you cannot claim it back, include it in cost. Gulf, EU and Australian sellers can apply the same logic at their local rate.
What Is a Good Profit Margin? 2026 Benchmarks
A 'good' margin means nothing unless you say whether it is gross or net. Here are the current US figures from Aswath Damodaran at NYU Stern (January 2026, US-listed companies):
| Sector | Gross margin | Net margin |
|---|---|---|
| Retail (General) | 33.18% | 5.61% |
| Retail (Special Lines) | Not shown | 5.19% |
| Apparel | 56.88% | 3.85% |
| Total market (~5,994 firms) | 37.76% | 9.74% |
Many blogs still quote a 'Retail (Online)' row. As this ecommerce margin guide notes, that row was dropped from January 2024. We could not find a reliable public dataset of Indian D2C margins, so we will not guess one.
Here is the practical point. These are large listed companies. A D2C brand that buys most of its traffic needs a high gross margin to leave anything after ads, shipping and returns. Compare your margin against your own break-even ROAS, not just against an industry average. For example, a 50% margin product selling at 4x ROAS keeps ₹25 of every ₹100 in sales after ads, while a 70% margin product at 1.5x ROAS keeps only about ₹3.
Common Profit Margin Mistakes a Profit Margin Calculator Helps You Spot
- Quoting markup as margin. A 100% markup is a 50% margin.
- Leaving costs out of COGS. Inbound freight, duty and packaging belong in product cost.
- Putting ad spend in the wrong place. Ads do not belong in gross margin. But leaving them out completely hides real losses.
- Mixing time periods. Monthly sales need monthly costs.
- Including GST or VAT in revenue. This makes your margin look bigger than it is.
- Trusting list-price margin. Shopify's report uses net sales after discounts and refunds.
- Ignoring RTO and COD costs in India. Failed deliveries cost shipping both ways.
To go deeper on a single line, use the Gross Margin Calculator or the full Net Profit Calculator (P&L). You can also browse all free tools or read more on the ScaleWin blog.