Margin and markup are often mixed up. This calculator shows both and tells you what to charge to hit the profit margin you want.
Work out your margin and markup, or the price you need for a target margin. Free, private and instant: nothing you type leaves your browser.

How the Profit Margin and Markup Calculator works
Profit = price minus cost. Margin = profit / price. Markup = profit / cost. Price for a target margin = cost / (1 minus margin).
Worked example
Here is what the calculator shows with its starting numbers. Change any value above to see your own result.
| Input | Value |
|---|---|
| Your cost per unit | $40 |
| Your selling price | $65 |
| Target profit margin (optional) | 40 % |
Profit margin: 38.5%
| Result | Value |
|---|---|
| Profit per unit | $25.00 |
| Markup on cost | 62.5% |
| Price needed for a 40% margin | $66.67 |
Margin is profit as a share of the selling price. Markup is profit as a share of cost, so markup is always the bigger number.
Worked example: markup mistaken for margin
Say you buy a product for $40 and sell it for $65. It is tempting to call that a 62.5% margin, but 62.5% is the markup. The calculator shows the true profit margin is 38.5%, and a price of $66.67 is needed to reach a 40% margin. These are the numbers the calculator above shows with its starting values.
If 40% is your goal, a price of $67 gets you there. Tracking margin rather than markup in your monthly numbers keeps the mix-up from coming back.
What each input means
- Your cost per unit: What one unit costs you to buy or make, including shipping to you.
- Your selling price: The price the customer pays.
- Target profit margin (optional): Leave it blank, or enter the margin you want to see the price that reaches it.
How to use the Profit Margin and Markup Calculator step by step
- Enter your cost per unit.
- Enter your selling price.
- Enter target profit margin (optional).
- Read the headline result first, then the detail lines under it to see what drives the number.
- Change one input at a time to see which assumption matters most, and write down the result you plan to act on.
Things to know before you decide
- Margin is profit divided by price. Markup is profit divided by cost.
- Do not forget costs like payment fees, shipping and returns.
- Check your margins by product, not just overall.
When to use this calculator
Use it when pricing products or comparing suppliers.
Gross, operating and net margin
Gross margin shows what is left after the direct cost of the product or service. Operating margin subtracts overhead such as rent, salaries and software. Net margin subtracts everything, including interest and taxes. A business can have a healthy gross margin and still lose money if overhead is too high, so look at all three.
Margin is not the same as markup
A 50% markup on a $10 cost gives a $15 price, which is a 33% margin. Confusing the two is one of the most common pricing mistakes: owners who aim for a 50% margin but add a 50% markup end up short. See profit margin vs markup and the markup calculator.
Using margin to make decisions
- Compare margins by product or service line. Cut or reprice the ones that drag down the average.
- Check margin after discounts, card processing fees and shipping, not just list price.
- Track margin monthly. Rising supplier costs can erode it quietly.
- Use your margin to set marketing limits: the most you can spend to win a sale is your gross profit per sale.
What is a good margin?
It depends heavily on the industry. Grocery stores often run thin net margins, while software and consulting can run far higher. Compare yourself with businesses like yours, and with your own trend over time.
A quick example
A shop sells a candle for $28. The wax, wick, jar and label cost $9, so gross profit is $19 and gross margin is about 68%. After a $2 share of rent and wages per candle, $1.10 in card fees and $3 for shipping supplies absorbed, the operating profit per candle is about $12.90, or 46%. Seeing both numbers shows where the money goes.
Frequently asked questions
Why is markup higher than margin?
What is a good margin?
Should I include shipping in cost?
What is the difference between gross margin and net margin?
How do I raise my profit margin?
Is a 20% profit margin good?
How often should I check my profit margin?
Related calculators
- Markup Calculator
- Break-Even Calculator
- ROAS and Break-Even Ad Spend Calculator
- Inventory Turnover Calculator
Related guides
- Profit Margin vs Markup: The Pricing Mix-Up That Quietly Eats Your Profit
- How to Read a Profit and Loss Statement: A Plain-English Guide for Owners
