Profit Margin Calculator
Is the price actually making you money?
Margin, markup and profit in one place: enter the cost and the selling price — or the cost and your total revenue — and see the gross margin, the markup, the profit per unit, the total profit and the price where profit is exactly $0.
Your cost and price
Enter your cost and price to see the margin and profit.
How to calculate profit margin — worked examples
Example 1: cost $40 per unit, price $60 per unit, 100 units sold. Profit per unit is $60 − $40 = $20.00. Gross margin is $20 ÷ $60 = 33.33%. Markup is $20 ÷ $40 = 50.00%. Total revenue is 100 × $60 = $6,000.00, total cost is 100 × $40 = $4,000.00, and total profit is $6,000 − $4,000 = $2,000.00. The break-even price is the cost: $40.00.
Example 2: cost $12.50 per unit, price $20 per unit, 250 units sold. Profit per unit is $20 − $12.50 = $7.50. Gross margin is $7.50 ÷ $20 = 37.50%. Markup is $7.50 ÷ $12.50 = 60.00%. Total revenue is 250 × $20 = $5,000.00, total cost is 250 × $12.50 = $3,125.00, and total profit is $5,000 − $3,125 = $1,875.00.
Example 3 — total revenue instead of a price: the same sale as Example 2, entered as $5,000 total revenue on 250 units with a $12.50 cost. The price per unit works out as $5,000 ÷ 250 = $20.00, and every other answer matches Example 2 exactly: 37.50% margin, 60.00% markup, $1,875.00 total profit.
Example 4 — selling at a loss: cost $30 per unit, price $25 per unit. Profit per unit is $25 − $30 = −$5.00. Gross margin is −$5 ÷ $25 = −20.00% and markup is −$5 ÷ $30 = −16.67%. Every sale loses $5, so selling more only loses more.
Margin vs markup — the difference
Margin and markup divide the same profit by a different number. Margin divides by the selling price, so it is the share of each sale that is profit — and it can never be more than 100%. Markup divides by the cost, so it is how much you add on top of cost — and it has no upper limit. A 50% markup is a 33.33% margin; a 100% markup (doubling the cost) is a 50% margin; a 300% markup is a 75% margin.
Use margin when you want to know how much of your revenue stays as profit, and markup when you are setting a price from a cost. Mixing them up is expensive: pricing at a "50% margin" when you meant a 50% markup means charging $80 on a $40 cost instead of $60 — or the other way round, charging $60 when you needed $80.
What the margin does not cover
This is gross margin: profit after the cost of the goods, before rent, subscriptions, payment fees and tax. A 33% gross margin can still lose money overall if those other costs are bigger than the gross profit — that is why the break-even price here is only the starting point. Once you know the margin, work out how many sales you need to cover all your costs with the break-even calculator, check what a discount would do to the margin with the discount calculator, and subtract the payment fees with the payment processing fee calculator. A margin that looks healthy on one unit is only real profit when the volume covers the fixed costs too.
Frequently asked questions
What is profit margin?
Gross profit margin is profit divided by the selling price, shown as a percent. A $20 profit on a $60 selling price is a $20 / $60 = 33.33% margin — about a third of every sale is profit before your other costs.
What is the difference between margin and markup?
Margin divides profit by the selling price; markup divides the same profit by the cost. A $20 profit on a $40 cost sold for $60 is a 33.33% margin ($20 / $60) and a 50% markup ($20 / $40). Markup is always the bigger number.
How do you calculate profit per unit?
Subtract the cost per unit from the selling price per unit. A $60 price and a $40 cost give $60 - $40 = $20 profit per unit. Multiply by the units sold for total profit: 100 units give $2,000.
What is the break-even price?
The price at which profit is exactly $0 — which is your cost. With a $40 cost per unit, a $40 price breaks even: charge more and each sale makes money, charge less and each sale loses money.
Can I use total revenue instead of a price per unit?
Yes — pick the total-revenue option, enter your total revenue and the units sold, and the calculator works out the price per unit for you. $5,000 of revenue on 250 units is a $20 price per unit.
What if my price is lower than my cost?
Then every sale loses money and both margin and markup go negative. A $25 price on a $30 cost loses $5 per unit, a -20.00% margin and a -16.67% markup — raise the price above the cost or cut the cost.
Last updated: 30 November 2026. This calculator gives general information, not financial or tax advice. Margin figures are estimates based on the costs and prices you enter — check your real costs before setting a price.
