Calculate gross profit, profit margin % and markup % from your cost and selling price, or work backwards to the price you need for a target margin or markup.
Gross profit = Selling price − Cost Profit margin % = Gross profit ÷ Selling price × 100 Markup % = Gross profit ÷ Cost × 100 Price for a target margin = Cost ÷ (1 − Margin %/100) Price for a target markup = Cost × (1 + Markup %/100)
Example: an item costs $60 and sells for $100. Gross profit is $40, the margin is 40% (40 ÷ 100) and the markup is 66.67% (40 ÷ 60).
They use the same profit but divide by different numbers: margin by the price, markup by the cost. Markup is always the bigger number. Mixing them up is a common pricing mistake: adding a 40% markup to a $60 cost gives $84, which is only a 28.6% margin.
| Margin | Equivalent markup |
|---|---|
| 10% | 11.11% |
| 20% | 25% |
| 25% | 33.33% |
| 30% | 42.86% |
| 40% | 66.67% |
| 50% | 100% |
This calculator gives gross margin: price minus the direct cost of the item. Operating margin also subtracts running costs such as rent and wages, and net margin subtracts everything including interest and tax. The same formula applies: the profit figure divided by revenue.
Trading on margin? That’s a different thing: see the forex and CFD margin calculator.
ChartWatch is independent and not affiliated with TradingView, any broker or exchange. This calculator uses only the numbers you enter and runs in your browser. Results are estimates before taxes and any costs you leave out. It is a calculation tool, not financial advice.
ChartWatch is an independent tool and is not affiliated with, endorsed by, or officially connected to TradingView, Inc. “TradingView” is a trademark of its respective owner. Exchange, broker and platform names are trademarks of their respective owners.