Figures Simplified

Margin & Markup Calculator

Compare a selling price with your cost, or find the price that meets your target margin or markup.

Jump to calculator

Free to use. Your inputs stay on this page and are not saved or sent anywhere.

Choose a pricing calculation

Include the per-unit costs relevant to your decision. This calculation does not add overhead, tax or fees for you.

What would you like to calculate?

Enter your figures

Your base cost for one unit.
Blank means 0. Include per-unit shipping or packaging, not unallocated monthly costs.
Enter a selling price greater than 0.
Input format and precision

Use a decimal point and no thousands separators. Inputs support up to 24 significant digits, with magnitude up to 1e15 and nonzero magnitude at least 1e-12. Results show up to 12 significant digits; ≈ marks rounding. No currency conversion is performed.

Your result

Enter your figures, then select Calculate.

Margin and markup use different bases

Total cost = base cost + additional per-unit costs
Profit on entered-cost basis = selling price − total cost
Margin = profit ÷ selling price × 100
Markup = profit ÷ total cost × 100

Target margin

Choose profit as a percentage of your selling price, based on the costs you enter.

Target-margin price = total cost ÷ (1 − margin ÷ 100)

Target markup

Choose the percentage added to your total entered cost.

Target-markup price = total cost × (1 + markup ÷ 100)

Worked example for a unit that costs 60. A 40% target margin needs a price of 100. That gives 40 profit per unit and about 66.67% markup. A 40% target markup gives a price of 84, a profit of 24 and a margin of about 28.57%.

Target modes require total cost greater than 0. Target margin must be below 100%; target markup must be greater than -100%. Negative targets represent a loss. Use Compare cost and price for a zero-cost item.

A target price is a mathematical result, not a recommended selling price. Recheck your chosen chargeable price in Compare cost and price. Percentage-of-price fees, demand changes, tax rules and overhead allocation require separate analysis.

Use amounts on a consistent tax basis. For a tax-exclusive business comparison, exclude sales tax from the selling price and recoverable tax from costs; include irrecoverable taxes where relevant.

What does the entered cost basis mean?

The difference between selling price and entered unit costs depends on your cost basis. It represents gross profit when those costs are cost of sales; subtracting other per-unit selling costs gives a different measure. Contribution deducts variable costs, while operating profit also reflects the relevant operating costs. This calculator does not classify costs or calculate collected cash.

A price of 100 less base unit cost of 60 gives a difference of 40. Add 10 of relevant per-unit costs and total entered cost becomes 70: the difference falls to 30, the margin is 30%, and markup is 30 divided by 70, or about 42.86%. Keep the cost classification and tax basis consistent before comparing these results with an accounting gross-margin report.

IAS 2 explains how to determine inventory cost. For sold inventory, the carrying amount is expensed in the same period as the related revenue. IAS 2 Inventories summary

Common questions

Can margin or markup be negative?

Yes. If cost is 120 and price is 100, profit is −20, margin is −20%, and markup is approximately −16.67%. That is a loss at the entered cost and price; the calculator keeps the negative result.

What happens when cost is zero?

A positive selling price with zero cost has a 100% margin on that entered cost basis. Markup is undefined because its denominator is zero. A lower target margin cannot be achieved at any positive selling price without adding cost.

Why must selling price be positive?

This tool models a sale at a positive unit price. A zero selling price makes the margin percentage undefined. Negative prices, credits and returns require a different comparison and are outside this calculator.

Related calculators

Check the next pricing decision

No figures are transferred to these calculators. Check their cost definitions and assumptions before re-entering your figures.