Price File Desk

How do I calculate gross profit margin?

Gross profit margin = (net sales − cost of goods sold) ÷ net sales. An open accounting textbook's example: $293,500 of net sales and $180,000 of cost of goods sold leave $113,500 of gross profit, a 39% gross profit margin. For one item, use (price − cost) ÷ price: a $12.50 case that costs $9.40 is a 24.8% margin.

Updated November 25, 2026 · 4 sources listed at the end

Key facts
Formula(Net sales − COGS) ÷ net sales
Textbook example$113,500 ÷ $293,500 = 39%
One item(Price − cost) ÷ price
Merchant wholesalers, 202220.3% of sales (Census)

What are the steps?

Gross profit margin, worked from OpenStax's example
StepFormulaTextbook example
1. Net salesFrom the income statement$293,500
2. Cost of goods soldCost of the merchandise sold$180,000
3. Gross profitNet sales − cost of goods sold$113,500
4. Gross profit marginGross profit ÷ net sales0.39, or 39%

The example and the ratio are from OpenStax's Principles of Accounting, which says the result shows the margin left to cover operating expenses and profit (OpenStax). In Excel, with sales in B2 and cost in C2, enter =(B2-C2)/B2 and format it as a percentage.

How does an item margin differ from the company figure?

An item margin uses one selling price and the cost in your ERP: $12.50 − $9.40 = $3.10, and $3.10 ÷ $12.50 = 24.8%. The company figure uses totals for a period, so it moves with the mix of items sold. For a distributor, cost of goods sold is mostly what suppliers charged, so a supplier increase that has not been loaded makes both figures look better than they are until it is.

What gross margin do wholesalers report?

  • All US merchant wholesalers: 20.3% of sales in 2022 (Census, Table 4)
  • Paper and paper products merchant wholesalers: 23.9%
  • Durable goods wholesalers: 27.2%; nondurable goods: 14.1%

These are 2022 figures from the Census Bureau's Annual Wholesale Trade Survey, adjusted to the 2022 Economic Census. Lumen's open accounting text calls the same ratio the gross profit percentage (Lumen Learning).

More questions on margin and markup: Gross margin vs gross profit: what is the difference? · What is a good profit margin for a distributor? · How do you calculate selling price from cost and margin? · What does a 75% gross margin mean? · Is a 50% margin the same as a 100% markup?

Common questions

Is gross profit margin the same as markup?

No. Gross margin divides gross profit by sales; markup divides it by cost. A 24.8% margin is a 33% markup.

How do I calculate gross margin in Excel?

With sales in B2 and cost of goods sold in C2, enter =(B2-C2)/B2 and format the cell as a percentage.

What gross margin do distributors make?

US merchant wholesalers averaged 20.3% of sales in 2022, and paper and paper products wholesalers 23.9%, per the Census Bureau.

First supplier file free. Pilot $500 for up to 5 files. Then $950 a month for up to 15 files, $60 per extra file. Every file back within 24 hours, or it is free.

Send your first file