Skip to content
CalcPilot Find a calculator
Ecommerce calculator

Margin vs Markup Calculator

Convert between profit margin and markup and see the profit on a sale from its cost and selling price.

Reviewed 2026-06-18 · Formula and example verified by the CalcPilot Editorial Team

Calculator

Enter your numbers

Profit margin

33.33%
Markup on cost
50%
Profit per unit
$20.00

Your inputs stay in your browser and are never sent to a server.

Quick answer

How do you calculate Margin vs Markup?

Use Margin = (Price − Cost) ÷ Price × 100; Markup = (Price − Cost) ÷ Cost × 100. Enter the matching values above to calculate the result instantly.

What it measures

Understanding Margin vs Markup

Convert between profit margin and markup and see the profit on a sale from its cost and selling price. Margin and markup describe the same profit from two different bases, which is why they are so easily confused. Margin divides profit by the selling price, while markup divides the same profit by the cost, so a 50% markup is only a 33.3% margin. Pricing from the wrong one quietly erodes profit on every sale.

Interpretation

What the result means

The headline figure is the profit margin on the selling price; the breakdown shows the equivalent markup on cost and the cash profit per unit.

Action

How to use it

Decide which base your team and software use, label it clearly, and convert competitor or supplier figures to the same base before comparing prices.

Limits

What it leaves out

Both figures use the single cost you enter, so include every unit-level cost; they exclude overhead, returns, and discounts that affect realized profit.

The math

Margin vs Markup formula

Margin = (Price − Cost) ÷ Price × 100; Markup = (Price − Cost) ÷ Cost × 100

Worked example

Example calculation

An item costs $40 and sells for $60.
Calculation
($60 − $40) ÷ $60 for margin; ($60 − $40) ÷ $40 for markup
Result
33.33% margin and 50% markup

Step by step

How to use this calculator

  1. 1Enter item cost, selling price.
  2. 2Keep every input on the same time period and measurement basis.
  3. 3Review the result, then change one assumption at a time to test scenarios.

Decision support

When this calculator is useful

  • Setting prices
  • Converting margin and markup
  • Checking supplier quotes

Common questions

Frequently asked questions

Which inputs should I use for Margin vs Markup?

Use item cost, selling price, measured from the same source and period. Include only values that match the definitions shown beside each field.

Why might two Margin vs Markup calculations differ?

The systems or accounting policies may define item cost, selling price differently. Compare the time period, scope, source, and treatment of exceptional items before comparing results.

How often should I recalculate Margin vs Markup?

Recalculate when any input changes materially and on the same reporting cadence used for the decision. Save the source and date of each input so the trend remains comparable.

Can I use Margin vs Markup by itself?

No single metric captures the full decision. Use the result with the related measures, assumptions, and limitations shown on this page.

Calculation reviewed: 2026-06-18. CalcPilot uses the formula shown above and tests representative values during the production build. See our methodology and correction policy.

Browse by topic

Calculator categories

Connected decisions

See how this metric fits the system

Free to embed

Add this calculator to your site

Paste this snippet to embed the live Margin vs Markup Calculator calculator. A link back to CalcPilot keeps it free to use.

Keep exploring

Ecommerce

Markup Calculator

Calculate how much a selling price exceeds cost, expressed as a percentage of that cost.

Calculate now
Business

Profit Margin Calculator

Find the percentage of revenue left after costs and understand how efficiently a sale creates profit.

Calculate now
Business

Gross Profit Calculator

Calculate gross profit by subtracting cost of goods sold from revenue.

Calculate now
Ecommerce

Discount Calculator

Calculate the sale price after applying a percentage discount.

Calculate now
Everyday

Unit Price Calculator

Calculate cost per item, weight unit, volume unit, or other quantity.

Calculate now