About the Profit Margin Calculator
The Profit Margin Calculator runs entirely in your browser — nothing you enter is uploaded or stored.
Margin and markup sound interchangeable but they are not, and mixing them up is one of the most common — and most expensive — pricing mistakes a small business can make. This tool shows both, so you always know which number you are quoting.
How to use this tool
- Enter your cost per unit and the price you sell at.
- Optionally set a target margin to see the price that achieves it.
- Read profit, margin percentage and markup percentage side by side.
Margin vs markup
| Metric | Formula | Example (cost $30, price $50) |
|---|---|---|
| Profit | Price − Cost | $20 |
| Margin | Profit ÷ Price | 40% |
| Markup | Profit ÷ Cost | 66.7% |
Markup is always the larger figure because it divides by the smaller base (cost). A “50% markup” is only a 33% margin — a trap when you promise a margin to a partner or investor.
Pro tip
If you know the margin you need, divide cost by (1 − margin) to get the right price. On a $30 cost and a 40% margin that is $30 ÷ 0.6 = $50.
Who is this tool for?
Retailers, e-commerce sellers, freelancers and makers pricing products who need to compare margin and markup accurately.