
Short answer: Profit margin = (price − cost) ÷ price × 100, and markup = (price − cost) ÷ cost × 100. Enter your cost and selling price in the free Profit Margin Calculator to see profit, margin and markup, or enter a target margin to find the price you need to charge.
Key Takeaways
- Profit = revenue − cost. Margin = profit ÷ revenue × 100. Markup = profit ÷ cost × 100.
- A product costing 60 and selling for 100 earns 40: a 40% margin and a 66.67% markup.
- Price for a target margin = cost ÷ (1 − margin ÷ 100).
- A 50% markup gives only a 33.3% margin. Mixing them up is a common cause of prices set too low.
- The result is gross profit based only on the cost you enter. Add shipping, fees, advertising, wages and tax for a net figure.
The Short Answer
Margin and markup both describe profit, but against different bases. Margin is a share of the selling price. Markup is a share of the cost. The Profit Margin Calculator has two parts: one finds profit, margin and markup from cost and price, and the other finds the price needed for a target margin.
How to use the Profit Margin Calculator
- Open the Profit Margin Calculator.
- For margin, enter your cost and your revenue or selling price.
- For pricing, enter your cost and the margin you want to earn.
- Read profit, margin, markup and the price needed.

Margin and markup formulas
- Profit = revenue − cost
- Profit margin = profit ÷ revenue × 100
- Markup = profit ÷ cost × 100
- Price for a target margin = cost ÷ (1 − margin ÷ 100)
Worked example: a product costing 60 and selling for 100 earns 40 of profit. The margin is 40 ÷ 100 = 40%, while the markup is 40 ÷ 60 = 66.67%. To earn a 30% margin on a cost of 70, the price must be 70 ÷ 0.70 = 100.
Margin is not markup
| Markup | Resulting margin |
|---|---|
| 25% | 20.0% |
| 50% | 33.3% |
| 100% | 50.0% |
Margin is a share of the selling price; markup is a share of the cost. A 50% markup gives only a 33.3% margin: cost 100, price 150, profit 50, and 50 ÷ 150 = 33.3%. Mixing them up is a common reason prices end up too low, so check which one your supplier, shop platform or accountant means.
Pricing for a target margin
To earn a 40% margin on a cost of 50, divide by 0.60: 50 ÷ 0.60 = 83.33. The profit is 33.33, and 33.33 ÷ 83.33 = 40%. Multiplying the cost by 1.40 would give only 70, a margin of about 28.6%. Use the second part of the calculator whenever you start from a margin target.
What the figures include
This is gross profit based only on the cost you enter. For a net figure, include shipping, payment fees, advertising, wages, rent and tax in the cost. A product with a healthy gross margin can still lose money after these costs, so treat the result as a first check. If a discount is planned, test it with the Discount Calculator and see our guide on calculating a discount.
Common mistakes
- Using markup when the target is a margin.
- Forgetting fees and shipping in the cost.
- Ignoring sales tax or VAT, which is not your revenue.
- Judging by percentage only. A 60% margin on a cheap item can earn less than a 20% margin on an expensive one.

Key Terms at a Glance
- Revenue: The selling price or total sales.
- Cost: What it costs you to buy or make the item.
- Profit: Revenue minus cost.
- Gross margin: Profit as a percentage of revenue.
- Markup: Profit as a percentage of cost.
- Net profit: Profit after all costs, fees and tax.
Frequently asked questions
Is the calculator free?
Yes. There are no limits or sign-ups.
Is anything stored or uploaded?
No. The numbers are calculated in the browser and nothing is uploaded or stored.
What is the difference between margin and markup?
Margin is profit as a share of the selling price. Markup is profit as a share of the cost.
How do I price for a 30% margin?
Divide the cost by 0.70. A cost of 70 needs a price of 100.
Does the result include shipping and fees?
Only if you add them to the cost.
Can margin be higher than 100%?
No. Margin cannot exceed 100% of the price, but markup can.
More free tools on FormatVolt
Last updated: November 14, 2026