Loading the interface. JavaScript is required; controls stay disabled until ready.
Clear totals, useful details and the method behind them.
Fill in your details and select Calculate margin. Your result will appear here.
How to use Profit Margin Calculator
- Enter the values labelled for this calculation and choose the relevant options.
- Select Calculate to see the primary result, supporting figures and calculation breakdown.
- Review the methodology below. Copy result keeps a plain-text summary; Reset restores the example inputs.
Formula and methodology
Profit = sale - cost; margin = profit / sale × 100; markup = profit / cost × 100. Target price = cost / (1 - target margin).
A worked example
Cost 60 and selling price 100 give profit 40, margin 40% and markup about 66.67%.
Assumptions and limitations
Gross calculations exclude overhead and tax. Zero denominators are shown as undefined. Reverse pricing rounds upward to cents to meet the selected target.
Questions and answers
Are margin and markup interchangeable?
No. Margin divides by selling price, while markup divides by cost.
Compare margin with markup
Margin and markup both compare profit with a reference amount, but they use different denominators. Confusing them can produce a lower selling price than intended. Enter cost and selling price consistently before interpreting either percentage.
A practical example
A product costing $40 and selling for $50 earns $10 gross profit. Margin is 10 divided by 50, or 20%; markup is 10 divided by 40, or 25%. Adding 20% to the cost would produce $48, which is not the same as a 20% margin on the selling price.
Work backward from a target margin
To reach a target gross margin, divide cost by one minus the target rate. At $40 cost and a 20% target,40 divided by 0.8 gives a $50 price. The calculator rounds reverse pricing upward to cents so ordinary rounding does not undershoot the entered target. Targets below 100% are required for this model.
Gross profit is not take-home income
Overheads, platform fees and tax are excluded unless you deliberately incorporate relevant costs into your input. A zero selling price has no defined margin and a zero cost has no defined markup. Losses can produce negative results. This is a product-pricing model, not securities margin lending or an assessment of a business financial condition.
Worked example: pricing a handmade product
A candle costs $12 to make and sells for $20. Profit is $8. Margin is profit divided by price: 8 / 20 = 40%. Markup is profit divided by cost: 8 / 12 = 66.7%. If you want a 50% margin instead, divide cost by one minus the margin: 12 / 0.5 = $24. If you sell in the UK, EU or Australia, work these numbers out on prices before VAT or GST.
More questions about the Profit Margin Calculator
What is a good profit margin?
It depends heavily on the industry. Grocery stores often run net margins of 1 to 3%, restaurants around 3 to 6%, and software companies can exceed 20%. Gross margin, which only subtracts the direct cost of goods, is always higher than net margin, which also subtracts rent, wages, marketing and tax. Compare against businesses like yours.
How do I calculate the selling price from a target margin?
Divide the cost by one minus the target margin as a decimal. For a cost of $45 and a 30% margin, the price is 45 / 0.7 = $64.29. Adding 30% to the cost instead gives $58.50, which is only a 23% margin. Mixing these up is one of the most common pricing mistakes.
Why can margin never be 100% or more?
Margin is profit as a share of the selling price, and profit cannot exceed the price unless the cost is negative. Markup has no such limit: a product that costs $5 and sells for $20 has a 300% markup but a 75% margin. Quotes of 200% margin usually mean markup.
Choose your next task
- Freelance profit calculator: Include project-specific platform costs and a reserve assumption.
- Cash runway calculator: Explain cash burn without claiming accounting profit or PMP earned-value analysis.
- Discount calculator: Review how a reduced selling price affects the amount received.
- Percentage calculator: Check the denominator behind a rate comparison.