How much did it actually cost you to make what you sold? That single question is the whole reason the cost of goods sold (COGS) line exists. And if you've ever stared at a balance sheet wondering where COGS shows up — or whether it shows up at all — you're not alone. It's one of the most quietly confusing items in accounting, partly because people mix it up with inventory, partly because the name itself is a little misleading.
Here's the short version: COGS doesn't sit on your balance sheet. It flows through your income statement and lands on your balance sheet indirectly, through its effect on inventory and retained earnings. Stick with me, because once you see how the pieces connect, the whole thing clicks.
What Is Cost of Goods Sold?
Cost of goods sold is exactly what it sounds like — the direct cost of producing or buying the goods you actually sold during a given period. Raw materials, direct labor, manufacturing overhead — if it went into making the product, and the product shipped out the door, it's in COGS Simple, but easy to overlook..
But here's the thing most people miss: it's only the cost of what was sold. In real terms, not what's sitting on a shelf. Also, the stuff that left? On the flip side, that's inventory, which is a balance sheet asset. Not what got returned. Day to day, not what you bought. The stuff still in your warehouse? That's COGS, which is an income statement expense.
Not the most exciting part, but easily the most useful.
A few costs stay out of COGS entirely, no matter how tempting it is to lump them in:
- Selling expenses — like advertising, sales salaries, and shipping to customers
- Administrative overhead — office rent, software, the CEO's salary
- Research and development — the cost of figuring out what to make next
Those go to the income statement too, but on different lines. COGS is laser-focused on production Less friction, more output..
The COGS Formula
The classic formula looks like this:
Beginning Inventory + Purchases − Ending Inventory = COGS
That's it. That said, you start with what you had on hand, add what you bought or made, subtract what you still have, and the difference is what you sold. Everything you didn't sell sticks around on the balance sheet as an asset Still holds up..
Why It Matters (and Why It's Weird on the Balance Sheet)
Here's where people get tripped up. it's not there. On the flip side, not directly. You open a balance sheet expecting to find cost of goods sold somewhere, and... And that feels wrong, because COGS feels like it should be an asset or a liability or something with a place on the sheet.
It isn't. And that's by design.
COGS is an expense. Expenses live on the income statement. That said, they reduce your net income, which then flows into retained earnings on the balance sheet. So COGS affects the balance sheet — but indirectly, through the income statement and the equity section.
Why does this matter? Three reasons:
- Gross profit margins depend on it. Subtract COGS from revenue, and you've got your gross margin. If COGS is wrong, your margin is wrong, and so is every decision built on top of it.
- Inventory valuation depends on it. The ending inventory number on your balance sheet is calculated using the COGS formula in reverse. If you mess up COGS, your inventory asset is wrong too.
- Tax liability depends on it. COGS is a deductible expense. Overstate it and you're underreporting income. Understate it and you're paying taxes on phantom profits.
So even though COGS doesn't sit on the balance sheet as its own line item, the consequences of getting it right (or wrong) ripple through every part of your financials.
A Quick Example
Say you run a small furniture business. Because of that, at the start of the year, you have $50,000 worth of finished chairs in your warehouse. During the year, you build or buy another $200,000 worth. At year-end, $30,000 worth is still sitting there.
Your COGS for the year? $50,000 + $200,000 − $30,000 = $220,000.
The $30,000 left over stays on the balance sheet as ending inventory. The $220,000 hits the income statement as cost of goods sold. See how one formula shows up in two places?
How COGS Connects to the Balance Sheet
Let's slow down and walk through this, because the connection isn't obvious at first glance.
The Income Statement Side
On the income statement, COGS appears just below revenue. Practically speaking, the sequence goes: Revenue − COGS = Gross Profit. Then you subtract operating expenses, interest, and taxes to get net income.
The Balance Sheet Side
Net income from the income statement flows into the equity section of the balance sheet, specifically into retained earnings. So if your COGS is too high, your net income is too low, and your retained earnings are too low. The balance sheet still balances — but the story it tells is wrong Small thing, real impact..
Meanwhile, ending inventory — which is calculated from the COGS formula — sits on the asset side of the balance sheet. Overstate COGS and you understate inventory. Understate COGS and you overstate inventory. Either way, the balance sheet is lying to you, just in a different direction.
Quick note before moving on Not complicated — just consistent..
The Inventory Link
Basically the relationship that confuses most people. Inventory and COGS are two sides of the same coin:
- Inventory = what you have
- COGS = what you spent to get rid of
When you buy materials or finished goods, your inventory goes up and your cash goes down. When you sell something, your inventory goes down and your COGS goes up. The asset leaves the balance sheet and becomes an expense on the income statement.
Most guides skip this. Don't.
Methods for Calculating COGS
The formula stays the same. The valuation method is what changes your number The details matter here..
FIFO (First In, First Out)
You assume the oldest inventory sells first. In practice, in periods of rising prices, FIFO gives you a lower COGS and a higher ending inventory value. Plus, the balance sheet looks healthier, and net income is higher. Sounds great — but it also means higher taxes.
LIFO (Last In, First Out)
You assume the newest inventory sells first. Day to day, in rising-price environments, LIFO gives you a higher COGS and lower net income. Lower taxable income. But your ending inventory is based on older, cheaper costs, so the balance sheet shows a smaller inventory asset. Note: LIFO isn't allowed under IFRS, so if you operate internationally, it's off the table Small thing, real impact..
Weighted Average
You average the cost of all units available for sale and apply that to both COGS and ending inventory. Simple, smooth, and the most common method for businesses that don't want to track individual unit costs Worth keeping that in mind..
Common Mistakes People Make With COGS
This is where the real-world problems live Worth keeping that in mind..
Mixing Up COGS and Operating Expenses
It's the most common error by far. Office rent, marketing spend, the delivery truck driver's salary — none of these go into COGS. COGS only includes the direct cost of making or buying the product. If you dump operating expenses into COGS, your gross margin looks worse than it is, and you might make bad pricing decisions based on a distorted number.
Forgetting About Inventory Write-Downs
If inventory is damaged, obsolete, or just worth less than you paid, you need to write it down. That said, that write-down reduces inventory on the balance sheet and increases COGS on the income statement. Skip it, and you're carrying a fantasy asset.
Not Reconciling COGS to Inventory Changes
If your COGS number doesn't tie back to the change in inventory from beginning to end, something's off. Maybe items are being given away or stolen. Maybe purchases are recorded wrong. Which means maybe inventory counts are inaccurate. A quick reconciliation catches all of this.
Using COGS to Manipulate Earnings
Here's where it gets shady. Some companies push expenses into COGS that don't belong there — or pull future-period costs into the current period — to smooth out earnings. It's tempting, especially if your bonus depends on hitting a number. But it's also fraud, and auditors get very good at catching it.
Practical Tips for Getting COGS Right
A few things that actually help, in the real world:
- Do a physical inventory count at least annually. Even if you use a perpetual inventory system, count the stuff. The system lies sometimes. Counting tells you the truth.
- Set up a separate general ledger account for COGS. Don't lump it in with other expenses. You'll thank yourself at tax time and during audits.
- Reconcile COGS to inventory every month. Beginning inventory
Finishing the COGS Reconciliation
Beginning inventory + purchases – ending inventory = COGS.
That simple equation is the backbone of the periodic inventory method, but it only works if every piece of the puzzle is recorded correctly. In practice you’ll often need to tweak the formula for items that don’t fit the textbook model:
And yeah — that's actually more nuanced than it sounds And that's really what it comes down to..
| Adjustment | Why it matters | How it appears in the books |
|---|---|---|
| Purchase returns & allowances | Reduces the cost of goods actually available for sale. | Debit accounts payable (or cash), credit inventory (or COGS). |
| Trade discounts & early‑payment discounts | Lower the net cost of inventory purchased. Day to day, | Record at the net price or adjust purchases accordingly. |
| Freight‑in | Directly attributable to getting inventory to its selling location; must be capitalized. That's why | Add to the inventory cost account. In real terms, |
| Consignment inventory | You may hold goods you don’t own, or you may ship goods to a consignee. | Only include inventory you own in the count; exclude consigned‑out items from COGS. |
| Scrap, spoilage, and shrinkage | Reduces the quantity that can be sold, so the associated cost must be moved out of inventory and into COGS (or a loss account). |
-down the value and reclassify the cost.
Missing any of these adjustments means your COGS figure will be overstated or understated, which then distorts gross margin, taxes, and the story you tell investors or lenders. A quick checklist you can run each month:
- Pull the inventory subsidiary ledger.
- Add purchases, freight‑in, and any other costs capitalized into inventory.
- Subtract purchase returns, allowances, and discounts.
- Add scrap, spoilage, and shrinkage amounts.
- Reconcile the adjusted total to the ending inventory count.
- Compare the resulting COGS to the GL balance.
If the numbers don’t line up, investigate before you close the books. The investigation itself is where most of the value sits—you’ll uncover everything from data‑entry errors to outright theft Small thing, real impact..
Common Pitfalls When Recording Inventory‑Related Costs
Even with a solid reconciliation routine, certain costs are easy to misclassify. These are the ones that keep auditors awake at night:
- Freight‑out vs. freight‑in. Freight‑in belongs in inventory; freight‑out is a selling expense. The line can blur when you use the same carrier for both.
- Indirect labor and overhead. Only include the portion that directly gets inventory ready for sale. Factory supervisor salaries, for example, usually stay in operating expenses.
- Marketing samples. If you “give” a product to a customer for promotional purposes, it still costs you to produce. Move the cost to a marketing or samples expense, not COGS.
- R&D prototypes. Materials used to build a prototype are R&D costs, not inventory costs, even if the prototype later becomes a sellable product.
- Repossessed inventory. If you repossess a product, record it at fair value and create a corresponding reduction in accounts receivable (or a repossession loss). Don’t simply write it off through COGS.
Misclassifying any of these inflates or deflates COGS, which in turn misstates gross margin and can trigger an auditor’s adjusting entries Nothing fancy..
The Bottom Line
Cost of Goods Sold is more than a line on the income statement—it’s a lens through which you see the operational health of a business. When COGS is accurate, you can:
- Spot pricing problems. A creeping COGS as a percentage of sales signals that input costs are rising faster than you can pass them on.
- Detect inventory leaks. Unexplained shrinkage shows up first as an unexpected COGS spike.
- Make informed sourcing decisions. Knowing the true cost of each product line lets you negotiate better with suppliers or drop unprofitable SKUs.
- Prepare reliable forecasts. Historical COGS trends feed directly into budgeting, cash‑flow projections, and break‑even analysis.
- Stay compliant. Tax authorities and auditors expect a defensible link between inventory, purchases, and COGS.
Getting COGS right isn’t glamorous work. So it’s reconciling spreadsheets, counting boxes, and asking the same question—*does this expense really belong here? *—over and over. But the payoff is real: a clear view of profitability, fewer surprises at year‑end, and the confidence that the numbers you present are the numbers you actually earned. Treat COGS as a living, breathing figure that deserves the same attention as revenue, and it will reward you with insight you can act on.