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
- 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.
- 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.
- Open “Sales tax” to add a rate. Choose whether the price box is before tax or what the customer pays.
- 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.