0

Margin Calculator

Calculate revenue, profit, margin and markup from a cost plus any one of selling price, margin percent or markup percent — with both formulas shown.

Processing... 0%
Reading the cost and the known value
Solving for revenue and profit
Computing margin and markup

Result

Margin and markup are the two most frequently confused numbers in pricing, and getting them backwards silently eats profit. This calculator keeps them straight: enter the cost of a product plus any one value you know — the selling price, a margin percentage or a markup percentage — and it computes the rest: revenue, profit, margin and markup, always all together.

The two percentages share the same profit but use different bases. Margin divides profit by revenue (margin = (revenue − cost) ÷ revenue × 100) and answers what share of your selling price you keep. Markup divides the same profit by cost (markup = (revenue − cost) ÷ cost × 100) and answers how much you added on top of what you paid. On any profitable sale markup is always the larger number: a 25% markup is only a 20% margin.

Each direction of the calculation is exact, not iterative. From a target margin the price is cost ÷ (1 − margin); from a markup it is cost × (1 + markup); from a known price the tool simply splits it into cost and profit. The result panel prints both formulas with your actual numbers substituted in, so you can paste the working straight into a spreadsheet comment or a pricing document.

Use it to set a shelf price that protects a required gross margin, to translate a supplier's markup into the margin your accountant reports, or to sanity-check a discount before it turns a sale unprofitable. Amounts are plain numbers, so any currency works, and every calculation happens locally in your browser — nothing is uploaded or stored.