Profit Margin Calculator
Use cost and selling price for a product margin, a target margin to plan a price, or business totals for gross or net margin. Keep all amounts in one currency and accounting period.
Calculation steps
100 − 60 = 40
40 ÷ 100 × 100 = 40%
40 ÷ 60 × 100 = 66.67%
Profit margin compares profit with selling price or revenue. Markup compares profit with cost. A product costing 60 and selling for 100 has a 40% margin but a 66.67% markup.
Margin formulas
- Margin % = (price − cost) ÷ price × 100.
- Price for a target margin = cost ÷ (1 − margin %).
- Markup = margin ÷ (1 − margin). A 50% margin is a 100% markup.
- For positive cost, finite selling-price targets require margin below 100%. Zero cost with positive revenue can yield 100% margin.
How to use the Profit Margin Calculator
- Choose Cost + Price to calculate profit, profit margin and markup from a product cost and selling price.
- Product profit equals selling price minus cost.
- Product margin equals profit ÷ selling price × 100.
- Product markup equals profit ÷ cost × 100.
- Choose Target Margin to calculate the selling price required for a desired margin.
- Target selling price equals cost ÷ (1 − target margin ÷ 100).
- A target margin of 100% or more is not valid for a positive-cost selling-price calculation.
- Choose Gross Margin to calculate revenue minus COGS and divide gross profit by revenue.
- Choose Net Margin to divide entered net profit by total revenue.
- Revenue equal to zero makes percentage margin undefined because it would create a zero denominator.
- The calculator does not infer accounting expenses. In Net Margin mode, the entered net-profit figure must already reflect whichever expenses, interest and taxes belong in your accounting definition.
Revenue and cost are different denominators
Margin divides profit by revenue; markup divides by cost. Zero revenue makes margin undefined. A zero-cost product with a positive price can have 100% margin, but a positive-cost target price requires margin below 100%. Net mode needs an already calculated net profit.
Examples
Cost 60 and selling price 100
Profit = 100 − 60 = 40. Profit margin = 40 ÷ 100 × 100 = 40%. Markup = 40 ÷ 60 × 100 = 66.67%.
Target 40% margin on a cost of 60
Required selling price = 60 ÷ (1 − 0.40) = 100. Profit is 40 and the equivalent markup is about 66.67%.
Gross margin
Revenue of 100,000 and COGS of 60,000 produce gross profit of 40,000 and gross margin of 40%.
Net margin
Revenue of 100,000 and entered net profit of 15,000 produce a net profit margin of 15%.
Margin is not markup
A product costing 80 and selling for 100 earns 20 profit. Its margin is 20%, while its markup is 25%.
Zero revenue
A percentage margin cannot be calculated when revenue or selling price is zero because the margin formula divides by that value.
Check the result in context
Zero-cost boundary: cost 0 and price 100 give profit 100 and margin 100%, while markup is undefined because its denominator is zero.
Margin, markup and selling price for a $100 cost
| Margin | Equivalent markup | Price at $100 cost |
|---|---|---|
| 10% | 11.11% | $111.11 |
| 15% | 17.65% | $117.65 |
| 20% | 25.00% | $125.00 |
| 25% | 33.33% | $133.33 |
| 30% | 42.86% | $142.86 |
| 33.33% | 49.99% | $149.99 |
| 40% | 66.67% | $166.67 |
| 50% | 100.00% | $200.00 |
| 60% | 150.00% | $250.00 |
Frequently asked questions
What is the profit margin formula?
Profit margin equals profit divided by selling price or revenue, multiplied by 100.
What is the difference between margin and markup?
Margin compares profit with selling price or revenue. Markup compares profit with cost.
How do I calculate selling price from target margin?
Selling price equals cost divided by 1 minus the target margin expressed as a decimal.
Why must target margin be below 100%?
At 100%, the denominator in the selling-price formula becomes zero. Above 100%, the formula does not represent an ordinary positive-cost selling-price margin.
What is gross margin?
Gross margin is gross profit divided by revenue. In this calculator, gross profit is revenue minus entered cost of goods sold.
What is net profit margin?
Net profit margin is entered net profit divided by revenue, multiplied by 100.
Does the calculator determine net profit automatically?
No. Net Margin mode expects you to enter a net-profit amount that already reflects the costs included in your chosen accounting definition.
What happens if revenue is zero?
The percentage margin is undefined because the formula would divide by zero.
Can a margin be negative?
Yes. Cost 120 and price 100 produce profit −20 and margin −20%. A loss is meaningful; zero revenue still has no defined percentage margin.
More math tools
Markup Calculator
Calculate markup, selling price, profit and margin from cost or price.
Open tool →Percentage Change Calculator
Calculate percentage increase or decrease from an original value to a new value.
Open tool →Percentage Calculator
Calculate percentages, increases and decreases.
Open tool →Trucking Break-Even Rate Calculator
Calculate trucking break-even rate per loaded mile and total mile using operating costs, deadhead and target profit margin.
Open tool →Net Worth Calculator
Calculate total assets, liabilities and personal net worth.
Open tool →Scientific Calculator
Advanced calculator for trig, logs, roots, powers, factorials and more.
Open tool →