Assets and inventory
Cost of goods sold
Cost of goods sold is the direct cost of what a business sold in a period, such as stock, materials and direct labor. Revenue minus it is gross profit.
Drafted with AI assistance and checked against the primary sources listed on this page. How we make these pages
At a glance
- Account type
- Expense, usually numbered in the 5000s, kept apart from operating expenses.
- Normal balance
- Debit. It grows as product is sold.
- Financial statement
- Income statement, between revenue and gross profit.
- Recorded when
- At each sale (perpetual books) or in a period-end entry (periodic books).
- Source records
- Vendor bills, freight bills, stock counts and the inventory report.
How it works in the books
When you buy stock to resell, the cost sits in Inventory, an asset. It becomes cost of goods sold only when the product is sold, or in a period-end entry that works out what was sold. Revenue minus cost of goods sold is gross profit, so a mistake in this one number changes every profit figure below it on the income statement.
Example
A kayak shop starts June 2026 with $18,400 of stock, adds $12,100 of net purchases and freight, and counts $16,900 left on June 30. Its June cost of goods sold is $18,400 + $12,100 - $16,900 = $13,600.
What can go wrong
The error to watch for is treating every purchase as cost of goods sold, or ignoring ending inventory. Stock bought but still on the shelf is an asset, not a cost, so profit looks too low in a heavy buying month and too high in a light one.
Cost of goods sold formula
Cost of goods sold = beginning inventory + net purchases + freight-in - ending inventory. Net purchases = purchases - returns - purchase discounts
Costs that belong in cost of goods sold and costs that stay out
Cost of goods sold holds the cost of getting a product ready to sell: the price you paid, less returns and discounts, plus freight-in on the way to you. A business that makes what it sells adds the materials used in production, the direct labor of the people who build the product, and production overhead.
Costs of running the business, such as showroom rent, advertising and office wages, are operating expenses. Shipping to the customer is a presentation choice: pick one home for it, write it down and keep it there, so months stay comparable. A pure service business often has no cost of goods sold, because it holds no stock.
| Cost | Usual home | Why |
|---|---|---|
| Product bought for resale | Cost of goods sold | It is the product itself |
| Freight-in from the supplier | Cost of goods sold | Part of getting stock ready to sell |
| Purchase returns and discounts | Reduce cost of goods sold | They lower what the stock cost |
| Showroom rent, advertising | Operating expenses | Not part of the product's cost |
| Shipping to the customer | Your policy, kept consistent | Judgment call, not a fixed rule |
Recording cost of goods sold on perpetual and periodic books
With perpetual records, each sale books two entries: revenue at the selling price, and cost of goods sold at cost, taken out of Inventory. The inventory account stays current all month. A physical count then catches shrinkage, which is stock lost to theft, damage or miscounts, and the difference goes to cost of goods sold.
With periodic records, purchases go to a Purchases account and Inventory does not move until the period closes. You count the stock, then work out cost of goods sold with the formula. When the same paddle was bought at different prices, the cost-flow method, such as first in, first out, decides which prices reach cost of goods sold. Keep one method.
| Account | Debit ($) | Credit ($) |
|---|---|---|
| Checking | 220 | |
| Sales revenue | 220 |
| Account | Debit ($) | Credit ($) |
|---|---|---|
| Cost of goods sold | 130 | |
| Inventory | 130 |
| Account | Debit ($) | Credit ($) |
|---|---|---|
| Cost of goods sold | 340 | |
| Inventory | 340 |
Timing on accrual books, and where the tax rules differ
Cost of goods sold follows the sale, not the purchase. On accrual books, a pallet of kayaks bought in March and sold in May is an asset in March and a cost in May, beside the revenue it earned. A cash-basis report built from payments would show the pallet as a cost when it was paid for.
IRS Publication 334 (2025) says when producing, buying or selling merchandise is an income-producing factor, you generally must keep an inventory and use an accrual method for purchases and sales. A small business taxpayer, which for 2025 returns generally means average annual gross receipts of $31 million or less for the 3 prior tax years ($32 million for 2026), can choose not to keep an inventory but must still use a method that clearly reflects income.
Publication 334 also describes the uniform capitalization rules, which make some producers and resellers add part of their indirect costs to tax inventory, with small business taxpayers exempt. So tax cost of goods sold can differ from the books. Schedule C reports it on lines 35 through 42, and a CPA or enrolled agent decides which rules apply.
Tying cost of goods sold to the stock count
Start with inventory. The ending balance in the books should match the counted stock, and the beginning balance should equal last period's ending balance. Any gap lands in cost of goods sold, so treat a gap as a question to answer, not a number to accept.
Then compare cost of goods sold to sales. When revenue is flat and cost of goods sold jumps, look for a missed or duplicate bill, freight posted as an operating expense, or a count never entered. Compare each month to your own history, since product mix sets what is normal.
Know what the cost of goods sold total hides. On periodic books, theft, damage and counting errors sit inside it, because the count is the only measure of what left the shelf. Nor does the total show which products earn their keep; that takes a split by product line.
Worked example
Lakeside Kayak Gear closes June 2026 on periodic books
Lakeside Kayak Gear keeps accrual books with a periodic system. Inventory was $18,400 on Jun 1, 2026. During June it bought $12,600 of stock on account, returned $900 of it, took $250 of purchase discounts, and paid $650 freight-in. A count on Jun 30, 2026 values stock at $16,900. June sales were $31,000.
- 1Net purchases = $12,600 - $900 - $250 = $11,450.
- 2Add freight-in: $11,450 + $650 = $12,100 of cost of purchases.
- 3Goods available for sale = $18,400 + $12,100 = $30,500.
- 4Close the period with the first entry below: $30,500 to Cost of goods sold, zeroing Purchases, Freight-in and the two contra accounts. Each side totals $31,650.
- 5Put the counted stock back: debit Inventory $16,900 and credit Cost of goods sold $16,900.
- 6Cost of goods sold = $30,500 - $16,900 = $13,600. Gross profit = $31,000 - $13,600 = $17,400.
| Account | Debit ($) | Credit ($) |
|---|---|---|
| Cost of goods sold | 30,500 | |
| Purchase returns | 900 | |
| Purchase discounts | 250 | |
| Inventory | 18,400 | |
| Purchases | 12,600 | |
| Freight-in | 650 |
| Account | Debit ($) | Credit ($) |
|---|---|---|
| Inventory | 16,900 | |
| Cost of goods sold | 16,900 |
| Debit ($) | Credit ($) |
|---|---|
| 30,500 | 16,900 |
| 13,600 |
| Debit ($) | Credit ($) |
|---|---|
| 900 | |
| 900 |
| Debit ($) | Credit ($) |
|---|---|
| 250 | |
| 250 |
| Debit ($) | Credit ($) |
|---|---|
| 16,900 | 18,400 |
| 1,500 |
| Debit ($) | Credit ($) |
|---|---|
| 12,600 | |
| 12,600 |
| Debit ($) | Credit ($) |
|---|---|
| 650 | |
| 650 |
Debits on the left, credits on the right. The last row is the net of these entries only; any balance the account held before them is not shown.
| Line | Amount |
|---|---|
| Beginning inventory, Jun 1 | $18,400 |
| Purchases | $12,600 |
| Less purchase returns | ($900) |
| Less purchase discounts | ($250) |
| Freight-in | $650 |
| Goods available for sale | $30,500 |
| Less ending inventory, Jun 30 count | ($16,900) |
| Cost of goods sold | $13,600 |
| Gross profit on $31,000 of sales | $17,400 |
June 2026 cost of goods sold is $13,600, ending inventory is $16,900, and gross profit is $17,400 on sales of $31,000.
Common cost of goods sold mistakes
- Coding a pallet order straight to Cost of goods sold when the bill arrives, so June profit drops while the kayaks are still on the floor.
- Post stock purchases to Purchases on periodic books or Inventory on perpetual books, and let the sale or the period-end count move cost into Cost of goods sold.
- Leaving freight-in, or a returned shipment, in operating expenses or out of the books.
- Book freight-in with the purchase it belongs to, and record each return against the original bill so net purchases are right.
- Starting June with a beginning inventory that does not equal the May 31 count, so the gap silently lands in June cost of goods sold.
- Before the close, confirm beginning inventory equals the prior period's counted ending inventory, and note who counted and how the stock was priced.
Cost of goods sold: common questions
What is the formula for cost of goods sold?
Beginning inventory plus net purchases and freight-in, minus ending inventory. Lakeside Kayak Gear's June 2026 works out to $18,400 + $12,100 - $16,900 = $13,600. Divided by June sales of $31,000, that is about 43.9% of sales, a figure to track against the shop's prior months.
Is cost of goods sold an expense or an asset?
Cost of goods sold is an expense with a debit balance, shown on the income statement. The same dollars start as an asset: stock you buy sits in Inventory on the balance sheet until it sells. The sale, or the period-end count, moves the cost to the expense.
Is labor included in cost of goods sold?
Usually only when the business makes its product. IRS Publication 334 (2025) says labor costs are usually part of cost of goods sold only in a manufacturing or mining business. A reseller books store staff to Wages expense; a maker puts its builders' direct labor in cost of goods sold.
Is cost of goods sold the same as cost of sales?
Often yes. Both mean the cost of what you sold, shown above gross profit. Service businesses tend to say cost of sales or cost of services for items such as direct labor. The label matters less than putting the same kinds of cost in the same place every month.
Where you will see cost of goods sold
Sources
- Publication 334 (2025), Tax Guide for Small Business (Internal Revenue Service)
- Publication 538: Accounting Periods and Methods (Internal Revenue Service)
- Rev. Proc. 2025-32, 2026 inflation-adjusted items (Internal Revenue Service)
- Beginners' Guide to Financial Statements (U.S. Securities and Exchange Commission)
Educational information only. Booksmrt provides bookkeeping services, not tax, legal, audit, or investment advice. Confirm material accounting and tax decisions with the appropriate professional.