Calculator · Operating metrics

Gross profit margin calculator with markup and net margin

Gross margin is the share of each sales dollar left after the direct cost of what you sold. Enter revenue and cost of goods sold to see it. Add operating expenses, interest and tax to follow the same sales down to net margin, and use the pricing box to find the selling price that produces the margin you want.

Find your margins

Income statement

Direct costs of the product sold.

Rent, wages, marketing and other overhead.

Pricing check
Gross margin37.50%Gross profit $90,000.00 on revenue of $240,000.00. Markup on cost: 60.00%.
From revenue to net income.
LineAmount% of revenue
Gross profit$90,000.0037.50%
Operating profit$30,000.0012.50%
Profit before tax$24,000.0010.00%
Net income$18,000.007.50%
Price for a 40% gross margin
$100.00
Matching markup on cost
66.67%

Estimate for learning, not financial advice. Nothing you type here is sent or saved.

Try one yourself

Cedar Ridge Dental had sales of $80,000 and cost of goods sold of $46,000 last year.

Counts as correct if it is within 0.1 percentage points. Use a calculator.

Margin and markup are different

Margin divides profit by the selling price. Markup divides profit by the cost. The same sale gives two different percentages, and mixing them up is a classic way to underprice a product. A 50% markup produces only a 33.3% margin, while a 50% margin needs a 100% markup.

Formulas

Gross profit = revenue - COGS. Gross margin = gross profit / revenue. Markup = gross profit / COGS. Operating margin = (gross profit - operating expenses) / revenue. Net margin = net income / revenue. Price for a target margin m = cost / (1 - m), and markup = m / (1 - m).

A worked example

A small furniture maker sells $240,000 of tables in a year. The wood, hardware and direct labor cost $150,000. Rent, marketing and other operating expenses are $60,000, interest is $6,000 and the tax rate is 25%.

From sales to net income.
LineAmount% of revenue
Revenue$240,000100.0%
Cost of goods sold-$150,00062.5%
Gross profit$90,00037.5%
Operating expenses-$60,00025.0%
Operating profit$30,00012.5%
Interest-$6,0002.5%
Tax (25%)-$6,0002.5%
Net income$18,0007.5%

Gross margin is 37.5% and markup is 60%, since $90,000 is 60% of $150,000. The pricing box shows the other direction: a unit that costs $60 needs a price of $60 / (1 - 0.40) = $100 to earn a 40% gross margin, which is a markup of 66.7%.

What each margin tells you

Gross margin shows whether the product itself pays. If it is thin, no amount of cutting overhead will fix the business. Operating margin shows whether the company covers its running costs, and net margin is what is left for owners after interest and tax. Compare each with companies in the same industry, since grocery stores and software firms live at very different levels.

A falling gross margin with steady sales usually points to rising input costs or discounting. A healthy gross margin with a weak net margin points to overhead or debt. The calculator charges no tax on a loss, which is a simplification, because real rules allow losses to offset other years.

Mistakes that cost points

  • Using markup as if it were margin when setting a price. A 40% markup is not a 40% margin.
  • Putting operating expenses inside COGS. Gross margin should reflect only direct costs of the goods sold.
  • Dividing profit by cost when the question asks for margin.
  • Comparing margins across industries with different cost structures.
  • Forgetting returns and discounts, which reduce revenue before the margin is calculated.

Estimate for learning, not financial advice. Inputs stay in your browser and are not sent or stored.

Questions

Quick answers.

What is a good gross margin?

It depends on the industry. Retailers and distributors often work with gross margins in the 20s and 30s, while software and some consumer brands run far higher. The useful comparison is with similar businesses.

How do I convert margin to markup?

Markup = margin / (1 - margin). A 25% margin is a 33.3% markup, and a 60% margin is a 150% markup. To go back, margin = markup / (1 + markup).

What counts as cost of goods sold?

Direct costs of producing what you sold, such as materials, direct labor and freight in. Selling, general and administrative costs go below the gross profit line.

Why is net margin so much lower than gross margin?

Operating expenses, interest and taxes all come out between the two. In the example, a 37.5% gross margin becomes 12.5% after operating costs and 7.5% after interest and tax.

Working through a problem like this one for a class? I tutor finance one-on-one on Zoom. Private sessions with Chi Odogwu are $250 an hour.

Book your first session
Book a session →