Free markup and margin calculator
Enter a cost and either a markup percentage or a target margin percentage to find the selling price, profit amount, and both markup and margin figures at once.
Saved to favorites
Your favorites live on the home page, under Your favorites. They're saved only on this device & browser — open the site on your phone or in another browser and you won't see them there. No account, no server.
How to use
- Choose Markup % to enter a percentage added to cost, or Margin % to enter the target profit as a fraction of the selling price.
- Enter the cost of the item.
- Enter the markup or margin percentage.
- The calculator shows selling price, profit, and both markup% and margin% simultaneously.
The formulas
Markup mode (input is markup%):
Selling price = cost × (1 + markup% / 100)
Profit = selling price - cost
Margin% = profit / selling price × 100
Margin mode (input is margin%):
Selling price = cost / (1 - margin% / 100)
Profit = selling price - cost
Markup% = profit / cost × 100
Worked example
Cost $50, markup 50%:
- Selling price: $50 × 1.5 = $75.00
- Profit: $75 - $50 = $25.00
- Markup: 50%
- Margin: $25 / $75 = 33.33%
Now with cost $50, margin target 50%:
- Selling price: $50 / (1 - 0.5) = $100.00
- Profit: $100 - $50 = $50.00
- Markup: $50 / $50 = 100%
- Margin: 50%
Notice that a 50% margin requires a 100% markup — these two numbers describe the same profit dollar amount from opposite sides.
Notes
- Margin is capped at 99.99% — a 100% margin would require an infinite selling price.
- Both markup and margin are shown for every calculation regardless of which mode you use, so you always have the full picture.
- Percentages here are gross margin/markup. Net margin also subtracts overhead, taxes, and other costs from profit before dividing.
Frequently asked
What is the difference between markup and margin?
Why do both markup and margin matter?
How do I set prices to hit a target margin?
What are typical retail margins?
How do I share my pricing scenario?
Related calculators
- Discount calculator
Find the final price and savings for any percent-off or dollar-off discount.
- Sales tax calculator
Add local sales tax to any price and see the final total.
- Percentage calculator
Find any percentage, percent change, or what X is Y percent of.
- Income tax calculator
US federal income tax with FICA and bracket breakdown.