BriefBusiness.us
Accounting and financial statements

Gross margin

What is left from sales after paying for the goods sold

In briefGross margin is the part of a company's sales left after subtracting the direct cost of the goods it sold. It is shown either as a dollar amount or as a percentage of sales. It measures how much remains to pay for operating costs, interest, taxes and profit.

How is gross margin calculated?

Gross margin = net sales - cost of goods sold

Gross margin percentage = (net sales - cost of goods sold) / net sales

Cost of goods sold, or COGS, is what the goods the company sold cost it to buy or make. For a manufacturer, that includes factory costs. It does not include costs such as marketing, office rent or executive pay, which fall under operating expenses.

Gross margin calculator

Change the numbers to see the result. Everything is calculated on this page; nothing is sent or saved.

Gross profit
-
Gross margin
-

Illustration only, not financial, tax or investment advice.

A worked example

A furniture shop sells chairs.

LineAmount
Net sales$200,000
Cost of goods sold$120,000
Gross margin$80,000
Gross margin percentage40%

The check is $80,000 / $200,000 = 0.40. For every dollar of sales, 40 cents is left after paying for the chairs.

A real example: Costco

In its fiscal year that ended August 30, 2026, Costco reported net sales of $297.247 billion and merchandise costs of $264.279 billion.

  • Net sales minus merchandise costs = $32.968 billion
  • $32.968 billion / $297.247 billion = about 11.1%

For fiscal 2025, the same calculation on $269.912 billion of sales and $239.886 billion of merchandise costs gives $30.026 billion, also about 11.1%.

Costco also reported $5.907 billion in membership fees in 2026. Counting them as revenue would give a higher figure, about 12.8% of total revenue of $303.154 billion. Costco's own measure leaves the fees out: its annual report lists gross margin as $32.968 billion, or 11.09% of net sales, for 2026 and 11.12% for 2025. The 12.8% figure is a reader's calculation. Companies differ on what they include.

Why does gross margin vary?

Gross margin depends heavily on the kind of business. A retailer that sells a large volume at low prices, as Costco does, tends to have a small percentage. A business with low production costs per unit tends to have a larger one. For this reason the percentage is most useful when compared over time or with similar companies.

Common confusion

  • Is gross margin the same as net profit? No. Operating expenses, interest and taxes still have to be paid out of it.
  • Is gross margin the same as markup? No. Markup is measured against cost, and margin is measured against sales. A 40% margin equals a 66.7% markup.
  • Are gross profit and gross margin the same? "Gross profit" usually means the dollar amount and "gross margin" the percentage, but many companies use them interchangeably.
  • Is cost of goods sold the same at every company? No. Service firms may have none at all.

Related entries