Your income statement has a line called cost of goods sold, and your tax form wants a number for it. Here’s what it means, the formula, and one worked example.
By Antoine Joseph · Small Business Bookkeeping · 6 min read
Photo via Pexels
You’re looking at your income statement and there’s a line called “cost of goods sold.” Or your tax software just asked for it and you have no idea what number goes there. That’s a normal place to be. Most small business owners meet this term the first time a form demands it.
Here’s the short version.
Cost of goods sold (COGS) is what it cost you to make or buy the products you actually sold during a period. Not everything you bought. Only what left the shelf.
COGS sits near the top of your income statement. Revenue minus COGS gives you gross profit — what’s left from sales after paying for the products themselves. Rent, software, and advertising come out of gross profit after that. If COGS is wrong, gross profit is wrong. Then your profit is wrong, and so is your tax bill. (For a refresher on where this line sits, see our guide to reading an income statement.)
COGS is figured with an inventory formula. Inventory just means the products you hold to sell.
Beginning inventory + purchases − ending inventory = COGS
Add beginning inventory and purchases together and you get the cost of goods available for sale. Subtract what’s still on the shelf, and what remains is what you sold.
Say you sell candles online. You started the year with $4,000 of candles and supplies in stock. You bought $18,000 more during the year. On the last day of the year, you counted what was left and valued it at $5,000. You sold $40,000 worth of candles (your revenue).
COGS = $4,000 + $18,000 − $5,000 = $17,000
Gross profit = $40,000 − $17,000 = $23,000
Notice you didn’t deduct the full $18,000 you spent. You had $22,000 of stock available to sell in total ($4,000 + $18,000), and $5,000 of it was still unsold. Only the $17,000 that sold counts as COGS. The unsold $5,000 sits on your balance sheet as an asset until it sells.
The IRS lists the pieces on Schedule C, Part III (for US sole proprietors). Beyond purchases, it allows for the cost of labor, materials and supplies, and other costs such as freight-in (what you pay to get products delivered to you) and overhead tied to making the product.
Two things are not COGS:
Usually little or none. The IRS says its COGS chapter doesn’t apply to a personal service business, such as a doctor, lawyer, carpenter, or painter. But if you sell materials along with your service, those material costs may fall under the COGS rules. If you’re a freelancer or consultant who sells only time, you can likely skip this line. When in doubt, ask a CPA or tax preparer about your situation.
The formula is only as good as your ending inventory number. You get it two ways: count what’s actually on hand, then put a dollar value on it.
The practical takeaway for both countries: pick a method, write it down, and stay consistent. Switching methods every year makes your numbers impossible to compare.
US: Schedule C, Part III, lines 35 to 42. Line 35 is beginning inventory, line 36 is purchases, line 41 is ending inventory, and line 42 is cost of goods sold (line 40 minus line 41).
Canada: Form T2125, Part 3D. Line 8300 is opening inventory, line 8320 is purchases, line 8500 is closing inventory, and line 8519 is gross profit.
Line numbers change with form updates, so check the current year’s form before you file.
Either way, do a physical count at least once a year, and reconcile it against your books. It fits naturally into your month-end close and your year-end tax prep. Whether you use cash or accrual accounting can also affect how inventory is treated, so check with your accountant.
Once you have your numbers, paste them into an AI assistant and ask it to check your math: “Beginning inventory $4,000, purchases $18,000, ending inventory $5,000. What’s COGS?” Use it as a second opinion, not a replacement for understanding your own numbers. If its answer doesn’t match yours, find out why before you file.
COGS is beginning inventory plus purchases minus ending inventory. It tells you what your products actually cost you, so gross profit reflects reality. Count your stock, keep your method consistent, and keep selling costs out of it.
This is practical education, not tax or legal advice. For questions about your specific return, talk to a licensed CPA, tax advisor, or your accountant.
Want a tool for it?
The Inventory Ledger template tracks stock in and out, and the Gross Margin Calculator shows what your COGS does to your margins.
A complete print and digital textbook from Antoine Joseph — the same plain-English approach as this blog, from your first journal entry through a finished set of financial reports.
See the Book