Free Online Calculator

Margin Calculator

Calculate gross margin, markup and profit, or the selling price for a target margin.

Last updated: Free, no sign-up Private — runs in your browser

Quick answer: margin vs markup

Margin = profit ÷ price; markup = profit ÷ cost. Cost ₹800 and price ₹1,000 gives profit ₹200.00, a 20% margin and 25% markup.

Overview of the Margin Calculator

Margin and markup both describe profit, but against different bases. Margin is profit as a percentage of the selling price; markup is profit as a percentage of the cost. Choose the two values you know — cost and price, cost and margin, price and margin, or cost and markup — and the calculator works out the rest.

A 25% markup is only a 20% margin, so mixing the two up can cost you money. Use margin to compare profitability and markup to set prices. For taxes on the price use the Sales Tax Calculator; for sales incentives see the Commission Calculator.

How We Calculate

The calculator applies the standard financial formulas step by step.

  1. Profit = selling price − cost.
  2. Margin % = profit ÷ price × 100.
  3. Markup % = profit ÷ cost × 100.
  4. From cost and margin: price = cost ÷ (1 − margin ÷ 100). From cost and markup: price = cost × (1 + markup ÷ 100).
margin = (price − cost) ÷ price   markup = (price − cost) ÷ cost
price = cost ÷ (1 − margin) = cost × (1 + markup)
Worked example — margin calculator
ItemValue
Cost₹800.00
Selling price₹1,000.00
Gross profit₹200.00
Gross margin (profit ÷ price)20%
Markup (profit ÷ cost)25%
Margin examples
CaseGross profit
Cost 800, price 1,000₹200.00
Cost 800, 30% margin₹342.86
Cost 800, 50% markup₹400.00
Price 1,000, 40% margin₹400.00
Cost 500, price 750₹250.00

Margin Calculator — Frequently Asked Questions

What is the difference between margin and markup?

Margin is profit divided by the selling price; markup is profit divided by the cost. Markup is always the larger percentage.

How do I calculate gross margin?

(Price − cost) ÷ price × 100. A product costing ₹800 and selling at ₹1,000 has a 20% margin.

How do I price a product for a target margin?

Divide the cost by (1 − margin). For a 25% margin on ₹75 cost: 75 ÷ 0.75 = ₹100.

What is a good profit margin?

It varies by industry — retail gross margins of 20–50% are common, software far higher. Compare with your sector.

What is gross vs net margin?

Gross margin ignores overheads such as rent and salaries; net margin is after all costs and tax.

Why is my markup higher than my margin?

Because the same profit is divided by the smaller number (cost) rather than the larger one (price).

How is the margin calculator calculated?

It uses the standard formula: margin = (price − cost) ÷ price   markup = (price − cost) ÷ cost The full method and a worked example are shown on this page.

Is this financial advice?

No. The calculator gives estimates for planning and learning. Real offers vary by lender, product and date, so confirm the details with your bank, lender or a qualified adviser before deciding.

Can I use another currency?

Yes. The maths is identical in any currency; only the currency symbol shown in the results differs.

Is my data stored?

No. Everything is calculated in your browser and nothing you enter is uploaded or saved.

More Free Calculators You May Need

Need a custom calculator or tool on your website?

Our team designs and develops fast, SEO-ready websites and web tools. Tell us what you need.

Call Us WhatsApp

Get a Free Quote

Tell us a bit about your project — we'll get back to you shortly.

3 + 8 =
Call WhatsApp