Profit Margin Calculator

Find your margin, markup and the right selling price in seconds — with fees, extra costs and tax-inclusive prices handled correctly.

  • Private — runs in your browser
  • Instant results
  • Margin + markup
  • Free, no sign-up

Your numbers

Enter what an item costs you and what you sell it for.

What you pay for the product or to make it.

What the customer pays.

Gross margin you want, e.g. 40.

Optional — totals for a batch or a month.

Fees, extra costs and tax

Shipping, packaging, commission…

Percent of the selling price, e.g. 2.9.

Results

—
—
—

Selling price for each margin

MarginSelling priceProfit per unitMarkup
How it works

Margin, markup and price in three steps

No formulas to remember — and no data leaves your device.

  1. 1

    Pick what you know

    Cost and price, a target margin, a maximum cost or your profit & loss figures.

  2. 2

    Add the real costs

    Shipping, payment fees and tax-inclusive prices so the margin is the one you actually keep.

  3. 3

    Use the result

    Copy it, share a link, print it or save it in your browser for later.

Why this calculator

Built for real pricing decisions

Everything the simple calculators leave out.

Solve any way round

Margin from price, price from margin, or the most you can pay a supplier.

Fees included

Card and marketplace fees are a percent of the price — they shrink your margin more than you think.

VAT-inclusive prices

In Europe shelf prices include VAT. Tick one box and the tax is taken out first.

P&L margins

Gross, operating and net margin from your income statement in one view.

Price table

See the selling price for every margin from 10% to 80% at a glance.

Private by design

Calculations run in your browser. Nothing is uploaded or tracked.

How to calculate profit margin

Gross profit margin is profit divided by revenue: margin = (price − cost) ÷ price × 100. If you buy a product for $60 and sell it for $100, your profit is $40 and your margin is 40%.

Markup uses cost as the base instead: markup = (price − cost) ÷ cost × 100. The same $40 profit is a 66.7% markup. Mixing the two is the most common pricing mistake — a 40% markup only gives a 28.6% margin.

To find the price for a target margin, divide the cost by one minus the margin: price = cost ÷ (1 − margin). A $60 cost at a 40% margin needs a $100 price. Fees that are a percent of the price (card processing, marketplace commission) are subtracted from that margin, so include them.

Margin vs markup

MarginEquivalent markupPrice for $100 cost
10%11.1%$111.11
20%25%$125.00
30%42.9%$142.86
40%66.7%$166.67
50%100%$200.00
60%150%$250.00

Tips

  • Retail and e-commerce gross margins of 30–50% are common; software and services are often higher.
  • If your price includes VAT or sales tax, remove the tax first — the tax is not your revenue.
  • Use the markup calculator to set prices from cost, and the break-even calculator to see how many units you must sell.
FAQ

Profit margin questions

Short answers to what people ask most.

What is a good profit margin?

It depends on the industry. Grocery stores run on 1–3% net margins, retail on 30–50% gross margins, and software on 70%+ gross margins. Compare yourself with businesses like yours.

What is the difference between margin and markup?

Margin is profit as a share of the selling price; markup is profit as a share of the cost. A product bought for $50 and sold for $100 has a 50% margin and a 100% markup.

How do I calculate the selling price from a margin?

Price = cost ÷ (1 − margin). For a $30 cost and a 25% margin: 30 ÷ 0.75 = $40.

Should I include VAT or sales tax?

No. Tax collected for the government is not revenue. If your price includes tax, tick “price includes VAT / sales tax” and enter the rate; the calculator removes it first.

What are gross, operating and net margin?

Gross margin subtracts only the cost of goods sold. Operating margin also subtracts operating expenses. Net margin subtracts everything, including interest and taxes.

Is my data stored or sent anywhere?

No. The calculation happens in your browser. Saved calculations stay in your browser until you delete them.

More free tools for your business

Invoices, quotes, pricing and tax calculators — fast, free and private.

Browse all tools

Saved calculations