Skip to content
FiftyCalc Free calculators for all 50 states

Margin Calculator

Test cases replayed : 2 of 2 match · Methodology · No outside source listed

Enter what an item costs you and what you sell it for to get its gross margin, its markup and the profit it makes.

Result

Sample figures

Gross margin—

Gross profit per unit —

  • Markup—
  • Total gross profit—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Margin Calculator

Cost per unit, in dollars: enter 0.01 or more. Prefilled example: 60.

Selling price per unit, in dollars: enter 0.01 or more. Prefilled example: 100.

Units sold: enter 0 or more. Prefilled example: 1.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Cost per unit, in dollars: enter 0.01 or more.
  2. Selling price per unit, in dollars: enter 0.01 or more.
  3. Units sold: enter 0 or more.
  4. Read the result: Gross margin; the panel also shows Gross profit per unit, Markup and Total gross profit.

How this calculator works

Gross margin = (selling price − cost) ÷ selling price × 100. It is the share of each sales dollar left after paying for the goods sold (cost of goods sold, COGS).

Markup = (selling price − cost) ÷ cost × 100. Markup is measured on cost, margin on price, so the markup is always the larger of the two percentages for a profitable sale.

The formula

  1. Pr=p−c
  2. M=Prp×100
Symbols used in the formula
SymbolMeaningUnit
cCost per unit$
pSelling price per unit$
PrGross profit per unit$
MGross margin%

Worked example

Cost per unit$60
Selling price per unit$100
Units sold1
Gross profit per unit$40.00
Markup66.67%
Total gross profit$40.00
  1. Pr=100−60=40
  2. M=40100×100=40

Gross margin 40%

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

What is the difference between margin and markup?

Both use the same profit. Margin divides it by the selling price, markup by the cost: an item that costs $60 and sells for $100 has a 40% margin and a 66.67% markup.

Can a margin be over 100%?

No. Margin is profit as a share of the price, so it stays below 100% as long as the cost is above zero. Markup has no upper limit.

Is gross margin the same as net margin?

No. Gross margin only subtracts the cost of the goods. Net margin also subtracts operating costs, interest and taxes.

Related calculators