Markup Calculator Formula
Understand the math behind the markup calculator. Each variable explained with a worked example.
Formulas Used
Markup Percentage
markup_pct = cost > 0 ? ((selling_price - cost) / cost) * 100 : 0Profit Margin
margin_pct = selling_price > 0 ? ((selling_price - cost) / selling_price) * 100 : 0Profit
profit = selling_price - costVariables
| Variable | Description | Default |
|---|---|---|
cost | Cost Price(USD) | 50 |
selling_price | Selling Price(USD) | 75 |
How It Works
How to Calculate Markup
Markup is the percentage added to the cost price to determine the selling price.
Formula
Markup % = [(Selling Price - Cost) / Cost] x 100
Markup vs. Margin
Worked Example
You buy a product for $50 and sell it for $75.
cost = 50selling_price = 75
- 01Profit = $75 - $50 = $25
- 02Markup = ($25 / $50) x 100 = 50%
- 03Margin = ($25 / $75) x 100 = 33.33%
Ready to run the numbers?
Open Markup Calculator