Gross margin calculator

Margins and returnsRuns in your browser, nothing is sent

Gross margin is the share of revenue left after the direct cost of delivering what you sold. Enter revenue and cost of goods sold for the margin and markup, or a cost and target margin for the price to charge.

Find
Gross margin
70%
Gross profit
$70,000
Markup
233.3%
  • Gross profit$70,000
  • Cost of goods sold$30,000

How it works

Cost of goods sold is what it takes to deliver one more sale: materials and shipping for a product, hosting and support for software. Rent and salaries for people who do not deliver the product sit below the line.

Gross profit = revenue − cost of goods sold

Gross margin = gross profit ÷ revenue

Markup = gross profit ÷ cost of goods sold

Price for a target margin = cost ÷ (1 − margin)

Margin and markup are easy to confuse. Margin divides profit by the price and markup divides it by the cost, so a 50% margin is a 100% markup. To hit a target margin, divide the cost by one minus the margin: multiplying the cost by one plus the margin is a common error, and it leaves you short.

Worked example

A company has $100,000 in revenue and $30,000 in cost of goods sold. Separately, a product costs $30 and needs a 70% margin.

Gross margin = $70,000 ÷ $100,000 = 70%

Markup = $70,000 ÷ $30,000 = 233.3%

Price for a 70% margin = $30 ÷ 30% = $100

Open this example in the calculator

Where this goes wrong

Questions founders ask

What is a good gross margin?

It depends on the business. Software companies usually run above 70%, while retail and restaurants often run far lower. Compare yourself with your own industry.

What is the difference between gross margin and net margin?

Gross margin only subtracts direct costs. Net margin subtracts everything, including salaries, rent, interest and tax.

What is the difference between margin and markup?

Margin is profit as a share of the price. Markup is profit as a share of the cost. A $30 item sold for $100 has a 70% margin and a 233% markup.

Related calculators

Related terms

Sources

  1. Investopedia, "Gross profit."