Profit Margin Calculator
Turn your cost and selling price into a profit margin percentage and a markup percentage. Understand both: margin is profit as a share of the selling price, markup is profit as a share of the cost.
What each field means
Every input below changes the result in a specific way. This is what each one expects, what it starts at, and the range it accepts.
- Cost
A monetary amount. Enter a number without a currency symbol.
Starts at: $80
Accepted range: $0 to $1,000,000,000,000
- Selling price / revenue
A monetary amount. Enter a number without a currency symbol.
Starts at: $100
Accepted range: $0 to $1,000,000,000,000
How to read your result
The calculator reports the figures below. The headline figure answers the question in the title; the rows underneath break it down so you can see what drives it.
- Profit margin
- This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
- Markup
- This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
- Gross profit
- This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
- Cost as % of price
- This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
- Markup
- This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
- Gross profit
- This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
- Cost
- This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
What this means
Margin and markup both measure profit but against different bases. If you buy for $80 and sell for $100: margin is 20% (profit over price), markup is 25% (profit over cost).
How we calculate it
Formula
Margin % = (Revenue − Cost) ÷ Revenue × 100. Markup % = (Revenue − Cost) ÷ Cost × 100.Worked example
Cost $80, sell for $100:
- 1Profit = 100 − 80 = 20
- 2Margin = 20 ÷ 100 × 100 = 20%
- 3Markup = 20 ÷ 80 × 100 = 25%
Important assumptions
- Margin cannot exceed 100% unless you add other revenue streams.
Frequently asked questions
Margin vs markup — which to use?
Use markup when setting prices from cost, and margin when analyzing financial statements. A 50% markup equals a 33% margin.
What is a good profit margin?
Averages vary widely — retail often runs 5–20%, software 60–90%. Compare with your industry.
Guide
ROI Calculator Guide: Measure Any Investment the Right Way
ROI turns a messy investment story into one comparable percentage. Here is the formula and the traps to avoid.
Related tools
ROI Calculator
Calculate return on investment as a percentage and in money.
Breakeven Calculator
Find how many units you must sell to cover your costs.
CPM Calculator
Calculate CPM, CPC and cost per impression for ads.
Weighted Average Calculator
Compute an average where some values matter more than others.
BMR Calculator
Calculate your Basal Metabolic Rate with the Mifflin-St Jeor equation.
Ideal Weight Calculator
Find your ideal weight range using four medical formulas.