Free tool
Cost, price, margin, markup — enter any two.
Fill in exactly two of the four fields below and this solves the other two, plus the profit amount — and shows you why margin and markup are never quite the same number.
Nothing you type here ever leaves your browser. There's no server behind this page — every figure is calculated locally, on your device, the same local-first idea behind the Ochre app.
Reviewed 2026-08-11
Exactly two of Cost, Sell price, Margin % and Markup % need a value — clear a field to solve for it instead. Margin and markup can't be the only two: they fix a ratio, not a price (see below).
Results
Margin and markup are not the same number
Both describe profit, but from different starting points, and mixing them up quietly costs money. Markup is profit as a percentage of your cost: add 50% markup to a $100 cost and you sell at $150. Margin is profit as a percentage of your selling price: that same $50 profit on a $150 sale is a 33% margin, not 50%.
Worked example: cost $60, sell $100, profit $40. Margin is $40 ÷ $100 = 40%. Markup is $40 ÷ $60 = 66.67%. Same sale, same $40 profit, two different percentages — because they're measured against two different numbers. Check which one a supplier or client actually means before quoting a number back to them.
More calculators
Two more free pricing tools, and the invoice generator this calculator feeds into.
Break-even calculator
Find out exactly how many sales it takes before a product or service starts making money.
Hourly rate calculator
Work out the hourly rate that actually covers your income, expenses and non-billable time.
Invoice generator
Once your price is set, turn it into a clean, tax-correct invoice in a couple of minutes.
Questions
What is the difference between margin and markup?
Why do margin and markup give different percentages for the same sale?
Can I enter margin and markup together to get the price?
Is a 100% margin possible?
What this page cannot do
One sale’s margin is not your margin.
This page answers a single question about a single line. The useful version reads every invoice you issued — and that needs the invoices. Ochre keeps them and reports across them in Insights, while the same per-item calculation lives on the product in your price book.