Turn a cost and a price into your profit margin, markup, and gross profit, or work backward to the selling price you need to hit a target margin. Works in any currency. Free, no signup.
Currency sets the symbol and formatting; it does not convert at live exchange rates.
The margin you want to keep on the price. Must be under 100%. We return the price that hits it.
Margin result
The Profit Margin Calculator turns a cost and a price into the three numbers every seller needs: your profit margin, your markup, and your gross profit in cash. Flip to Sale price mode and it runs the other way, telling you exactly what to charge to hit a target margin, so you never guess at a price again.
How It Works
No account, no email, no limits. Just the margin, the markup, and the profit.
Choose Margin to go from cost and price to your margin, or Sale price to go from cost and a target margin to the price you should charge.
Type the cost and either the selling price or the margin you want. Add a units count if you want totals, and pick your currency.
Get the profit margin, the markup, and the gross profit, with a cost-versus-profit bar, a plain-English verdict, and a shareable link.
The Math
Three short formulas run the whole calculator. Here they are, with a worked example.
Margin is profit as a share of the price: margin = (price - cost) / price x 100. A 60 cost sold for 100 gives (100 - 60) / 100 = 40%.
Markup is the same profit as a share of the cost: markup = (price - cost) / cost x 100. The same 60 and 100 give (100 - 60) / 60 = 66.67%. Same profit, bigger number, because the base is smaller.
To hit a margin you divide, you do not multiply: price = cost / (1 - margin/100). For a 40% margin on a 60 cost, 60 / (1 - 0.40) = 60 / 0.60 = 100. Gross profit is just price - cost, in cash.
Cost 60, price 100, one unit: gross profit is 40, the profit margin is 40%, and the markup is 66.67%. Sell 250 units and the margin and markup do not change, but total gross profit becomes 40 x 250 = 10,000.
The Big Confusion
They describe the same profit but divide by different things, and mixing them up quietly costs you money.
A margin divides profit by the price; a markup divides the same profit by the cost. Because the cost is the smaller number, markup is always the larger percentage. The classic mistake is to want a 40% margin and then multiply cost by 1.40, which only produces a 40% markup, a 28.57% margin. You earned less than you planned on every sale.
Use this quick reference to convert at a glance. The formula is margin = markup / (100 + markup):
| If your markup is | your margin is |
|---|---|
| 5% | 4.76% |
| 10% | 9.09% |
| 15% | 13.04% |
| 20% | 16.67% |
| 25% | 20% |
| 30% | 23.08% |
| 40% | 28.57% |
| 50% | 33.33% |
| 75% | 42.86% |
| 100% | 50% |
| 150% | 60% |
| 200% | 66.67% |
Two anchors worth memorizing: a 50% markup is a 33.33% margin, and a 100% markup (doubling the price) is a 50% margin.
Which Margin
This tool gives you gross margin. Here is how the other two narrow it down.
Revenue minus the direct cost of the product (cost of goods sold), as a share of revenue. It is what this calculator returns and the widest of the three.
Gross profit minus the costs of running the business, like rent, salaries, software, and marketing. It shows whether the core operation makes money before financing and tax.
What is left after every cost, including interest and taxes, as a share of revenue. It is the true bottom line. Think of gross margin as the ceiling, with overhead, interest, and tax stepping it down to net.
Margin by the Numbers
Each figure below is an arithmetic identity, not a survey, so it is always exactly true.
Why It Matters
Price is the fastest lever in any business, and margin is how you pull it without guessing.
Pricing to a target margin protects profit on every unit. Pricing to a markup you confused with margin leaves money on the table all day.
Margin tells you how much of each sale you actually keep, so you can spot creeping costs or discounts before they erase your profit.
Two products with very different prices can be compared cleanly by margin, since it normalizes profit to a percentage of revenue.
Seeing margin and markup side by side stops the single most common pricing error, treating a markup percentage as if it were the margin.
Common Mistakes
Five mistakes that quietly shrink profit, and how to avoid each one.
Methodology
Plain, standard formulas; nothing hidden.
Margin mode computes profit = price - cost, then margin = profit / price and markup = profit / cost. Sale price mode computes price = cost / (1 - margin/100), then the same profit and markup. Percentages are rounded to two decimals; money is formatted in your chosen currency. The units field multiplies the per-unit revenue, cost, and profit to give totals; the percentages are ratios and stay the same at any volume. A price below cost produces a negative margin, which the tool flags as a loss. Everything runs in your browser; nothing is sent to a server.
References
Standard references for margin, markup, and pricing.
FAQ
Margin, markup, pricing, and the differences that trip people up, in plain English.
Glossary
The concepts behind the calculator and what each one means.
sem.chat adds an AI chat and voice agent to your site that answers buyer questions 24/7, price, shipping, returns, and product fit, recovers carts, captures leads, and hands off to a human the moment someone is ready to buy. Try it free.
Try sem.chat Free