Skip to content
Calc.

Gross Profit Margin Calculator

Find gross profit margin from revenue and cost of goods sold: (revenue − COGS) ÷ revenue × 100, with gross profit and markup shown alongside.

Last updated: October 2026

Gross Profit Margin

40 %

This calculator gives an estimate for general information only. It is not financial, tax or investment advice. Check the figures with a qualified professional before making decisions, and follow the rules that apply where you live.

Formula below · 2 sources (IRS, openstax.org) · Updated Oct 2026

Compare with similar

About this calculator

Gross profit margin is the share of revenue left after the direct cost of the goods or services sold:

gross margin = (revenue − cost of goods sold) ÷ revenue × 100

With the defaults, $100,000 of revenue and $60,000 of COGS leave $40,000 of gross profit, a 40% gross margin. That $40,000 has to pay for rent, salaries, marketing and every other operating cost before anything is left as profit.

What goes into COGS

COGS covers what it cost to make or buy the goods you sold in the period: materials or wholesale cost, direct production labour, inbound freight and production overhead. Selling, general and administrative costs (marketing, office rent, management salaries) are operating expenses and stay out. Use net revenue (after returns and discounts) on the top line.

Margin vs markup

Margin divides gross profit by the selling price; markup divides it by cost. The same $40,000 is a 40% margin but a 66.7% markup on $60,000 of cost. Pricing a product at cost + 40% gives a margin of only 28.6%, a common source of under-pricing.

A negative result means COGS is larger than revenue: each sale loses money before any overhead. Margins differ widely by industry, so compare against businesses like yours and against your own trend.

How to use

Enter revenue and cost of goods sold for the same period. Example 1: revenue $100,000, COGS $60,000. Gross profit $40,000; margin 40,000 ÷ 100,000 = 40%; markup 40,000 ÷ 60,000 = 66.7%. Example 2: a shop sells $250,000 of goods that cost it $175,000. Gross profit $75,000, margin 30%. Example 3: a software product with $1,200,000 of revenue and $240,000 of hosting and support costs has an 80% gross margin.

Frequently asked questions

How do you calculate gross profit margin?

Subtract cost of goods sold from revenue to get gross profit, divide by revenue and multiply by 100. Revenue $100,000 and COGS $60,000 give $40,000 ÷ $100,000 = 40%.

What is the difference between gross margin and net margin?

Gross margin subtracts only COGS. Net margin subtracts everything: operating expenses, interest and taxes. A business can have a healthy gross margin and still lose money if its overhead is too high.

What is the difference between margin and markup?

Margin is gross profit as a share of the selling price; markup is gross profit as a share of cost. A product bought for $60 and sold for $100 has a 40% margin and a 66.7% markup.

What is a good gross profit margin?

It depends on the industry. Grocery and distribution businesses run on thin gross margins, while software and many services run far higher because their direct costs are small. Compare with similar businesses and watch your own margin over time; a falling margin often signals rising costs or price pressure.

Related calculators

Sources & references

How we check our calculators

Think a result is wrong? Report a problem with this calculator.