Skip to content
FiftyCalc Free calculators for all 50 states

Gross Margin Calculator

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

Calculate the gross margin of a product or a business: gross profit as a percentage of the selling price.

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.

Gross 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 = (revenue − cost of goods sold) ÷ revenue × 100. For one product, revenue is the selling price and the cost is what the unit costs you; for a company, use revenue and cost of goods sold from the income statement.

Gross margin leaves out rent, wages that are not part of production, marketing and taxes, which come into operating and net margin.

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 gross margin on an item that costs $30 and sells for $50?

40%: $20 of gross profit on a $50 price.

What price gives a 40% margin on a $30 cost?

Price = cost ÷ (1 − margin) = $30 ÷ 0.6 = $50.

Related calculators