Finance & accounting

Gross Profit Margin: Formula, What Counts as COGS, Industry Benchmarks and a Worked Example

Gross profit margin explained for 2026: the formula, what counts as COGS on Schedule C, margin vs markup, Census retail benchmarks and a worked bakery example.

Photo of Sumeet YadavEdited by Sumeet YadavFounder & editor, MSMETOOLS · fact-checked against official sources
Updated October 2026 Verified against official sources 12 October 2026 18 min read
Gross profit margin — MSMETOOLS guide cover
Contents (10)
  1. 1. What gross profit margin means
  2. 2. The gross profit margin formula, step by step
  3. 3. What goes into cost of goods sold (and what doesn't)
  4. 4. Gross margin vs markup
  5. 5. Gross margin vs operating margin and net margin
  6. 6. Gross profit margin by industry
  7. 7. Worked example: a neighborhood bakery's gross margin
  8. 8. How to improve your gross profit margin
  9. 9. Common gross margin mistakes
  10. 10. What to do next

Gross profit margin is the first number a lender, buyer or business partner looks at, because it shows whether your prices cover the cost of what you sell before overheads get a say. This guide is for US owners of shops, restaurants, makers, contractors and service firms who want to calculate it correctly and know what a healthy figure looks like. You'll get the formula, how it lines up with Schedule C, what does and doesn't belong in cost of goods sold, how margin differs from markup, official Census benchmarks by type of store and a full worked example for a small bakery.

Quick answer

Gross profit margin = (net sales − cost of goods sold) ÷ net sales × 100. It tells you how many cents of every sales dollar are left after paying for the goods themselves. A shop with $300,000 of net sales and $200,000 of cost of goods sold has $100,000 of gross profit and a 33.3% gross margin.

  • Net sales = gross receipts minus returns and allowances (Schedule C lines 1–3)

  • COGS = beginning inventory + purchases + production labor + materials + other direct costs − ending inventory

  • Average US retail gross margin was 31.1% in 2022 (Census), from about 24% to over 50% by store type

  • Margin is profit ÷ price; markup is profit ÷ cost — a 50% markup is only a 33.3% margin

  • Gross margin pays for rent, payroll and marketing; what's left after those is net profit

What gross profit margin means

Gross profit is the money left from sales after you pay the direct cost of the goods you sold. Gross profit margin, often shortened to gross margin, expresses that money as a percentage of sales. A 40% gross margin means that for every $1 a customer pays you, 60 cents covered the product and 40 cents is available for everything else: rent, office wages, advertising, software, insurance, interest and, finally, your profit.

The percentage matters more than the dollar figure when you compare. A business that grows from $500,000 to $800,000 of sales will almost always earn more gross profit dollars, but if its gross margin slid from 42% to 35% along the way, it's working harder for each dollar and may be heading for trouble when costs rise. Watching the margin quarter by quarter shows you price pressure, supplier increases, waste and theft long before they show up as a loss.

Three terms get mixed up. Gross profit is a dollar amount: net sales minus cost of goods sold. Gross profit margin (or gross margin ratio) is gross profit divided by net sales. Some people also say "gross margin" when they mean the dollar amount, which is why it pays to ask whether someone means dollars or a percentage. In this guide, gross margin always means the percentage.

Gross margin sits at the top of a ladder of profit measures. Below it come operating margin, which also subtracts overheads, and net profit margin, which subtracts everything including interest and income tax. Each step down tells you something different, so you'll usually track all three.

The gross profit margin formula, step by step

The formula has three parts, and the IRS uses the same steps on Schedule C (Form 1040) for sole proprietors and single-member LLCs.

From the register to gross margin (Schedule C)

Step 1

Gross receipts

line 1

Step 2

− Returns and allowances

line 2

Step 3

= Net sales

line 3

Step 4

− Cost of goods sold

line 4

Step 5

= Gross profit

line 5

Step 6

÷ Net sales = gross margin

Step 1 — net sales. Start with gross receipts, the total you billed or rang up for the year (Schedule C line 1). Subtract returns and allowances (line 2), which Publication 334 describes as cash or credit refunds, rebates and other allowances off the sales price. The result is net receipts, or net sales (line 3). Don't include sales tax you collected on the buyer's behalf and passed to the state; it isn't your revenue.

Step 2 — cost of goods sold. Work out the direct cost of the products you sold during the year (line 4, carried from Part III, which we cover in the next section).

Step 3 — gross profit and margin. Subtract cost of goods sold from net sales to get gross profit (line 5). Divide gross profit by net sales and multiply by 100 for the margin.

Here's a quick example. A gift shop rings up $318,000 of sales, refunds $6,000 and has cost of goods sold of $187,200. Net sales are $312,000. Gross profit is $312,000 − $187,200 = $124,800. Gross profit margin is $124,800 ÷ $312,000 = 40.0%.

You can run the same arithmetic for a single product. A candle that costs you $9 to make and sells for $24 has a gross profit of $15 and a gross margin of $15 ÷ $24 = 62.5%. Product-level margins help you decide what to promote, what to reprice and what to drop; the business-wide margin tells you whether the mix as a whole works.

If you sell through more than one channel, work the margin out per channel as well. The same candle sold wholesale to a gift store at $13 earns $4 of gross profit, a 30.8% margin, so a shift in your sales mix toward wholesale lowers your overall gross margin even if nothing else changes. That isn't necessarily bad, because wholesale orders often carry lower selling costs, but you need to see it coming.

What goes into cost of goods sold (and what doesn't)

Gross margin is only as accurate as your cost of goods sold, and that's where most small businesses go wrong. For tax purposes, Schedule C Part III builds COGS in a fixed order. Publication 334 sets it out line by line:

Schedule C lineWhat it holdsNotes
35Inventory at beginning of yearShould match last year's ending inventory
36Purchases, less items withdrawn for personal useNet of trade discounts and purchase returns
37Cost of laborDirect and indirect production labor, mainly in manufacturing
38Materials and suppliesThose used in making the goods
39Other costsContainers that are part of the product, freight-in, production overhead
40Add lines 35–39Cost of goods available for sale
41Inventory at end of yearFrom your year-end count
42Cost of goods soldLine 40 minus line 41, carried to line 4

Some items look like product costs but aren't. Publication 334 notes that small merchandisers such as retailers and wholesalers usually don't have labor that properly belongs in COGS; only labor spent making the product, plus indirect factory labor, goes there. Your shop assistants' wages are an operating expense. Freight to bring goods in (freight-in) belongs in COGS, while shipping orders out to customers is a selling expense. Packaging that's an integral part of the product counts; shipping cartons generally don't.

Sole proprietors also can't put their own time into line 37, because an owner can't pay themselves wages. That makes a one-person maker's gross margin look better than an employer's for the same product. If you compare yourself with a business that pays bakers or machinists, subtract a fair cost for your production hours first.

Smaller businesses have a choice about inventories. If your average annual gross receipts over the previous three years are at or below the small business taxpayer limit ($32 million for tax years beginning in 2026, up from $31 million for 2025) and you're not a tax shelter, the IRS lets you skip formal inventory accounting and treat inventory as non-incidental materials and supplies, or follow the method in your financial statements. That simplifies the tax return, but for managing the business you still want a real inventory count, or your gross margin will swing with the timing of purchases rather than the profitability of sales.

Corporations and partnerships report the same calculation on Form 1125-A, which feeds the cost of goods sold line on Forms 1120, 1120-S and 1065. Our cost of goods sold guide covers inventory methods, uniform capitalization and the year-end count in more depth.

Glass bakery display case with trays of buns and pastries on several shelves
A bakery's gross margin is what's left of each sale after flour, butter, packaging and the bakers' time are paid for.· Image: stu_spivack (CC BY-SA 2.0)

Gross margin vs markup

Gross margin and markup describe the same dollar profit against different bases. Gross margin divides it by the selling price; markup divides it by cost. An item that costs $40 and sells for $60 has $20 of gross profit, a 50% markup ($20 ÷ $40) and a 33.3% gross margin ($20 ÷ $60). Neither is wrong, but mixing them up is the classic pricing error: price with a 40% markup when you needed a 40% margin and you'll keep only 28.6 cents of each sales dollar instead of 40.

The conversions are short: margin = markup ÷ (1 + markup) and markup = margin ÷ (1 − margin). To price straight from a target margin, use price = cost ÷ (1 − margin).

Target gross marginMarkup on cost neededPrice for a $10 cost
20%25.0%$12.50
25%33.3%$13.33
30%42.9%$14.29
33.3%50.0%$15.00
40%66.7%$16.67
50%100.0%$20.00
60%150.0%$25.00

The IRS uses this relationship as a sense check. Publication 334 suggests that retailers and wholesalers divide gross profit by net receipts and compare the result with their markup policy. Its example is a retailer that prices for a 33⅓% gross profit, has $300,000 of net receipts and $200,000 of cost of goods sold; the resulting $100,000 gross profit is 33⅓% of sales, which confirms the books. If your actual gross margin is well below the margin your price list implies, look for unrecorded sales, missed purchase returns, a bad inventory count, theft or heavy discounting. Our guide on how to calculate markup and the markup calculator handle the conversions for you.

Gross margin vs operating margin and net margin

Gross margin only looks at product costs, so a business can have a strong gross margin and still lose money. Picture a boutique with a 52% gross margin that pays high Main Street rent, two full-time sales staff and heavy social media advertising. If those overheads add up to 55% of sales, it loses 3 cents on every dollar.

Operating margin subtracts operating expenses (rent, non-production wages, marketing, software, insurance, depreciation) from gross profit and divides by net sales. Net profit margin goes further and subtracts interest, other income and expenses, and income tax. For sole proprietors, the IRS calls the bottom of Schedule C "net profit" (line 31), which is before the owner's own income tax and self-employment tax and before any pay for the owner's time.

Think of it as a waterfall. A coffee roaster with $1,000,000 of net sales might keep $380,000 of gross profit (38%), $90,000 of operating profit after overheads (9%) and $62,000 of net profit after interest and tax (6.2%). Improving gross margin by two points, to 40%, would add $20,000 to every line below it, which is why buying and pricing discipline has such leverage.

A related measure, contribution margin, subtracts every variable cost, including card fees, commissions and outbound shipping, but none of the fixed production costs that can sit inside COGS. It's the better tool for deciding whether a particular sale, channel or discount is worth it. Gross margin is the better tool for comparing yourself with industry data and for spotting problems in buying and pricing, because almost every set of financial statements reports it.

Gross profit margin by industry

There isn't a universal "good" gross margin, because it depends on what you sell and how much service wraps around it. A supermarket turns its stock fast and runs a thin margin; a furniture showroom holds slow-moving stock and needs a fat one to pay for floor space. The best official source for US retail is the Census Bureau's Annual Retail Trade Survey, which published gross margin as a percentage of sales by kind of business. Its final tables run to 2022, benchmarked to the 2022 Economic Census, because Census replaced the survey with the Annual Integrated Economic Survey from the 2023 reference year.

US retail gross margin by kind of business, 2022 (Census ARTS)

All retail trade

Gross margin, % of sales

31.1%

Automobile dealers (4411)

Gross margin, % of sales

21.8%

Warehouse clubs and supercenters (452311)

Gross margin, % of sales

24.3%

Grocery stores (4451)

Gross margin, % of sales

28.0%

Pharmacies and drug stores (44611)

Gross margin, % of sales

28.0%

Electronics and appliance stores (443)

Gross margin, % of sales

29.4%

Beer, wine and liquor stores (4453)

Gross margin, % of sales

31.1%

Building materials and garden (444)

Gross margin, % of sales

35.6%

Electronic shopping and mail order (4541)

Gross margin, % of sales

39.6%

Sporting goods, hobby and musical instruments (4511)

Gross margin, % of sales

44.6%

Auto parts, accessories and tire stores (4413)

Gross margin, % of sales

48.1%

Clothing stores (4481)

Gross margin, % of sales

50.6%

Furniture and home furnishings (442)

Gross margin, % of sales

51.0%

Miscellaneous store retailers (453)

Gross margin, % of sales

53.6%

Outside retail there's no equivalent official series, so many advisers use averages for US listed companies. NYU Stern professor Aswath Damodaran's January 2026 dataset gives average gross margins of about 12% for healthcare support services, 15% for engineering and construction and for food wholesalers, 21% for trucking, 23% for food processing and homebuilding, 24% for computer services, 32% for restaurants, 33% for business and consumer services, 37% for machinery, 57% for apparel brands and 72% for system and application software. Across all 5,994 companies in the set, the average was 37.8%.

Treat both sets of figures as estimates with clear limits. Large firms buy at volume discounts and classify costs their own way: restaurant chains, for example, put far more than food into cost of sales. The Census figures are averages for whole industries, including big chains. Use them to sanity-check your own margin, not to set it. If your hardware store runs a 22% gross margin against an industry average of about 36%, find out why before you assume competition is to blame.

Rack of brightly colored shirts on yellow and wooden hangers in a clothing shop
Clothing stores carry some of the highest gross margins in retail, but markdowns on unsold stock eat into them.· Image: FeatheredTar (CC BY 2.0)

Worked example: a neighborhood bakery's gross margin

Here's a full year for a bakery run as a single-member LLC that sells bread and pastries over the counter and supplies loaves to two cafés. It employs two bakers and two counter staff.

Net sales. Gross receipts were $428,000. Refunds and comped orders came to $6,000, so net sales were $422,000.

Cost of goods sold. Beginning inventory of flour, butter, chocolate and packaging was $9,000. Ingredient purchases for the year were $118,000. The two bakers' wages were $96,000; the counter staff's pay is an operating expense, not COGS. Materials and supplies used in production were $6,000. Other costs were $15,000: $12,000 of bags and boxes that go out with the product and $3,000 of freight-in on ingredient deliveries. That makes $244,000 of goods available. The year-end count found $10,000 of stock, so cost of goods sold was $234,000.

Gross profit and margin. $422,000 − $234,000 = $188,000 of gross profit, a gross margin of 44.5%.

Now break it down by product, because the average hides a lot:

ProductPriceIngredientsPackagingBaker laborGross profitGross margin
Sourdough loaf (retail)$9.00$1.60$0.25$1.90$5.2558.3%
Butter croissant (retail)$4.50$0.95$0.10$0.85$2.6057.8%
Sourdough loaf (café wholesale)$5.50$1.60$0.25$1.90$1.7531.8%

Counter sales earn close to 58%, but the café loaves earn under 32%. That's how a bakery with mostly high-margin products ends up at 44.5% overall, along with waste: unsold bread thrown out at closing is still in purchases but produces no sales. If the owner cut end-of-day waste from 8% to 5% of production, or raised the wholesale price to $6.25 (a 40% margin), the business-wide margin would rise without selling a single extra loaf.

The bakery's other costs, such as rent, counter wages, utilities, insurance, card fees and marketing, came to $151,000. That leaves $37,000 before the owner pays themselves, which shows how much the gross margin has to carry. The net profit margin guide follows this kind of business down to the bottom line.

Try it — the bakery's gross margin

Cost Price₹2,34,000.00
Selling Price₹4,22,000.00
Gross Margin44.55%
Markup80.34%
Profit per Unit₹1,88,000.00
Open the full Profit Margin Calculator (PDF, save, compare)

How to improve your gross profit margin

There are only two levers: earn more per sale, or spend less on what you sell. In practice, these six moves do most of the work.

Raise prices where you have room. Small, regular increases on items customers don't compare closely usually stick better than big jumps. Start with best-sellers whose costs rose most since you last priced them.

Change the mix. Promote and display higher-margin products, bundle low-margin items with high-margin ones, and be honest about lines that never pay. A product earning a 12% margin in a store that needs 35% to cover overheads loses money even if it sells well.

Buy better. Ask for volume tiers, early-payment discounts and freight allowances, and compare landed cost rather than supplier list price. Consolidating orders to fewer suppliers often earns a better price and cuts freight-in.

Cut waste and shrink. Spoilage, breakage, theft and miscounts all inflate COGS. Regular cycle counts and tighter receiving checks pay for themselves. Our inventory turnover guide shows how to spot slow stock before it needs marking down.

Discount with the numbers in front of you. A percentage discount comes straight off gross profit. At the bakery's 44.5% margin, a 10% off promotion drops the margin to 38.3% and cuts gross profit per item by 22%; the bakery would need about 29% more unit sales just to stand still. Run any promotion through the discount calculator first.

Price new products from a target margin. Use price = cost ÷ (1 − target margin) so each new item starts at or above the margin you need, rather than finding out later.

Quarterly gross margin check

0/6

Common gross margin mistakes

Mixing up margin and markup. If a retail buyer asks for a 50% margin and you quote a 50% markup, they'll earn a third less than they expect. Always label which one you mean.

Leaving costs out of COGS. Missing freight-in, packaging or production labor makes your margin look healthier than it is and leads you to underprice. Recheck landed costs whenever suppliers or carriers raise rates.

Putting overheads into COGS. The opposite mistake makes product margins look poor and can push you to overprice. Shop rent and counter staff belong in operating expenses unless you run a manufacturing operation that properly allocates factory overhead.

Ignoring inventory changes. Using purchases instead of true cost of goods sold distorts the margin: a big stock-up in December makes the year look bad, and a sell-down makes it look great. Count inventory at year end.

Including sales tax in sales. Sales tax collected for the state isn't revenue and shouldn't inflate net sales. Keep it in a separate liability account.

Comparing with the wrong benchmark. A specialty food shop isn't a supercenter, and a one-person maker isn't a listed manufacturer. Compare with the closest kind of business, and with your own past years.

What to do next

Pull last year's net sales and cost of goods sold, run them through the profit margin calculator and compare the result with the Census figure for your kind of business. Then work out margins for your ten best-selling products and your main channels; the gaps usually point straight at the price, supplier or waste problem to fix first. When you know your gross margin, the break-even calculator shows how much you need to sell to cover your overheads, and the net profit margin guide takes you the rest of the way down the income statement.

This is general information, not legal or tax advice — confirm on the official source or with a professional.

Frequently asked questions

Gross profit margin = (net sales − cost of goods sold) ÷ net sales × 100. Net sales are your gross receipts minus returns and allowances. If a shop has $300,000 of net sales and $200,000 of cost of goods sold, gross profit is $100,000 and the gross profit margin is 33.3%. The figure shows how many cents of each sales dollar are left to pay overheads and profit.

Sources & verification

Figures on this page were checked against the sources below when it was last reviewed on 12 October 2026. Each rate and limit is stored once with its own official source and review date, and official update channels are monitored daily so changes are picked up. How we verify

  1. 1.Publication 334 (2025), Tax Guide for Small Business — IRS · accessed 12 October 2026
  2. 2.Estimated Annual Gross Margin as a Percentage of Sales of U.S. Retail Firms by Kind of Business: 1993–2022 (benchmarked) — U.S. Census Bureau — Annual Retail Trade Survey · accessed 12 October 2026
  3. 3.Annual Retail Trade Survey (ARTS) — U.S. Census Bureau · accessed 12 October 2026
  4. 4.Questions and answers about the limitation on the deduction for business interest expense — IRS · accessed 12 October 2026
  5. 5.Margins by sector (US), January 2026 — NYU Stern — Aswath Damodaran · accessed 12 October 2026
  6. 6.Calculate your startup costs — break-even analysis — U.S. Small Business Administration · accessed 12 October 2026

MSMETOOLS is an independent platform and is not affiliated with any government agency, ministry or department.