💰 Money & Finance

Profit Margin & Markup Calculator

Work out margin and markup from cost and price — or the price you need to charge.

  • Marginand markup together
  • Target pricefor any margin
  • Per unitprofit
  • Any currencyfor any product
Gross margin—
Markup—
Profit per unit—

Find the price for a target margin

Price to charge—

How to use the Profit Margin Calculator

  1. 1

    Enter the cost

    What one unit costs you to buy or make.

  2. 2

    Enter the selling price

    What you charge the customer (before sales tax).

  3. 3

    Read margin and markup

    Gross margin, markup and profit per unit update instantly.

  4. 4

    Find a price for a target margin

    Type the margin you want and get the price to charge.

Features

Margin and markup

Both figures side by side, so you never confuse them.

Target-margin pricing

Price = cost ÷ (1 − target margin).

Profit per unit

The money each sale contributes.

Works for services

Use hourly cost and hourly rate.

Any currency

Price products anywhere.

Private

Your costs stay on your device.

Who uses it — and for what

Online sellers

Price products on Amazon, Etsy or your own store.

Restaurants

Check food-cost margins on each dish.

Wholesalers

Set trade prices and retail suggestions.

Freelancers

Make sure a project fee covers your costs with margin.

Margin vs markup

Margin is profit as a share of the selling price: (Price − Cost) ÷ Price. Markup is profit as a share of cost: (Price − Cost) ÷ Cost. A product that costs $60 and sells for $100 has a 40% margin but a 66.7% markup. Confusing the two is a classic pricing mistake: adding a 40% markup to $60 gives $84, which is only a 28.6% margin.

To hit a target margin, divide cost by (1 − margin). For a 40% margin on a $60 cost: 60 ÷ 0.6 = $100.

Typical margins by industry

Grocery stores often run 20–30% gross margins, clothing retail 50% or more, restaurants 60–70% on food cost, and software well above 70%. Gross margin covers only the direct cost of the item; rent, wages, marketing, payment fees and taxes come out of it, leaving the much smaller net margin. Use the calculator per product to spot items that sell well but barely make money.

Gross margin vs net margin

Gross margin uses only the direct cost of the product. Net margin subtracts everything else — rent, salaries, marketing, payment fees, shipping, returns and taxes. A product with a healthy 40% gross margin can still lose money if marketplace fees and shipping take 30% of the price. Build those per-unit costs into “cost” to see a realistic margin.

Costs that are charged as a percentage of price

The target-price formula, cost ÷ (1 − target margin), assumes every cost is a fixed amount per unit. Some are not: marketplace commissions, payment-gateway fees and sales commissions are a percentage of the selling price, so they rise when you raise the price. The fix is to treat them like part of the margin: price = fixed costs ÷ (1 − percentage fees − target margin). With a 15% commission and 2% payment fee, a 30% target needs fixed cost ÷ 0.53.

Also remove GST or VAT before entering prices. A ₹1,180 tag that includes 18% GST is really ₹1,000 of revenue; on a ₹600 cost that is a 40% margin, not the 49% you would get by entering ₹1,180. The GST Calculator or VAT Calculator will strip the tax out for you.

Margin, volume and break-even

Margin per unit is only half the picture; total profit is margin × units sold. A lower price can make more money if it lifts sales enough, and a higher price can lose money if customers walk away. The quick test: after a price cut, units must rise by the old profit ÷ new profit to break even — $40 ÷ $30 = 1.33 times for the 10% discount above. To see how many units cover your fixed costs such as rent and salaries, use the Break-Even Calculator with the profit per unit from this tool.

Worked examples

Cost $60, price $100

Margin 40%, markup 66.67%, profit $40 a unit.

Cost $250, price $400 — and a 30% target

Current margin 37.5% (markup 60%). For a 30% margin you could price as low as $357.14.

Pricing for a marketplace that takes a commission

A product costs ₹400 plus ₹60 shipping (₹460), and the marketplace keeps 15% of the selling price. Typing cost ₹460 and a 30% target gives ₹657.14 — but after the 15% fee the real margin at that price is only 15%. To keep 30% after a fee charged on price, divide cost by (1 − fee − target): 460 ÷ 0.55 = ₹836.36.

What a discount does to profit

Cost $60, price $100: margin 40%, profit $40. A 10% discount (price $90) leaves a 33.33% margin and $30 profit, so you need a third more sales to earn the same. A 20% discount (price $80) halves the profit to $20 (margin 25%) — you must sell twice as many units just to stand still.

A restaurant dish

Ingredients cost ₹95 and the dish sells for ₹320 before tax: margin 70.31%, markup 236.84%, ₹225 per plate. That margin must still cover staff, rent and power, which is why restaurants watch food-cost percentage (here about 30%) so closely.

Pro tips

  • Quote margin to investors and markup to suppliers — but know which one you’re using.
  • A 25% discount on a 40% margin product cuts profit per unit by more than half.
  • Review margins whenever supplier prices change.
  • Recalculate margins after every supplier price rise; a cost increase you absorb comes straight out of profit.
  • Price bundles and multi-buys from their combined cost, not by applying a discount to each item’s price.

Glossary

Gross margin
(Price − Cost) ÷ Price.
Markup
(Price − Cost) ÷ Cost.
COGS
Cost of goods sold — the direct cost of what you sold.
Net margin
Profit after all expenses ÷ revenue.
Contribution margin
Price minus variable costs per unit — what each sale contributes to fixed costs.
Food-cost percentage
Ingredient cost ÷ menu price, a common restaurant measure.
Fixed costs
Costs that do not change with sales volume, such as rent.

Frequently asked questions

How do I calculate profit margin?

Subtract cost from price, divide by price and multiply by 100.

Is a 50% markup a 50% margin?

No. A 50% markup is a 33.3% margin; a 100% markup is a 50% margin.

Should VAT or sales tax be included?

No — use prices before tax, since the tax is passed on to the government.

What markup gives a 50% margin?

A 100% markup — doubling the cost — gives a 50% margin.

Can margin exceed 100%?

No, margin is always below 100%; markup can be any size.

How do I include a marketplace commission?

If the fee is a percentage of the selling price, do not add it to cost. Use price = cost ÷ (1 − fee − target margin) instead, or check your result by subtracting the fee from the price shown.

Why does the required price show a dash?

A target margin of 100% or more is impossible for any positive cost, so no price can meet it and the result is left blank.

Found it useful? Share the Profit Margin Calculator:

Last updated 2026-11-28 · Built by Vinayak Agarwal · Part of Money & Finance (44 tools)