Skip to content
BillGenn

Profit Margin Calculator

Work out profit, margin and markup from cost and selling price — or reverse the maths to find the price you need for a target margin.

  • Free to use
  • No signup
  • Works in your browser
What do you know?

Profit per unit

₹400.00

Margin

40%

Profit ÷ selling price

Markup

66.67%

Profit ÷ cost

Cost
₹600.00
Selling price
₹1,000.00
Profit per unit
₹400.00

Margin and markup are different: a 40% margin is the same money as a 66.67% markup. Use margin when comparing profit to revenue, markup when setting prices from cost. Prices here exclude tax.

How to use this tool

  1. Choose what you know

    Use cost and price if you already sell the item. Use a target margin or markup if you are setting the price.

  2. Enter cost and price or target

    Use figures excluding tax. Costs should include the direct cost of delivering the product or service.

  3. Compare margin and markup

    The results show profit per unit, margin as a share of price and markup as a share of cost.

Margin vs markup in one example

Suppose you buy a product for ₹600 and sell it for ₹1,000. The profit is ₹400. There are two common ways to express that profit, and they give different numbers:

MeasureFormulaResult
Gross marginProfit ÷ selling price × 100₹400 ÷ ₹1,000 = 40%
MarkupProfit ÷ cost × 100₹400 ÷ ₹600 = 66.67%

Both describe the same ₹400. Confusing them is how a “40% markup” ends up being a 28.6% margin, or why a sales team asks for a 40% discount on a product with a 40% margin and leaves nothing behind.

Pricing from a target margin

If you want a 40% margin on a ₹600 cost, you cannot simply add 40%. Adding 40% gives ₹840, which is only a 28.6% margin. The correct formula divides by the complement of the margin:

Selling price = cost ÷ (1 − target margin ÷ 100)

So ₹600 ÷ 0.60 = ₹1,000. This is the reverse of the margin formula, and the “target margin” mode does it for you.

What counts as cost?

For a product, direct cost usually includes the purchase price, inbound freight, packaging and payment processing fees. For a service business, it includes the person delivering the work, subcontractors and any job-specific software. It does not include rent, your own salary, marketing or general administration — those are overheads recovered across many sales.

If you include only the purchase price, the margin looks healthier than the business really is. A useful habit is to calculate margin on fully loaded direct cost, then check that the remaining gross profit covers overheads.

Worked example: discount impact

An item costs ₹600 and sells for ₹1,000, a 40% margin. You offer 15% off, so the price becomes ₹850. Profit falls to ₹250 and margin falls to 29.4%. The discount reduced revenue by 15% but profit by 37.5%. Before discounting, use the discount calculator and then re-check the margin here.

Set prices you can defend

A target margin is a starting point, not a guarantee. Market rates, competitor pricing, customer value and volume all matter. What the calculation gives you is a floor: the price below which a sale stops contributing to the business.

Once a price is agreed, put the agreed amount on an invoice with tax handled separately. The invoice generator keeps line prices, discounts and GST/VAT apart so your revenue figures stay comparable to this calculation.

Last reviewed 11 November 2026. See our editorial policy and disclaimer. This tool provides general calculations, not tax or legal advice.

Questions about this tool

What is the difference between margin and markup?

Margin compares profit to the selling price. Markup compares profit to the cost. If an item costs ₹600 and sells for ₹1,000, the profit is ₹400: a 40% margin but a 66.67% markup.

How do I calculate selling price from a target margin?

Divide the cost by (1 − margin ÷ 100). For a 40% margin on a ₹600 cost: 600 ÷ 0.60 = ₹1,000. You cannot use a 100% margin because that would require an infinite price.

Is this the same as net profit margin?

No. This is gross margin on a single product or job: price minus direct cost. Net profit margin also deducts overheads, salaries, marketing, tax and other business costs, so it is lower and is calculated from your accounts rather than one sale.

Should I use margin or markup when pricing?

Use markup when you start from cost and add a standard percentage. Use margin when you compare profitability to revenue or work backwards from a target. Be explicit about which one you mean when discussing prices with a team or client.

Does the calculator include GST or sales tax?

No. Enter cost and price excluding tax. Tax is collected on behalf of the government and is not part of your revenue or profit, so including it distorts the margin.