Margin vs Markup Calculator
Convert between margin and markup without getting them the wrong way round, price from a target margin, and see how much extra you must sell to stand still after a discount. Runs entirely in your browser. Nothing is uploaded.
Version 1.0.0 · Updated Aug 20, 2026
Use Margin vs Markup Calculator now
Runs in your browser · nothing is uploaded
This in-page version cannot save your work between visits — browser storage is switched off inside the sandbox. The full version saves your work locally after download.
Overview
Frequently asked questions
How does the Margin vs Markup Calculator licence work?
It is a one-time purchase for a downloadable tool — no subscription. You buy it once and the file is yours to keep and use.
Can I try the Margin vs Markup Calculator before buying?
Yes. Use the Try online button for a fully interactive demo with sample data already loaded — nothing to install and nothing is saved.
Can I import my data from a spreadsheet?
Yes. Use the Spreadsheet template button to save a CSV with the right headings, fill it in Excel or any spreadsheet, then Import spreadsheet to load it back. The file is read in your browser — nothing is uploaded.
Does my data stay private?
Yes. The tool is a single HTML file that runs entirely on your computer and makes no network requests, so nothing you enter is ever uploaded or shared.
Do I need Excel or any other software?
No. It replaces the spreadsheet template entirely: open the file in your browser (Chrome, Edge, Firefox or Safari) on Windows, Mac, Linux or a tablet, and start working.
How to use Margin vs Markup Calculator
The complete in-tool guidance, reproduced here so you can read it before you download.
What this tool does
CM8-361 converts between margin and markup, prices from a target margin, and shows what discounting actually does — both to the margin you achieve and to the volume you would need to sell to make the same money afterwards.
Everything runs inside this single file — no account, no upload, no network request of any kind. Your costs and prices are the most commercially sensitive numbers you have.
The difference, in one paragraph
Margin is profit as a share of the price. Markup is profit as a share of the cost. Buy for 100 and sell for 150 and you have made 50: that is a 50% markup, because 50 is half of the cost, and a 33.3% margin, because 50 is a third of the price. Same money, two numbers, and they are never equal except at zero.
The four formulas
Margin = (price − cost) ÷ price × 100 Markup = (price − cost) ÷ cost × 100 Markup from a margin = margin ÷ (100 − margin) × 100 Price for a margin = cost ÷ (1 − margin ÷ 100)
The last one is the one worth committing to memory. To hit a 40% margin, divide the cost by 0.6 — do not add 40%, which produces a 28.6% margin and a shortfall you will not notice until the year end.
The reference table in the report prints the conversion for the common margins, using your own first item's cost so the prices are recognisable.
Why the confusion costs money
Because the error is always in the same direction: markup is always the bigger number, so anybody who says "margin" while meaning "markup" believes they are making more than they are. On a 40% target the shortfall is over eleven points of margin, every sale, silently.
It shows up in three places specifically: pricing rules passed down verbally, discount authority given as "anything above 30% margin", and quotes built in a spreadsheet by adding a percentage to cost. All three feel right and all three under-price.
The sample includes an item priced by adding half onto cost, described exactly as most people would describe it, and the tool shows it as a 33% margin.
What belongs in the direct cost
Everything that only happens because you made or bought this one thing: materials, the labour that went into it, packaging, delivery in, any subcontracted operation, and the commission if there is one.
What does not belong: rent, salaries of people who would be paid anyway, software, insurance, the van's road tax. Those are overheads. They are real and they must be paid for, but spreading them into a unit cost makes the margin figure move whenever volume moves, which makes it useless for pricing.
Set them in the overheads box instead, and the tiles will show what is left after they are covered.
Pricing from a target margin
Choose "I want to hit a target margin" and the tool works the price out from the cost. Leave the wanted-margin field blank and it uses the target in Settings, so you can price a whole list to one rule and then override the exceptions.
Two things a target margin cannot know: what the customer will pay, and what a competitor charges. Cost-plus pricing is a floor, not a strategy — its real job is telling you when a price somebody has proposed is below the line.
What a discount really costs
A discount comes entirely out of profit. The cost does not move, so the whole reduction lands on the part you keep. On a 30% margin, a 10% discount removes a third of the profit.
Price after discount = price × (1 − discount ÷ 100) Margin achieved = (price after discount − cost) ÷ price after discount × 100
Record the discount you routinely give in the item's own discount field. Most businesses have a list price nobody pays and an achieved price nobody has calculated; the achieved margin column is the one that reconciles to your accounts.
The volume you would need
Gross profit now = price − cost Gross profit after = price × (1 − discount ÷ 100) − cost Extra volume needed = (profit now ÷ profit after − 1) × 100
This is the number to have in your hand when somebody proposes a discount for volume. At a 30% margin a 10% discount needs 50% more volume to make the same money. At a 20% margin the same discount needs 100% more — you would have to double the business to stand still.
Where the discount would take the price below cost, no volume can recover it and the tool says so rather than printing a number. Selling at a loss faster does not help.
Margin against contribution
Contribution = (achieved price − cost) × volume in the period
These answer different questions and both matter. Margin percentage tells you how much of each sale you keep; contribution tells you how much money the item actually brings in. A 7% margin sold four hundred times a period can carry more overhead than a 60% margin sold three times, and a pricing review that only looks at percentages will cut exactly the wrong products.
The blended figure
Blended margin = total contribution ÷ total revenue × 100
Weighted by what you actually sell, at the prices you actually achieve — not an average of the percentages, which would give a product sold twice the same weight as one sold two thousand times. This is the figure to compare with your accounts, and if it does not match, the difference is usually discounts nobody recorded.
Gross margin is not profit
Everything above is gross margin. Rent, salaries, insurance, software, finance costs and tax all come out afterwards. A business at 40% gross margin with overheads eating 45% of revenue is losing money on every sale it makes.
Put your overheads for the period into Settings and the tiles show what is left once they are covered. It is a blunt calculation — it does not allocate overhead to items, deliberately — but it answers the only question that matters at the end of a pricing review: does this add up.
Limits worth knowing
- Volumes are assumed independent. Discounting one item usually moves volume on others, and this tool cannot see that.
- Unit cost is assumed constant. In reality it falls with volume up to a point and then rises sharply when you run out of capacity, which is exactly the point a volume discount tends to reach.
- Nothing here handles tax. Prices and costs should both be entered on the same basis, and if one includes sales tax and the other does not, every figure will be wrong.
- Mixed-currency lists will not work — one currency at a time.
Printing and sharing
The Report tab prints the tiles, charts and both tables with a title block you fill in. The conversion reference table is worth printing on its own and leaving where quotes get written.
Saving your work
The list is held in this browser, on this computer, and stays there between visits. Use the backup button to write a JSON file you control.
Accuracy & disclaimer
Every cost and price here is yours, and the tool applies the four formulas above exactly. It has no view about whether a price is competitive, whether a cost is complete, or whether a discount was worth giving. It is arithmetic, not advice.
Where this fits
Part of Pricing & Profitability in Small Business & Freelance.
Related tools
Work out break-even volume, break-even revenue, contribution margin, margin of safety and the price you need to hit a target profit. Handles fixed amounts and percentage-of-price costs, compares three scenarios and prints an investor-ready report. Runs entirely in your browser. No installation, no a
Work out the hourly, day and week rate a freelancer or consultant must charge to reach a target take-home income, after unbillable time, business costs, taxes and contributions. Any currency, any country. Runs entirely in your browser. No installation, no account, no upload.
Record business expenses in any currency, track reclaimable input tax (VAT/GST/HST), deductible spend, rebillable client costs and budget variance, then print an accountant-ready report. Runs entirely in your browser. No installation, no account, no upload.
Work out the payment, total interest, effective annual rate including fees and the full amortisation schedule for a business loan, hire purchase or equipment finance agreement. Balloon payments, payments in advance, overpayments and side-by-side offer comparison. Runs entirely in your browser. No in
Work out the fully-loaded annual cost of an employee, the true cost per productive hour, the on-cost multiplier and the charge-out rate you need — then compare the same work priced as a contractor. Runs entirely in your browser. No installation, no account, no upload.
Create professional invoices for any country: 40+ currencies, VAT / GST / HST / sales-tax handling, tax-inclusive or tax-exclusive pricing, per-line discounts, and a built-in invoice register with paid / outstanding charts. Runs entirely in your browser. No installation, no account, no upload.