Profit Margin Calculator

Enter your cost price and selling price to see gross profit, gross margin and markup. Then add shipping, ad cost per sale and payment gateway fee to find the net profit you actually keep on each order. A colour bar splits the selling price into product cost, shipping, ads, gateway fee and net profit, so you can see where the money goes.

Loading…

How to use Profit Margin Calculator

  1. 1

    Enter the cost price

    Type what one unit costs you to buy or make, before GST if you claim input tax credit.

  2. 2

    Enter the selling price

    Type the price the customer pays per unit, before GST if you are registered.

  3. 3

    Add per-sale expenses

    Under Add Expenses, enter shipping per unit, ad cost per sale and the payment gateway fee %.

  4. 4

    Compare gross and net

    Read gross profit, gross margin, markup, net profit and net margin, and check the revenue breakdown bar.

Profit margin formula

Gross profit = Selling price − Cost price. Gross margin % = Gross profit ÷ Selling price × 100. Markup % = Gross profit ÷ Cost price × 100. Example: you buy a product for ₹800 and sell it for ₹1,000. Gross profit is ₹200, gross margin is 20%, and markup is 25%. Margin tells you how much of every rupee of sales is profit. Markup tells you how much you added on top of cost. The same profit gives two different percentages, so always say which one you mean.

Gross margin vs net margin

Gross margin only looks at the product cost. Net margin also takes off the costs of making each sale. In this calculator, Net profit = Selling price − (Cost + Shipping + Ad cost + Gateway fee), and Net margin = Net profit ÷ Selling price × 100. The gateway fee is a percentage of the selling price. These are per-unit figures. Rent, salaries and other fixed overheads are not included, so your business-wide net margin will be lower.

Worked example for an online seller

A product costs ₹800 and sells for ₹1,500. Gross profit is ₹700, a 46.67% gross margin and an 87.5% markup. Now add ₹100 courier per order, ₹200 of ad spend per sale and a 2% gateway fee (₹30). Total cost per order becomes ₹1,130, so net profit is ₹370 and net margin is 24.67%. The breakdown bar shows the product taking 53.33% of the price, ads 13.33%, shipping 6.67%, the gateway 2% and net profit 24.67%.

GST and your margin

If you are GST registered, the GST you collect from buyers is not your income: you pass it on to the government after claiming input tax credit. So work out margins on prices before GST. For example, if a customer pays ₹1,180 including 18% GST, your selling price for margin purposes is ₹1,000. If you are not registered and cannot claim credit, the GST you pay on purchases is part of your cost, so include it in the cost price.

Common mistakes and how to fix a thin margin

The most common mistake is confusing markup with margin. Adding 30% to cost gives only a 23.08% margin, not 30%. Another is ignoring per-order costs such as shipping, return-to-origin losses, ad spend and gateway fees, which can turn a healthy gross margin into a loss. If your net margin is too low, the levers are a higher price, lower purchase cost, cheaper shipping, or lower ad cost per sale. Use the Markup Calculator to find the price for a target margin, and the Break-Even Calculator to see how many sales cover your fixed costs.

Examples

Retail product

Input
Cost ₹800 · Selling price ₹1,000
Output
Profit ₹200 · Margin 20% · Markup 25%

Online order with expenses

Input
Cost ₹800 · Price ₹1,500 · Shipping ₹100 · Ads ₹200 · Gateway 2%
Output
Gross margin 46.67% · Net profit ₹370 · Net margin 24.67%

Selling below cost

Input
Cost ₹1,200 · Selling price ₹1,000
Output
Loss ₹200 · Margin −20% · Markup −16.67%

Frequently asked questions

How do I calculate profit margin?

Subtract the cost from the selling price to get profit, divide the profit by the selling price and multiply by 100. Cost ₹800 and price ₹1,000 give ₹200 profit and a 20% margin.

What is the difference between margin and markup?

Margin divides profit by the selling price. Markup divides profit by the cost. A ₹200 profit on an ₹800 cost and ₹1,000 price is a 20% margin and a 25% markup.

What is the difference between gross and net margin?

Gross margin only subtracts the product cost. Net margin here also subtracts shipping, ad cost and the payment gateway fee for each sale, so it shows what you really keep per order.

Should I include GST in the selling price?

If you are GST registered, no. Use prices before GST, because the tax you collect is passed on to the government. A ₹1,180 price that includes 18% GST is ₹1,000 for margin purposes.

What is a good profit margin?

It depends on the industry, the product and your overheads, so there is no single number. Compare your net margin with what you need to cover fixed costs and leave a profit, using the Break-Even Calculator.

Can the margin be negative?

Yes. If you sell below cost, the profit and margin are negative. Selling a ₹1,200 item for ₹1,000 is a ₹200 loss and a −20% margin.

Category: Business

Related tools

Last updated 11 November 2026