Gross margin calculator. Gross profit and gross profit margin.

Gross margin is the share of revenue left after the direct cost of delivering what you sold. Enter revenue and cost of goods sold to calculate gross profit and gross margin, or switch the calculator to find the revenue or cost a target margin needs.

By Brady Heinrich · Updated

Solve for

Only the costs of delivering what you sold (COGS).

Gross margin75%

$0.75 of every $1 of revenue is left to pay for everything else.

Gross profit
$375,000
COGS as a share of revenue
25%
The formula

Gross margin = (revenue - cost of goods sold) / revenue x 100

A worked example

A software company has $500,000 of revenue and $125,000 of cost of goods sold. Gross profit is $375,000, and $375,000 / $500,000 = a gross margin of 75%.

How to calculate gross margin

Subtract cost of goods sold from revenue to get gross profit, divide gross profit by revenue, and multiply by 100. Gross profit is the dollar amount. Gross margin, also called gross profit margin, is that amount as a percentage of revenue.

  1. Gross profit = revenue - cost of goods sold.
  2. Gross margin = gross profit / revenue.
  3. Multiply by 100.

The calculator also solves the formula for the other two numbers:

  • Revenue needed = cost of goods sold / (1 - gross margin / 100). Costs of $125,000 at a 75% target need $125,000 / 0.25 = $500,000 of revenue.
  • Highest COGS = revenue x (1 - gross margin / 100). To hold 75% on $500,000 of revenue, cost of goods sold must stay at or under $125,000.

Use revenue and costs from the same period.

What counts as cost of goods sold?

Cost of goods sold, or COGS, is every cost that exists because a sale was delivered, and nothing else. Sales, marketing, product development and office costs are operating expenses and sit below gross profit.

BusinessUsually in COGSNot in COGS
Software as a serviceHosting, third-party software inside the product, customer support, onboarding, payment feesSales, marketing, building new features
Online storeProduct cost, packaging, shipping to the customer, payment feesAdvertising, website costs, office staff
Agency or servicesPay for the people doing client work, contractors, tools bought for a clientNew business, management, rent

The line is a judgment in places, so decide it once and keep it the same every period. A margin that improves because support costs were moved out of COGS has not improved.

How to read the result

A gross margin of 75% means each $1 of revenue leaves 75 cents to pay for sales, marketing, product, overheads and profit. Everything else in the business is funded from that share, which is why it sets the limit on what you can afford to spend to win a customer.

It also feeds other metrics. Customer lifetime value should be worked out on gross profit, not revenue, and break-even return on ad spend is 1 divided by gross margin.

What is a good gross margin?

A good gross margin is one high enough to cover operating costs at the size you plan to reach, and it varies by business model. These are rules of thumb, not benchmarks:

  • Software sits highest. Serving one more customer costs little, so a common rule of thumb for subscription software is a gross margin of 70% to 80% or more. A figure well under that usually means heavy hosting, support or services costs.
  • Services sit lower. Each hour sold needs a paid hour of someone's time, so the margin depends on rates and how fully people are booked.
  • Physical goods depend on the category. Product cost and shipping are in every sale, so the margin follows pricing power and volume.
  • Direction matters as much as level. Gross margin should hold or rise as you grow, because fixed delivery costs are spread over more revenue. If it falls, each new customer is costing more to serve.

Common mistakes

  1. Putting too little in COGS. Leaving out support, onboarding or payment fees makes the margin look better than it is.
  2. Confusing gross margin with markup. Margin divides gross profit by revenue. Markup divides it by cost. See the markup calculator for the conversion.
  3. Using bookings instead of revenue. Match revenue recognised in the period with the costs of delivering it in the same period.
  4. Blending very different lines. Subscriptions and one-off services have different margins. Calculate each, then the total.

How people search for a gross margin calculator

  • gross margin calculator9,900 a month
  • gross profit margin calculator9,900 a month
  • how to calculate gross margin8,100 a month

US monthly searches, Google Ads keyword data.

Questions

What is the gross margin formula?

Gross margin = (revenue - cost of goods sold) / revenue x 100. Revenue of $500,000 with $125,000 of cost of goods sold gives $375,000 / $500,000 = 75%.

What is the difference between gross profit and gross margin?

Gross profit is an amount of money: revenue minus cost of goods sold. Gross margin is that amount as a percentage of revenue. $375,000 of gross profit on $500,000 of revenue is a 75% gross margin.

Is gross margin the same as gross profit margin?

Yes. Both names mean gross profit divided by revenue, stated as a percentage.

What is the difference between gross margin and net margin?

Gross margin subtracts only the cost of goods sold. Net margin subtracts every cost, including operating expenses, interest and tax. Net margin is always the lower number.

Can gross margin be negative?

Yes. If delivering what you sold costs more than the revenue it brings in, gross profit and gross margin are both below zero, and each extra sale adds to the loss.

Keep reading

Building something ambitious? Let's talk.

We reply within one business day.