Profit Margin and Markup Calculator
Find margin and markup from a selling price, or calculate a price that meets your target percentage.
Margin versus markup: a simple example
If a product costs $60 and sells for $100, gross profit is $40. Margin divides $40 by the $100 selling price: 40% margin. Markup divides $40 by the $60 cost: 66.67% markup. The same profit gives different percentages because the denominators differ.
A 25% margin on a $60 cost requires $80 selling price. A 25% markup on the same cost requires $75. Margin and markup are not interchangeable.
Formulas
Gross profit = price - cost. Margin = profit / price × 100. Markup = profit / cost × 100. Target-margin price = cost / (1 - margin / 100). Target-markup price = cost × (1 + markup / 100).
Losses produce negative percentages. Margin is undefined at zero selling price; markup is undefined at zero cost. A positive cost is required in target-price modes. Results use exact decimal arithmetic for prices and cents.
Break-even volume = fixed costs / positive contribution per unit, rounded up to a whole unit. With no fixed costs and nonnegative contribution, zero units cover costs. No sales-volume or demand forecast is implied.