Skip to content

Profit Margin Calculator

Find margin and markup from cost and price, or the price you need for a target margin after card fees and VAT, plus net margin.

  • Runs in your browser
  • Nothing is sent
  • Free, no sign-up
Calculate
What one unit costs you to make or buy, including shipping in
Fees & tax per sale
%
%
Leave at 0 if your price excludes tax (common in the US)
Overheads & income tax (optional)
%

The defaults are an example (a 2.9% + 0.30 card fee is a common card-processing structure; use your provider's real rates).

Profit margin

–

    Margin vs markup

    MarginMarkupPrice for your cost

    Margin is profit as a share of the selling price. Markup is profit as a share of cost. A 50% margin is a 100% markup. Prices in this table exclude fees and tax.

    Formulas used
    • Revenue excluding tax: N = price ÷ (1 + tax rate)
    • Fees per sale: fee % × price + fixed fee
    • Gross profit: N − cost · gross margin = gross profit ÷ N · markup = gross profit ÷ cost
    • Profit after fees: N − cost − fees · margin after fees = profit ÷ N
    • Price for a target margin m after fees: N = (cost + fixed fee) ÷ ((1 − m) − fee% × (1 + tax)), then price = N × (1 + tax)
    • Markup → margin: margin = markup ÷ (1 + markup) · margin → markup: markup = margin ÷ (1 − margin)
    • Operating profit: units × profit after fees − overheads · net profit: operating profit × (1 − income tax) when positive

    Estimates only. Check your payment provider's and tax authority's actual rates.

    How to use the profit margin calculator in 6 steps

    1. Pick a mode:
      • Margin from price: you know your price.
      • Price for a margin: you know the margin you want.
      • Markup ↔ margin: convert one into the other.
    2. Enter your cost per item. Include what it costs to get the product to you: buying or making it, inbound shipping, packaging.
    3. Enter your selling price, or your target margin.
    4. Add payment fees if you sell online. Card processors and marketplaces usually take a percentage of the sale plus a fixed amount; use your own provider's rates.
    5. If your shelf price includes VAT or sales tax, enter the rate. The calculator removes it before working out margins.
    6. Optional: open Overheads & income tax and enter monthly units, overheads and your tax rate. You'll see operating margin, net margin and how many sales cover your overheads.

    Price for a margin: an item that costs $18, with a 2.9% + $0.30 payment fee, needs a price of $32.05 for a 40% margin after fees

    What makes this calculator different

    • Fees are built in. A "60% margin" that ignores card fees is not your real margin. Fees are a percentage of the customer's payment, so they grow with your price. The target-price solver accounts for that exactly.
    • VAT-inclusive prices are handled correctly. Margins are worked out on revenue excluding tax, as accountants do.
    • One page from a single sale to the whole month: gross margin, margin after fees, break-even price, operating margin, net margin, and units needed to cover overheads.
    • A margin vs markup table, priced for your own cost.

    Use cases

    Question Answer
    An $18 item sold for $45 Gross margin 60%, markup 150%. After a 2.9% + $0.30 card fee, profit is $25.40 a sale, a 56.4% margin
    What must it sell for to keep 40% after fees? $32.05
    What's the break-even price? $18.85: below that, every sale loses money once fees are paid
    A £60 price including 20% VAT Revenue excluding VAT is £50; the other £10 belongs to HMRC
    300 sales a month, $4,000 overheads, 21% income tax Operating profit $3,619 (26.8%), net profit $2,859 (21.2%). 158 sales cover the overheads

    A common mistake is to add a 40% markup and believe you're making a 40% margin. You're actually making 28.6%, before fees. If your business plan needs a 40% margin, you need a 66.7% markup, or the "Price for a margin" mode, which also accounts for fees.

    Margin vs markup at a glance

    Markup is always the bigger of the two numbers, because it is measured against the smaller amount: the cost.

    Margin Markup
    20% 25%
    25% 33.3%
    33.3% 50%
    50% 100%
    60% 150%
    75% 300%

    Specs and limits

    Modes Margin from price, price for a target margin, markup ↔ margin
    Per sale Cost, price, payment fee (% + fixed), VAT or sales tax included in the price
    Per month Units sold, overheads, income or corporation tax
    Outputs Gross profit and margin, markup, fees, profit and margin after fees, break-even price, operating and net margin, units to cover overheads
    Currencies 28, with local formatting
    Data Calculated in your browser. Copy link stores your inputs in the page address only

    Methodology

    Measure Formula
    Revenue excluding tax price ÷ (1 + tax rate)
    Gross margin (revenue − cost) ÷ revenue
    Markup (revenue − cost) ÷ cost
    Margin after fees (revenue − cost − fees) ÷ revenue
    Price for target margin m (cost + fixed fee) ÷ ((1 − m) − fee% × (1 + tax)) × (1 + tax), rounded up to the cent so the margin is at least m (break-even and table prices too)

    Frequently asked questions

    How do I calculate profit margin?

    Margin = (revenue − cost) ÷ revenue × 100. Selling for $45 something that costs $18 gives a gross margin of 60%.

    What's the difference between margin and markup?

    Margin is profit as a share of the price; markup is profit as a share of the cost. The same $27 profit on an $18 item is a 60% margin but a 150% markup. Convert with margin = markup ÷ (1 + markup).

    How do I price a product for a 40% margin?

    Without fees, price = cost ÷ (1 − 0.40). With card fees and tax the calculator solves it exactly: an $18 item needs to sell for $32.05 to keep 40% after a 2.9% + $0.30 fee.

    What's the difference between gross, operating and net margin?

    Gross margin subtracts only the cost of the product. Operating margin also subtracts running costs (overheads). Net margin subtracts income tax as well.

    Should VAT be included in the margin?

    No. VAT and sales tax are collected for the government, so margins are calculated on revenue excluding tax. Enter the VAT rate if your price includes it and the calculator removes it first.

    Last updated · Checked in Chrome's engine (Chromium 156) on 30 November 2026. Not yet checked in Safari, Firefox or on phones. · By the VidzHome team