Profit Margin Calculator
CalculatorsGross margin and markup from cost and price, or the price for a target margin.
- Markup
- 66.67%
- Profit
- $12.00
Gross margin before overhead, tax and other expenses; pre-tax, not accounting advice.
| Margin | Price | Markup |
|---|---|---|
| 20% | $22.50 | 25% |
| 25% | $24.00 | 33.3% |
| 30% | $25.71 | 42.9% |
| 40% | $30.00 | 66.7% |
| 50% | $36.00 | 100% |
| 60% | $45.00 | 150% |
| 70% | $60.00 | 233.3% |
Margin is profit as a share of the selling price; markup is profit as a share of the cost. To hit a target margin, divide the cost by 1 minus the margin.
margin = (price − cost) ÷ price · markup = (price − cost) ÷ cost · price = cost ÷ (1 − margin)
($30.00 − $18.00) ÷ $30.00 × 100 = 40%
Calculated in your browser. The numbers you enter and the result are saved to your past runs so you can reopen them. Privacy
About
What the Profit Margin Calculator does
The Profit Margin Calculator works out gross profit margin three ways: from an item's cost and selling price, with the markup alongside; the selling price needed for a target margin; and gross margin for a business from revenue and cost of goods sold. A table shows the price and markup for common margins at your cost. Figures are pre-tax and before overhead.
Steps
How to use it
- 1Pick a mode: cost and price, cost and target margin, or revenue and cost of goods sold.
- 2Enter the figures.
- 3Read the margin, markup or price.
- 4Check the table of common margins for pricing.
Example
A real run
Input
Cost $18, selling price $30
Output
Gross margin: 40.00% Markup: 66.67% Profit: $12.00 per sale
(30 − 18) ÷ 30 = 0.40; the same $12 is 66.67% of the $18 cost.
Options
Every setting, and when to use it
- Cost + price → margin
- Margin = profit ÷ price, with the markup (profit ÷ cost) shown alongside.
- Cost + margin → price
- The price that gives a target margin: cost ÷ (1 − margin).
- Revenue + COGS
- Gross margin for a period, from total sales and the cost of the goods sold.
Good to know
Common problems and limits
Gross margin only; operating expenses, overhead and taxes come out later as net margin. Not accounting advice.
A margin of 100% or more is impossible for a price, and the page says so.
To convert between margin and markup quickly, use the Margin vs Markup Calculator.
Audience
Who uses it
- Small business ownersPrice products for the margin you need.
- Online sellersCheck the margin on each listing, then find the sales needed to cover costs with the Break-even Calculator.
- StudentsPractice margin and markup problems.
FAQ
Frequently asked
What is the difference between margin and markup?
Both start from profit, price minus cost. Margin divides it by the price; markup divides it by the cost. An item that costs $18 and sells for $30 has a 40% margin and a 66.67% markup.
What is the difference between gross and net margin?
Gross margin only subtracts the cost of goods sold. Net margin also subtracts operating expenses, interest and taxes, so it is always lower.
How do I price for a target margin?
Divide the cost by 1 minus the margin. For a 40% margin on an $18 cost: 18 ÷ 0.6 = $30. Adding 40% to the cost ($25.20) gives only a 28.6% margin.
What is a good profit margin?
It depends on the industry: grocery and fuel run thin, software and services high. Compare with businesses like yours and remember overhead comes out of the gross margin.
Can a margin be negative?
Yes, when the price is below cost; each sale loses money.
How do I calculate margin in Excel?
=(B2-A2)/B2 with the cost in A2 and the price in B2; the price for a margin in C2 is =A2/(1-C2).
Automation: an MCP tool profit_margin(cost, price | margin) → margin, markup, price and an n8n node are planned for this tool.