Margin calculator: profit margin, markup, cost and selling price

Fill in any two of cost, price, profit, margin or markup and get the rest, with GST, VAT or HST included or excluded. Includes a table of common markups and the margins they give.

Keep it one tap away for everyday use.

Bookmark Margin calculator?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

Or install fibub as an app: every tool you open then works offline.

  1. Two values
  2. Solve
  3. Margin
  4. Copy
Nothing is uploadedWorks offline once open

Fill in any two boxes. The other three are worked out. Type in a worked-out box to take its place.

Sales tax (GST, VAT, HST)

Margin and markup are always worked out on the price without tax, because the tax goes to the government, not to you.

Common markups and the margin they give

MarkupMarginPrice on

Margins and the markup you need

MarginMarkupPrice on

Margin = profit ÷ selling price. Markup = profit ÷ cost. A 50% markup is only a 33.3% margin. Nothing you type leaves this page.

What it does

Margin and markup both describe profit, but they measure it against different things. Margin is profit as a share of the selling price. Markup is profit as a share of what the item cost you. Mixing them up is one of the most common pricing mistakes: a 50% markup is only a 33.3% margin.

This calculator lets you fill in any two of cost, selling price, profit, margin % and markup % and works out the other three, showing the working. Add a tax rate (GST, VAT or HST) and say whether your price already includes it. Work out percentage questions with percentage calculator, add tax with sales tax, or find the sales you need to cover costs with break-even.

How to use it

  1. Type any two boxes. The three boxes you did not type fill themselves in and turn dashed. Type in a dashed box to make it one of your two.
  2. Margin and markup together are not enough (they are both percentages), so if you type both, the newest is paired with the cost, price or profit box typed before.
  3. Open “Sales tax” to add a rate. Choose whether the price box is before tax or what the customer pays.
  4. Use the tables below to see common markups and the margin each gives, or the markup you need for a target margin.

What each setting does

  • Price before tax / tax included: margin is always worked on the price without tax, because the tax is not yours to keep. If you type a tax-included price, the tool removes the tax first.
  • Copy result: copies cost, price, profit, margin and markup as plain text.
  • Reset: back to the example.

Worked example

You buy a product for 60 and add a 25% markup. Profit = 60 × 25% = 15, so the price is 75. Margin = 15 ÷ 75 = 20%. With 18% tax on top, the customer pays 88.50. To reach a 40% margin on the same 60 cost you need a price of 100, which is a 66.7% markup.

FAQs

Which should I use, margin or markup? Retailers often price by markup (easy to add on to cost), but accounts and financial reports use margin. Know which one a number refers to.

Can margin be 100%? No. Profit would equal the whole price, meaning a cost of zero. The tool stops at below 100%.

Is the price tax included or not? It depends on your country and shop. Pick the option that matches how you quote prices; the margin is the same either way.

Does anything get uploaded? No. All sums happen in your browser.

Where the numbers come from

  • Margin and markup are standard definitions (margin = profit ÷ price, markup = profit ÷ cost), worked by fibub. Sales tax rates differ by country and item: use your own rate and check the official source (for example your tax authority's website).

Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

Read more on the Blog

Last updated 2026-12-05.

Related tools