Margin and markup calculator
Calculate gross profit, margin, markup, target selling prices, and the effect of discounts.
Result
Enter your values to see results.
Gross profit excludes overhead, fees, shipping, and taxes. Margin uses selling price as its base; markup uses cost.
How it works
Profit = selling price − cost. Margin = profit ÷ selling price × 100. Markup = profit ÷ cost × 100. Target price = cost ÷ (1 − target margin / 100).
Worked examples
Typical task
A cost of 60.00 and selling price of 100.00 give 40.00 gross profit. Margin is 40 ÷ 100 = 40%; markup is 40 ÷ 60 × 100 = 66.6667%.
A different case
Discount that 100.00 selling price by 10% and revenue becomes 90.00. Profit falls to 30.00 and margin to 33.3333%; a 10% price reduction is not a 10% profit reduction.
Instructions, limits, and common questions
Instructions
- Choose selling-price or target-margin mode and enter cost in one currency.
- Enter the selling price or a target margin below 100%, then set an optional discount.
- Compare gross profit, margin, markup, and the discounted result before copying or printing.
Limits and assumptions
Use one currency. Amounts allow two decimal places and round to cents. Target margin must be below 100% with a positive cost. A zero selling price makes margin undefined; a zero cost makes markup undefined. Discount is 0–100%. Gross profit excludes taxes, fees, shipping, and overhead. All processing is local; inputs are not stored or transmitted.
Why are margin and markup different?
They divide the same profit by different bases. A 50% markup on cost produces a 33.3333% margin on selling price.
Can I target a 100% margin?
No. With a positive cost, the target-price formula divides by 1 minus the margin; 100% would divide by zero.
What does undefined mean?
A zero selling price has no defined margin, and a zero cost has no defined markup. Profit can still be displayed without inventing a percentage.
