SalesImporterby HMN Supplies LLC
All articles

Accounting basics

How beginning and ending inventory set your cost of goods sold

Beginning inventory plus purchases, minus ending inventory, equals cost of goods sold. The December 31 count is next year's beginning inventory.

Updated 2026-11-28

Cost of goods sold is what you started with, plus what you bought to resell, minus what you still hold at year end. The last number is the physical count. A higher ending count means a lower cost of goods sold. A lower count means a higher one. Next year's beginning inventory is this year's ending figure, unless the two differ and you explain why.

This isn't tax, legal, or accounting advice. How to take the count, location by location, is in How to count your inventory before December 31.

What goes into the formula

IRS Publication 334 (2025), chapter 6, figures cost of goods sold on Schedule C, lines 35 through 42.

Line What it is
35 Inventory at the beginning of the year
36 Purchases, less the cost of items withdrawn for personal use
37 to 39 Cost of labor, materials and supplies, and other costs
40 Lines 35 through 39 added together. Goods available for sale
41 Inventory at the end of the year
42 Cost of goods sold. Line 40 minus line 41

A reseller who buys finished goods, and does not manufacture them, often has no labor and no factory materials on lines 37 and 38. Publication 334 says labor in cost of goods sold is usually a manufacturing cost, and that small merchandisers typically do not have it. Freight to get merchandise to you is still part of the cost of the goods. The same chapter includes freight-in on merchandise you purchase for sale among other costs. What counts as cost of goods sold is the split between that cost and a selling expense such as a marketplace fee.

For the goods themselves, the working formula is:

Beginning inventory + purchases − ending inventory = cost of goods sold.

Purchases, in that sentence, are the cost of goods you acquired for resale, after you take out anything you withdrew for personal use. Publication 334 says to exclude that personal-use cost from merchandise bought for sale, and to charge it to your drawing account. It is not cost of goods sold. Cost of goods sold for eBay resellers shows the same point on Schedule C.

Publication 334 also says that ending inventory usually becomes next year's beginning inventory, and that opening inventory is usually identical to the prior year's closing inventory. When the two differ, you attach an explanation.

An example, with made-up numbers

Every dollar figure in this section is illustrative.

You started January 1 with goods that cost $2,400.00. During the year you bought $11,600.00 of goods to resell, and you withdrew nothing for yourself. On December 31 the count, priced at those costs, is $3,150.00.

Amount
Beginning inventory $2,400.00
Purchases $11,600.00
Goods available for sale $14,000.00
Ending inventory $3,150.00
Cost of goods sold $10,850.00

$2,400.00 + $11,600.00 − $3,150.00 = $10,850.00. The $3,150.00 still on hand is an asset. It sits on the balance sheet. Why buying inventory is not an expense is why those purchases were not an expense on the day you paid for them. Cost of goods sold is the $10,850.00, which is the line under net revenue on the income statement.

On January 1 of the next year, beginning inventory is $3,150.00. You carry the December 31 count forward. You do not invent a new opening figure.

Move only the ending count and the expense moves the other way. Still illustrative. The same $2,400.00 and the same $11,600.00, with an ending count of $2,150.00 instead of $3,150.00, produce cost of goods sold of $11,850.00. One thousand dollars less on the shelf is one thousand dollars more of cost. That is the whole reason to count. The steps are in the year-end count article.

What if you also track each item's cost?

Adding the cost of each item as it sells should equal the formula, once the ending count matches the goods still on hand. The reseller article follows one purchase both ways. When the two totals differ, something left the shelf without a recorded sale, a cost was never entered, or the count is wrong. The count is the check.

Which tax form uses these lines?

A sole proprietor uses Part III of Schedule C. The 2025 Instructions for Schedule C say that, in most cases, a business in which the production, purchase, or sale of merchandise was an income-producing factor takes inventory at the beginning and the end of the year.

A corporation or a partnership that deducts cost of goods sold uses Form 1125-A (Rev. November 2024). On that form, filers of Form 1120, 1120-C, 1120-F, 1120-S, or 1065 attach it when they report the deduction. Line 1 is inventory at the beginning of the year. Line 2 is purchases, reduced by items withdrawn for personal use. Line 6 is the sum of the cost lines. Line 7 is inventory at the end of the year. Line 8 is cost of goods sold, line 6 minus line 7. The idea matches Schedule C. The line numbers do not. The IRS page about the form is the index for the current revision.

What about the small-business inventory choice?

A small business taxpayer can choose not to keep an inventory, and still has to use a method of accounting for those goods that clearly reflects income. The 2025 Schedule C instructions and Publication 334 (2025) both say you qualify when average annual gross receipts are $31 million or less for the three prior tax years, the figure is indexed for inflation, and you are not a tax shelter. Those pages are for 2025 returns. Publication 538 describes the methods under that choice, including treating the goods as non-incidental materials and supplies. If you choose to keep an inventory instead, you generally value it each year to figure cost of goods sold. Whether the choice fits the return you are filing, and whether a change requires Form 3115, is a question for a tax pro.

What you record in SalesImporter

You type each item's cost. How to add an item is that field. SalesImporter connects to eBay, and a sale posts automatically. Cost of goods sold posts only when that cost is already there. The cost moves from Inventory Asset (1200) to COGS / Inventory (5000), which are the accounts on the chart a new company starts with. Leave the cost blank and nothing posts to cost of goods sold. Profit then looks higher than it is.

The app does not take the physical count, and it has no inventory-count or inventory-adjustment screen. When the counted cost and the Inventory Asset balance differ, you record the difference yourself, with a journal entry dated December 31. The count article shows the entry.

This is general information, not tax, legal, or accounting advice. Check with your accountant. SalesImporter is made by HMN Supplies LLC and is not affiliated with, endorsed by, or sponsored by Intuit, Amazon, or eBay.

Related

  • Why buying inventory is not an expenseSpending $5,000 on stock doesn't make you $5,000 poorer — you swapped cash for goods of the same value, and the expense arrives when they sell.
  • What counts as Cost of Goods Sold?The cost of the things you actually sold — not everything you spent to run the business, and not the stock still sitting on your shelf.
  • How to read your Balance SheetA photograph of what the business owns and owes on one day — and the report that tells you what your bank balance actually means.
  • Reading your Income StatementEvery line explained in order, from Gross Sales down to Net Profit, and which decisions each one should actually inform.
  • How to add an itemSet up a product or service once — its price, its cost, and the income account it posts to — so invoices fill themselves in.
  • How to file the records behind a year of resellingPut one year's receipts, marketplace reports, mileage log, and statements into a folder you can still open later, and label how long it has to stay.