Free Online Tools

Finance calculators

Margin & Markup Calculator

Profit margin and markup on a product, from its cost and selling price, with the gross profit per unit.

Estimate only — not financial advice. Results are estimates based on the numbers you enter; actual amounts depend on your bank, lender or investment provider. This calculation runs entirely in your browser — nothing you enter is stored or sent anywhere.

How to use

  1. Enter the cost of one unit.
  2. Enter the selling price of one unit.
  3. Press “Calculate margin & markup” to see the margin, markup and gross profit.

Formula

Margin = (selling price − cost) ÷ selling price × 100. Markup = (selling price − cost) ÷ cost × 100. Margin is a share of the price; markup is a share of the cost.

Frequently asked questions

What is the difference between margin and markup?
Margin is profit as a share of the selling price; markup is profit as a share of the cost. A 50% markup on a $40 cost gives a $60 price and a 33.33% margin.
Can margin be over 100%?
No — margin is a share of the price, so it stays below 100%. Markup can be over 100% when the price is more than double the cost.
Does this include tax or shipping?
No. Include any per-unit tax, shipping or fees in the cost for a true margin.