Markup & Margin Calculator
Price a product from what it costs you — set the price by a markup on cost or by a target margin on the selling price — and see both at once.
Markup is profit as a percentage of cost; margin is profit as a percentage of the selling price. A 50% markup equals roughly a 33% margin.
A $20 cost with 50% markup prices at $30 and earns $10. That $10 is 33% of the $30 selling price, so your margin is 33%. If instead you want a 50% margin, price at $40 (cost ÷ 0.5). Feed the numbers through the mode switch to see it live.
How markup and margin differ
Markup = (Price minus Cost) divided by Cost. Margin = (Price minus Cost) divided by Price. A 100% markup gives 50% margin. They are NOT interchangeable — markup is always higher than margin.
Frequently asked questions
How do I compute margin from markup?
margin = markup ÷ (1 + markup). For markup m as a decimal, margin = m/(1+m). A 25% markup → 20% margin.
How do I compute markup from margin?
markup = margin ÷ (1 − margin). For a 40% margin, markup = 0.40/0.60 ≈ 67%.
Last updated — rates and figures change over time, so always confirm with the current source.
Figures are estimates for general information, not financial advice — see our disclaimer.
How to verify this calculator
- Last verified
- — the calculation logic and the automated regression suite were re-run on this date. Fee and rate fields are editable estimates; confirm current values against the official schedule before relying on them.
- Official / methodology source
- No platform fee schedule applies to this calculator. Its formula is documented in the project source and exercised by the regression suite linked below.
- Method & testing
- All arithmetic runs locally in your browser — no input is uploaded. Calculation behaviour is exercised by the repository's regression suite: 39/39 checks passed (run 2026-11-08). Source & tests on GitHub.
- Maintained by
- Jim (Maoming, Guangdong, China) · eyetoolkit. Report a wrong result through the contact page.
- Changelog
- 2026-11-08 — Added this verification panel (last verified date, official or methodology source, test coverage, named maintainer, changelog). Calculator logic and default rates are unchanged.