Calculators
Profit margin calculator
See gross margin and markup from a selling price and a cost. Margin is profit divided by price. Markup is profit divided by cost. They are not the same percent.
How to use
- Enter the price you charge and your cost for the same unit.
- Read margin and markup separately. A quote that says “30% margin” is not a 30% markup.
- Leave out overhead if you only know the unit cost. The result is then a unit gross margin, not a net profit.
Formula / how it's calculated
Profit = price − cost. Margin = profit ÷ price × 100. Markup = profit ÷ cost × 100. Margin needs a price above zero. Markup needs a cost above zero.
Worked example
Price $50 and cost $30 is $20 profit, a 40% margin (20 ÷ 50) and a 66.67% markup (20 ÷ 30).
Margin and markup both describe the gap between cost and price, and they use different bases. Margin divides the gap by the selling price. Markup divides the gap by the cost. A price of $50 on a cost of $30 is a $20 gap. The margin is 40% because 20 divided by 50 is 0.40. The markup is 66.67% because 20 divided by 30 is about 0.6667. Quoting one of those percents when the buyer expected the other changes the price.
Enter the price you actually charge and the cost of that same unit. The cost should include what you paid for the goods and any cost that truly belongs to the unit, such as inbound freight you can tie to it. Rent, salaries, and advertising are overhead. Leave them out if you want a gross margin on the unit. Include them only if you have already spread them into a per-unit cost you believe in.
A zero price makes margin undefined, because you would be dividing by zero. A zero cost makes markup undefined for the same reason. The calculator shows a result only when the denominator is usable. A price below cost produces a negative margin, which is a loss on the unit. That result is a warning, not a pricing suggestion.
A target margin is not entered as a markup. If you need a 40% margin, the price has to be cost divided by 0.60, not cost times 1.40. Cost times 1.40 is a 40% markup, and the margin on that price is about 28.6%. This page shows both directions from a price and a cost you already have. It does not solve for the price that hits a target. You can test a candidate price by typing it and reading the margin.
Use the break-even calculator next when the question is how many units cover rent and other fixed costs. Margin on one unit does not answer that. It only describes the unit.
FAQ
What is the difference between margin and markup?
Margin divides profit by the selling price. Markup divides profit by the cost.