Use this free profit margin calculator to see how much you keep from each sale. Enter the cost and the selling price to find the profit, gross margin, and markup. Or enter a target margin to find the price you need. Results update as you type.
Margin tells you what share of each sale is profit. Markup tells you how much you added to the cost. The two numbers look similar but are not the same.
How to use the profit margin calculator
For the first tool, type the cost and the selling price. Add the units sold if you want total profit. For the second tool, type the cost and the margin you want to earn.
- Gross margin: profit as a share of the selling price.
- Markup: profit as a share of the cost.
- Profit per unit: the selling price minus the cost.
- Selling price needed: the price that gives your target margin.
Formulas
| Measure | Formula | Example |
|---|---|---|
| Profit | Price − Cost | 100 − 60 = 40 |
| Gross margin | (Price − Cost) ÷ Price × 100 | 40 ÷ 100 = 40% |
| Markup | (Price − Cost) ÷ Cost × 100 | 40 ÷ 60 ≈ 66.7% |
| Price for a target margin | Cost ÷ (1 − Margin) | 60 ÷ (1 − 0.40) = 100 |
Worked examples
Margin from price and cost
An item costs 60 and sells for 100. The profit is 40, so the gross margin is 40% and the markup is about 66.7%.
Price for a target margin
To earn a 40% margin on an item that costs 60, the price must be 60 ÷ 0.60 = 100.
Total profit across units
Selling 250 units at 40 profit each gives a total profit of 10,000.
Common mistakes
- Mixing up margin and markup. A 50% markup is a 33.3% margin, not 50%. Check which one you need.
- Adding a percentage to the price. To get a 40% margin, you cannot simply add 40% to the cost. Use the target-margin formula.
- Leaving out costs. Shipping, packaging, and fees reduce the real profit if they are not in the cost.
Frequently asked questions
What is profit margin?
Profit margin is the share of the selling price that is profit after the cost of the item is paid. It is calculated as (price − cost) ÷ price × 100.
What is the difference between margin and markup?
Margin divides the profit by the selling price. Markup divides the profit by the cost. For example, a cost of 60 sold for 100 has a 40% margin and a 66.7% markup.
How do I find the price for a target margin?
Divide the cost by one minus the target margin as a decimal. For example, a cost of 60 with a 40% target margin gives 60 ÷ (1 − 0.40) = 100.
Is a higher margin always better?
Not always. A higher margin can make a product harder to sell. The right margin depends on your costs, competition, and how many units you expect to sell.
Is the Xornex profit margin calculator free?
Yes. The Xornex profit margin calculator is available to use free of charge.