Margin and markup calculator.
Find out what each sale leaves you. Enter a product's cost and its price, margin or markup, and see the other two, the gross profit on every unit and what a discount takes away.
- Free
- Runs in your browser
- Nothing is sent or stored
- Gross profit per sale
- $36
- Gross profit a month
- $1,080
$36 profit on each sale: 60% of the $60 price, or 150% on top of the $24 cost.
What a discount does to your margin.
A discount comes straight out of the profit, not the price. Pick a sale and see what each unit keeps, and how many you'd need to sell to stand still.
- Sale price
- $48
- Gross profit per sale
- $24
- Margin left
- 50%
- Sales to stand still
- 45
- instead of 30 a month
At 20% off, you keep $24 a sale instead of $36. To make the same $1,080, you'd sell 45 a month instead of 30.
At 60% off, the sale price only covers the cost.
How to calculate gross profit, margin and markup.
Both start from the gross profit on a sale, the price less the cost. Margin divides it by the price; markup divides it by the cost.
Gross profit = price − cost
Margin = (price − cost) ÷ price × 100
Markup = (price − cost) ÷ cost × 100
Price = cost ÷ (1 − margin)
A worked example
For example, take a product that costs $24 and sells for $60, one step at a time.
- 1 $60 − $24 = $36 The price less what the product costs you: the profit on each sale.
- 2 $36 ÷ $60 = 60% Profit over the price: a 60% margin.
- 3 $36 ÷ $24 = 150% The same profit over the cost: a 150% markup.
- 4 $24 × 2.5 = $60 Going the other way, a 150% markup on a $24 cost sets a $60 price.
Margin vs markup
The same profit gives a smaller number as a margin than as a markup, because the price is always bigger than the cost. A margin can never reach 100%; a markup has no ceiling. The row nearest your own markup is picked out.
| Markup | Margin |
|---|---|
| 25% | 20% |
| 50% | 33.3% |
| 75% | 42.9% |
| 100% | 50% |
| 150% | 60% |
| 200% | 66.7% |
| 300% | 75% |
The costs this leaves out
This is the margin on the product alone. An online order also pays for shipping, packing and payment fees, and often an ad. The contribution margin calculator takes those off each order, and the ROAS calculator uses what's left to tell you whether your ads pay.
Markup vs margin: what's the difference?
Both start from the same profit: price minus cost. Margin divides it by the price, markup by the cost. A $24 product sold for $60 makes $36, which is a 60% margin and a 150% markup.
How do I calculate gross profit?
Take what the product costs you away from its price. A $60 product that costs $24 makes $36 of gross profit on each sale. Divide that by the price for the margin (60%), or by the cost for the markup (150%).
How do I calculate profit margin?
Take the cost away from the price, divide by the price and multiply by 100. A $60 price on a $24 cost leaves $36, and $36 ÷ $60 is a 60% margin.
What is the gross margin formula?
Gross margin = (revenue − cost of goods sold) ÷ revenue × 100. For one product it's the same sum as the profit margin above. For a whole store, add shipping, packing and payment fees to the cost of each order.
How do I calculate markup?
Take the cost away from the price and divide by the cost. $36 of profit on a $24 cost is a 150% markup. To set a price from a markup, multiply the cost by 1 plus the markup: $24 × 2.5 = $60.
Is a 50% markup the same as a 50% margin?
No. A 50% markup is a 33.3% margin: a $20 cost sold for $30. A 50% margin needs a 100% markup: the same $20 cost sold for $40.
How do I convert markup to margin?
Margin = markup ÷ (100 + markup) × 100. Markup = margin ÷ (100 − margin) × 100. The table on this page lists the common ones.
What's the difference between gross and net profit margin?
Gross margin takes off what each sale costs you: the product, and for an online store shipping, packing and payment fees. Net margin also takes off everything else (ads, wages, rent, apps and tax), so it's what the business keeps.
What margin do my ads need?
An ad pays for itself when its ROAS is 1 divided by your margin after each order's costs. At 40% that's 2.5×. Shipping and payment fees lower the margin this calculator shows, so work out the full figure with the contribution margin calculator, then check your ads with the ROAS calculator.
Do you see the numbers I enter?
No. The calculation runs in your browser and the figures never leave it. We only record that the calculator was used, not what was typed.
Make every sale count for more.
Coaching gives you a practical plan for your prices, offers and ads, and a partner who keeps meeting with you as the numbers move.