SScaleWin Start free
Free tool · D2C pricing

Profit Margin Calculator: Gross, Operating, Net & Markup

Enter your price and costs to see gross, operating and net profit margin, markup, and the price you need to hit a target margin.

✓ Free · no signupBy Ajay KumarUpdated

Work out your profit margin

₹

One product's price, or a month's total sales. Use the same period in every box.

₹

What the product costs you to make or buy, including packaging.

₹
₹

Other running costs: shipping, payment fees, returns, apps, salaries, rent. Put 0 in both boxes if you only want gross margin.

Tax, interest and target margin
₹
%

Target margin shows the selling price you need at this product cost.

Gross profit margin
60%

Healthy: you keep about ₹16 of every ₹100 in sales after all costs.

Gross profit₹1,200
Markup (profit % on cost)150%
Operating margin20%
Net profit margin16%

Formula with your numbers
Track this margin after ad spend with ScaleWin →

Calculated in your browser. Nothing you type is stored.

What is a profit margin calculator and how do you use it?

A profit margin calculator shows what share of your revenue you keep as profit after costs. Enter revenue and product cost to get gross margin and markup. Then add ad spend, other costs, interest and tax to get operating and net margin. Example: a ₹1,000 sale with ₹600 cost gives (1,000 − 600) ÷ 1,000 × 100 = 40% margin.

Profit margin % = (Revenue − Costs) ÷ Revenue × 100

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

  1. Revenue ₹1,00,000, product cost ₹45,000. Gross profit = ₹55,000. Gross margin = 55,000 ÷ 1,00,000 × 100 = 55%.
  2. Markup = 55,000 ÷ 45,000 × 100 = 122.2%.
  3. Ad spend ₹25,000 plus other costs ₹10,000. Operating income = 55,000 − 35,000 = ₹20,000. Operating margin = 20%.
  4. 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

  1. Pick a currency chip: ₹, $, £ or €. The ₹ chip uses Indian grouping (1,50,000). The others use US grouping (150,000).
  2. Type your revenue and product cost. Commas are fine, so 2,000 works. On a phone you get a decimal keypad.
  3. Read the gross margin tile and the 'Markup (profit % on cost)' tile. They update as you type.
  4. Add ad spend, other operating costs, and interest and tax to see operating and net margin.
  5. Read the one-line verdict. It judges net margin if you entered costs, and gross margin if you did not.
  6. Enter a target margin to see the selling price and markup you need at your product cost.
  7. Check the formula lines. Each margin is shown worked out with your own numbers.
  8. 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.

Profit margin % = (Revenue − Costs) ÷ Revenue × 100
MarginCosts subtracted₹ example (revenue ₹1,00,000)$ example (revenue $40,000)
GrossCOGS only₹55,000 → 55%$40,000 − $16,000 = $24,000 → 60%
OperatingCOGS + operating costs, including ads₹20,000 → 20%$24,000 − $14,000 = $10,000 → 25%
NetAll 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.

Margin = Markup ÷ (1 + Markup)  |  Markup = Margin ÷ (1 − Margin) (use decimals)

These conversions follow the definitions in Xero's markup vs margin guide.

MarkupMargin
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:

Profit % = (SP − CP) ÷ CP × 100

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 margin % = (Revenue − COGS − Operating expenses) ÷ Revenue × 100

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.

Break-even ROAS = 1 ÷ margin (as a decimal)

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.

MarginBreak-even ROAS
60%1.67x
50%2x
40%2.5x
35%2.86x
25%4x
20%5x

Example: the same 3x ROAS, two results

  1. You spend ₹10,000 on ads and get ₹30,000 in sales (3x ROAS).
  2. At a 25% margin you keep ₹7,500 before ads. After ads that is a loss of ₹2,500.
  3. 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.

Selling price = Cost ÷ (1 − Target margin)
  • ₹ 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 marginMarkup 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):

SectorGross marginNet margin
Retail (General)33.18%5.61%
Retail (Special Lines)Not shown5.19%
Apparel56.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.

Track your margin after ads every day

ScaleWin connects your Shopify store with Meta and Google Ads, so you can see profit after ad spend without retyping numbers into a calculator.

Try ScaleWin free →

Frequently asked questions

How do I calculate profit margin?

Profit margin = (Revenue − Costs) ÷ Revenue × 100. If you sell at ₹999 and the product costs ₹400, profit is ₹599 and the margin is 599 ÷ 999 × 100, which is about 60%. Subtract only COGS for gross margin. Subtract all costs, interest and tax for net margin.

What is the formula for net profit margin?

Net margin = (Revenue − COGS − Operating expenses − Interest − Tax) ÷ Revenue × 100. For a Shopify store, operating expenses include Meta and Google ads, shipping, payment fees, apps and salaries. Example: $40,000 revenue with $8,000 left after everything gives a 20% net margin.

Is a 100% markup the same as a 50% margin?

Yes. If something costs ₹500 and you sell it for ₹1,000, the ₹500 profit is 100% of cost (markup) but 50% of the price (margin). Markup divides by cost and margin divides by price, so markup is always the higher number.

What is the difference between profit percentage and profit margin?

Profit percentage, as taught in Indian schools, divides profit by cost price. Profit margin divides profit by selling price. With CP ₹400 and SP ₹500, profit percentage is 25% and margin is 20%. Profit percentage is the same calculation as markup.

What is a good profit margin for a Shopify or D2C store?

There is no reliable public benchmark for Indian D2C brands. In US data for January 2026, Retail (General) shows a 33.18% gross margin and a 5.61% net margin. A brand that relies on paid ads usually needs a high gross margin to stay profitable after ad spend.

Is ad spend part of COGS or operating expenses?

Ad spend is an operating expense. It does not change what a unit costs to make or buy, so it stays out of COGS and gross margin. It does reduce operating and net margin, which is why this calculator has a separate ad spend field.

What selling price do I need for a 40% margin?

Divide your cost by 0.60. A ₹400 cost needs a price of about ₹666.67, and an $18 cost needs $30. The markup needed for a 40% margin is 66.7%. Adding 40% to cost gives only a 28.6% margin.

Can profit margin be negative?

Yes. If your costs are higher than your revenue, the profit is a loss and the margin is below zero. For example, ₹1,00,000 in sales with ₹1,10,000 in total costs gives a net margin of −10%. This often happens when ad spend grows faster than sales.

Related free tools