Profit margin calculator: what is my margin on a sale?
Enter what an item costs you and what you sell it for, and the margin calculator shows your gross profit margin, the profit in dollars and the same profit as a markup. Switch to Price for the price that reaches a target margin, or to Cost for the most you can pay.
Profit margin calculator
I pay $30 for an item and sell it for $50. What is my profit margin?
Your profit margin
40% margin
Selling for $50 what costs you $30 leaves $20 gross profit, a profit margin of 40%. Of every $1 of sales, 60¢ covers the cost and 40¢ is profit. As a markup on cost that is 66.67%.
- 40%Gross profit margin: profit ÷ price
- $20Gross profit per sale
- 66.67%The same profit as a markup on cost
- 40¢Profit in every $1 of sales
For estimates only, not accounting or tax advice. This is the gross margin on the goods sold: it leaves out overhead such as rent, wages and payment fees unless you add them to the cost. Prices are before sales tax.
How the margin calculator works it out
- Gross profit: $50 − $30 = $20.
- Margin: $20 ÷ $50 × 100 = 40%. The margin always divides by the selling price.
- Markup, for comparison: $20 ÷ $30 × 100 = 66.67%, because the markup divides by the cost.
Other target margins next to yours: the markup each one equals, the price to charge for your cost (or, when you work out the cost, the most you could pay at your price) and the profit per sale in dollars. The highlighted row is yours.
| Margin | Markup | Price | Profit |
|---|---|---|---|
| 10% | 11.11% | 33.33 | 3.33 |
| 20% | 25% | 37.50 | 7.50 |
| 30% | 42.86% | 42.86 | 12.86 |
| 40% | 66.67% | 50.00 | 20.00 |
| 50% | 100% | 60.00 | 30.00 |
| 60% | 150% | 75.00 | 45.00 |
How to use the margin calculator
- Work out: Margin for the margin of a sale you know, Price for the price that gives a target margin, or Cost for the most you can pay to keep a margin at a fixed price. The field being worked out disappears.
- Cost: what the item costs you, in dollars: the purchase price or the cost to make it, plus shipping in if you like.
- Selling price: what the customer pays you, before sales tax.
- Target margin (%): the share of the selling price you want to keep as gross profit. It must be below 100%.
When a margin calculator helps
Use the margin calculator to check whether a product earns enough before you list it, to compare the margins of two suppliers, to turn a margin target from your accountant or a franchise agreement into a price, or to know the top price you can pay a wholesaler when the shelf price is fixed by the market.
If you price by adding a percentage to the cost, the markup calculator starts from the markup instead. A sale price changes your margin; the discount calculator gives the new price to enter here. For any other percentage of a number, use the percentage calculator.
Margin calculator at a glance
What it does
Divides the gross profit (selling price minus cost) by the selling price, or works backwards from a target margin to a price or a maximum cost, and shows the matching markup next to it.
Who it's for
Online sellers, retailers, restaurant and cafe owners, wholesalers, freelancers who resell materials, and anyone reading a profit and loss statement.
Watch out for
A margin is a share of the price, not of the cost. Adding 30% to the cost gives only a 23.08% margin; to keep 30% of the price, divide the cost by 0.7.
How the margin calculator works
Gross profit margin tells you how much of each sale you keep after paying for what you sold. Take the selling price, subtract the cost of the item, and divide what is left by the selling price. A 40% margin means 40 cents of every sales dollar is gross profit and 60 cents paid for the goods.
With your numbers: ($50 − $30) ÷ $50 = $20 ÷ $50 = 40% margin.
The reverse questions use the same rule. For a price that reaches a target margin, divide the cost by the share of the price that is left for it: cost ÷ (1 − margin). For the most you can pay at a fixed price, multiply the price by that share: price × (1 − margin). Gross margin counts only the cost of the goods; rent, wages, fees and taxes come out of it later, which is why a business needs a gross margin well above zero to make a net profit. To start from a markup on cost instead, use the markup calculator.
Margin calculator: worked examples
I buy a lamp for $30 and sell it for $50. What is my profit margin?
($50 − $30) ÷ $50 = $20 ÷ $50 = 40%. Of every dollar the customer pays, 40 cents is gross profit. As a markup on the $30 cost it is 66.67%.
Common mistake: dividing the $20 by the cost and calling 66.67% the margin. That is the markup.
A product costs me $22. What price gives a 35% margin?
$22 ÷ (1 − 0.35) = $22 ÷ 0.65 = $33.85. The profit is $11.85, which is 35% of $33.85.
Common mistake: multiplying $22 by 1.35. That gives $29.70, a margin of only 25.93%.
Similar items sell for $49.99. What is the most I can pay to keep a 45% margin?
$49.99 × (1 − 0.45) = $49.99 × 0.55 = $27.49. Paying more than that pushes the margin below 45%.
Common mistake: subtracting 45% from the price and then adding fees on top. Put shipping and fees in the cost so the 45% still holds.
I pay $120 for an item and have to clear it at $100. What is the margin?
($100 − $120) ÷ $100 = −20%: a gross loss of $20, or 20 cents lost on every dollar of sales.
Common mistake: dividing the $20 loss by the $120 cost (−16.67%). That is the markup; the margin always divides by the selling price.
A margin calculator in Excel and Google Sheets
Put the cost in B1, the selling price in B2, a target margin in B3 (as 40%) and a second target margin in B4 (as 35%).
Read the table row by row: each row is one cell of your sheet, what to put in it and an example.
| Cell | What goes in it | Example |
|---|---|---|
| B1, B2 | Cost, selling price | 30, 50 |
| B3, B4 | Target margins | 40%, 35% |
Gross profit margin (format as %)
=(B2-B1)/B2 Gross profit in dollars
=B2-B1 Price for the margin in B4
=B1/(1-B4) Most you can pay at the price in B2 for the margin in B3
=B2*(1-B3) The same profit as a markup on cost (format as %)
=(B2-B1)/B1 With these numbers the formulas give 40%, $20, $46.15, $30 and 66.67%, the same as the calculator. For a whole price list, put costs in column A and prices in column B and fill =(B2-A2)/B2 down.
Margin calculator: frequently asked questions
How do you calculate profit margin?
Subtract the cost from the selling price and divide the result by the selling price, then multiply by 100. An item that costs $8.40 and sells for $12 has a margin of $3.60 ÷ $12 = 30%.
What is the difference between margin and markup?
Both use the same dollar profit. The margin divides it by the selling price, the markup by the cost. That is why a 30% margin equals a 42.86% markup, and a 50% margin equals a 100% markup.
What is a good profit margin?
It depends on the business. Grocery stores work on thin gross margins and high volume, while software, cosmetics and jewelry often have high ones. Compare your margin with businesses like yours, and make sure it covers your overhead with room to spare.
Is gross margin the same as net margin?
No. Gross margin subtracts only the cost of the goods sold. Net margin also subtracts overhead, interest and taxes, so it is always lower. This calculator gives the gross margin on one sale.
Can a margin be 100% or more?
No. A 100% margin would mean the item cost nothing, so the calculator accepts target margins below 100%. A markup, on the other hand, can be any size.
How do I find the selling price from a margin?
Divide the cost by 1 minus the margin as a decimal. For a 40% margin on a $27 cost: $27 ÷ 0.6 = $45.
Other money and finance calculators
- Amortization schedule calculator
- Car loan calculator
- Compound interest calculator
- Credit card payoff calculator
- Discount calculator
- Hourly to salary calculator
- Inflation calculator
- Loan payment calculator
- Markup calculator
- Mortgage payment calculator
- Pay raise calculator
- Salary to hourly calculator
- Sales tax calculator
- Savings goal calculator
- Simple interest calculator
- Tip calculator
- Unit price calculator
Report a problem with this calculator · Sponsor this calculator