What this calculator does
The Margin Cost Calculator turns two numbers you already know — your selling price and your cost price — into three figures that matter when pricing a product: the cash profit per unit, the profit margin as a percentage of revenue, and the markup as a percentage of cost. It works in any currency because it only deals with the relationship between the two amounts, so it suits retailers, freelancers, resellers and anyone setting prices.
The inputs you enter
- Selling Price — the amount the customer pays you for one unit.
- Cost Price — what that unit cost you to buy or make.
Both should be entered on the same basis (per single unit, or per batch — just keep them consistent).
The formulas it uses
The calculator runs three short steps:
- Profit = \(\text{Selling Price} - \text{Cost Price}\)
- Margin % = \((\text{Profit} \div \text{Selling Price}) \times 100\)
- Markup % = \((\text{Profit} \div \text{Cost Price}) \times 100\)
The key distinction is the denominator: margin is profit measured against the selling price, while markup is the same profit measured against the cost. That is why markup is always the larger of the two percentages for a given sale.
$$\begin{gathered} \text{Margin \%} = \frac{\text{Selling Price} - \text{Cost Price}}{\text{Selling Price}} \times 100 \\[1.5em] \text{Markup \%} = \frac{\text{Selling Price} - \text{Cost Price}}{\text{Cost Price}} \times 100 \end{gathered}$$
Worked example
Suppose you sell an item for 100 that cost you 60:
- Profit = \(100 - 60 = \mathbf{40}\)
- Margin = \((40 \div 100) \times 100 = \mathbf{40\%}\)
- Markup = \((40 \div 60) \times 100 = \mathbf{66.67\%}\)
So the same 40 of profit is a 40% margin but a 66.67% markup — handy to know when a supplier quotes "markup" and your accounts report "margin".
Margin to Markup Conversion Table
Margin is measured against the selling price, while markup is measured against cost. The same profit therefore gives a different percentage for each. The table converts common margins to the equivalent markup.
| Margin % | Equivalent Markup % |
|---|---|
| 10 | 11.11 |
| 20 | 25 |
| 25 | 33.33 |
| 30 | 42.86 |
| 33.33 | 50 |
| 40 | 66.67 |
| 50 | 100 |
| 60 | 150 |
| 75 | 300 |
Conversion formulas
Margin to markup:
$$\text{Markup \%} = \frac{\text{Margin \%}}{100 - \text{Margin \%}} \times 100$$
Markup to margin:
$$\text{Margin \%} = \frac{\text{Markup \%}}{100 + \text{Markup \%}} \times 100$$
Selling price from a target margin (margin written as a decimal, e.g. 0.40 for 40%):
$$\text{Price} = \frac{\text{Cost}}{1 - \text{Margin}}$$
Example: a product costs $60 and you want a 40% margin. Price = \(60 / (1 - 0.40) = 60 / 0.60 = 100\), so you would sell at $100. Note that adding 40% markup to $60 would give only $84, which is a margin of about 28.57%.
Key Terms: Cost, Revenue, Profit, Margin and Markup
- Selling price
- The amount a customer pays per unit. Multiplied by units sold, it gives revenue.
- Cost price (COGS)
- The direct cost of acquiring or producing the item, such as purchase price, materials and direct labor. In accounting this is called cost of goods sold (COGS).
- Gross profit
- Selling price minus cost price. It is the amount left to cover overheads and, ideally, to leave a net profit.
- Gross margin
- Gross profit as a percentage of the selling price: (Price − Cost) ÷ Price × 100.
- Markup
- Gross profit as a percentage of cost: (Price − Cost) ÷ Cost × 100. It is the percentage added on top of cost to reach the price.
- Break-even price
- The price at which profit is zero, so margin and markup are both 0%. At the unit level this equals the cost price; once overheads are included, it is the cost plus the overhead share per unit.
Note: this calculator works with gross figures only. It does not subtract overheads, taxes, payment or marketplace fees, shipping, discounts or returns, so your real net profit will be lower than the margin shown.
Frequently asked questions
What's the difference between margin and markup? Margin shows what fraction of your revenue is profit; markup shows how much you've added on top of cost. Both come from the same profit figure but use different denominators.
Can the margin be negative? Yes. If your cost price is higher than your selling price, the profit is negative and so are the margin and markup — a signal you're selling at a loss.
Why can markup exceed 100% but margin can't? Margin is profit as a share of selling price, so it can never reach 100% unless cost is zero. Markup compares profit to cost, which can easily be exceeded — doubling your cost gives a 100% markup.