English
/

Cost of Goods Sold: What Counts and How to Calculate It

Last edited Nov 6, 2026 · 4 min read

Cost of goods sold (COGS) is beginning inventory, plus purchases (less returns and anything you took for personal use), plus freight-in and other qualifying costs, minus ending inventory. IRS Publication 334, the tax guide for sole proprietors, lays this out on Schedule C lines 35 through 42. COGS is subtracted from your net receipts to get gross profit, before any operating expenses. The Schedule C line numbers below apply to the 2025 form; the small-business receipts threshold is $31 million for 2025 and $32 million for tax years beginning in 2026.

On this page▾
  1. The formula, line by line
  2. What belongs in purchases
  3. A worked example
  4. A quick accuracy check
  5. Do you have to keep an inventory?
  6. Frequently asked questions
  7. How do you calculate cost of goods sold?

Update for 2027: The small-business gross-receipts threshold is $33 million for tax years beginning in 2027 (IRS Rev. Proc. 2026-35, section 3.32).

The formula, line by line

Pub. 334 says that if you make or buy goods to sell, you deduct COGS from gross receipts, and that you must value inventory at the beginning and end of each tax year to get there.

Schedule C line What goes there
35 Inventory at beginning of year
36 Purchases, less items withdrawn for personal use
37 Cost of labor (not what you pay yourself)
38 Materials and supplies
39 Other costs
40 Add lines 35 through 39
41 Inventory at end of year
42 COGS: line 40 minus line 41

Opening inventory should usually equal last year's closing inventory. If it does not, the IRS says to attach an explanation.

What belongs in purchases

  • Use the price you actually paid. The IRS says trade discounts reduce your cost of purchases; use the price paid, not the stated price.
  • Subtract supplier returns. Pub. 334 says you "must deduct all returns and allowances" from total purchases.
  • Take out personal use. Merchandise you or your family take for personal use must be excluded from purchases.
  • Add freight-in. The IRS says freight-in on merchandise you purchase for sale is part of COGS.
  • Packaging depends. Containers that are an integral part of a manufactured product are COGS. Otherwise, their cost is a shipping or selling expense.

Labor and overhead usually matter only if you make the product. Pub. 334 says small merchandisers "usually do not have labor costs that can properly be charged to cost of goods sold."

A worked example

Assume a shop that buys and resells finished goods, with these made-up figures for one year:

  • Beginning inventory: $3,200
  • Purchases: $9,400
  • Returned to suppliers: $300
  • Taken home for personal use: $120
  • Freight-in: $450
  • Ending inventory (counted and priced): $4,100
  • Gross receipts: $21,000
  • Refunds and allowances to customers: $600

Net purchases: 9,400 - 300 - 120 = $8,980. Goods available for sale: 3,200 + 8,980 + 450 = $12,630. COGS: 12,630 - 4,100 = $8,530. Net receipts: 21,000 - 600 = $20,400. Gross profit: 20,400 - 8,530 = $11,870, which is 58.2% of net receipts.

Pub. 334 uses this same structure in its illustration, where returns and allowances are subtracted from gross receipts first, then COGS.

A quick accuracy check

Pub. 334 suggests a test for retail and wholesale businesses. Divide gross profit by net receipts, then compare the result with your markup policy. Little difference suggests the numbers are right; a large gap may mean sales, purchases or inventory were mis-recorded. In the example, a 58.2% gross profit compared with a shop that aims for a 60% gross margin is a small gap. If the shop aimed for 40%, the 18-point difference would be worth investigating.

Do you have to keep an inventory?

Pub. 334 says a "small business taxpayer" can choose not to keep an inventory. For tax years beginning in 2026, that means average annual gross receipts of $32 million or less for the prior three tax years, and not being a tax shelter; the 2025 threshold is $31 million. You must still use an accounting method for inventory that clearly reflects income. If you do keep an inventory, you generally must use an accrual method and value it every year. The IRS recommends inventory forms with description, quantity, unit price and value, and a record of who counted and priced.

The method for valuing inventory must follow generally accepted accounting principles for similar businesses, and be applied consistently year to year. Changing your inventory method generally means filing Form 3115, the application for a change in accounting method.

How FIFO and average cost change the number is covered in FIFO vs Average Cost: How Inventory Method Changes Profit.

Frequently asked questions

How do you calculate cost of goods sold?

Add beginning inventory, net purchases (after returns and anything taken for personal use) and freight-in or other qualifying costs, then subtract ending inventory. On Schedule C that is line 40 (lines 35 through 39 added) minus line 41, giving COGS on line 42. In the example above: $3,200 + $8,980 + $450 - $4,100 = $8,530.

Sources

  1. Internal Revenue Service, Publication 334 (2025), Tax Guide for Small Business
  2. Internal Revenue Service, Instructions for Schedule C (Form 1040), 2025
  3. Internal Revenue Service, Rev. Proc. 2025-32, 2026 gross receipts test
  4. Internal Revenue Service, Rev. Proc. 2026-35

About this guide

Howlane operator · Checked against the official sources listed above. It is general information, not financial, tax or legal advice; rules and rates change, so confirm with the source or a qualified professional.

AboutEditorial standardsCorrectionsReport an error

Edit history

  • Updated
  • Updated
  • Updated
  • Updated
  • Published