Profit Margin Calculator
Compare profit, margin and markup or calculate a price for a target margin.
Your result
For information only. Results are estimates based on your inputs and assumptions. This tool does not provide financial, investment, tax or legal advice or recommend any financial product. Verify important figures and seek qualified advice where appropriate. Unentered overheads, taxes and other expenses are excluded. Calculated gross profit is not a guarantee of actual profit.
About this tool
Separate margin from markup, compare products and work backward from a target. All prices use the same currency without exchange-rate conversion.
Choose the pricing question you need to answer
- From cost and price: enter both values to calculate gross profit, margin and markup. A target margin is not used in this mode.
- From cost and target margin: enter cost and the desired margin to calculate selling price. From price and target margin: enter selling price to calculate the corresponding cost.
- Add another product to compare the same calculation across items. Product rows are independent: no quantities or sales mix are assumed.
- Use one currency and the same cost basis throughout. Gross profit excludes any costs you have not included; a calculated target price is not a recommendation.
How the calculation works
Gross profit = selling price − cost. Margin = gross profit ÷ selling price × 100. Markup = gross profit ÷ cost × 100. Target selling price = cost ÷ (1 − target margin). Reverse cost = selling price × (1 − target margin).
Worked example
A product costing $70 sold for $100 earns $30 gross profit. Margin is 30%; markup is 42.86%. A $70 cost with a 40% target margin requires a price of $116.67.
Margin and markup use different denominators
| Cost | Selling price | Gross profit | Margin | Markup |
|---|---|---|---|---|
| 70.00 | 100.00 | 30.00 | 30.00% | 42.86% |
| 60.00 | 100.00 | 40.00 | 40.00% | 66.67% |
| 100.00 | 80.00 | −20.00 | −25.00% | −20.00% |
A 30% markup is not a 30% margin
Adding 30% to a cost of 70 gives a selling price of 91. The profit of 21 is 30% of cost, but only 23.08% of the selling price. To obtain a 30% margin from that same cost, the calculated price is 70 ÷ 0.70 = 100.
When selling price is zero, margin has no defined percentage. When cost is zero, markup has no defined percentage. The calculator labels these cases Undefined rather than showing a misleading zero or infinity.
Add fixed costs to find the sales threshold
A margin percentage alone does not show how many sales cover fixed costs. If the cost entered here is the variable cost of one unit, carry that cost and the selling price into the Break-Even Calculator, then enter fixed costs separately for the same period. Do not include those fixed costs in both inputs.
For a price of 100 and variable cost of 70, each sale contributes 30 toward fixed costs. Fixed costs of 1,500 require 50 units to break even. At that volume, the full 1,500 contribution covers fixed costs and leaves zero profit under the model. Demand and capacity are separate questions.
Assumptions and limitations
Cost includes only the costs you enter. Zero selling price makes margin undefined; zero cost makes markup undefined. Negative profit is permitted when cost exceeds price. Target margin must be less than 100%.
Include relevant direct costs consistently across products. Gross margin does not equal net profit: overhead, tax, refunds, shipping and transaction costs may still reduce earnings. Target-price output is arithmetic, not a pricing recommendation.
Common questions
Why are margin and markup different?
They divide the same gross profit by different amounts: selling price for margin, cost for markup.
Guide updated 2026-11-13. Calculation method and source dates remain separate.
Method reviewed 2026-10-14. Calculation standards · Report an issue