What is Cost of Goods Sold (COGS)?

If you subscribe to a service from a link on this page, Reeves and Sons Limited may earn a commission. See our ethics statement.

Quick answer:

Cost of goods sold, or COGS, is what the stock you actually sold cost you to buy or make. The retail formula is beginning inventory plus purchases, minus ending inventory, with the direct costs of getting goods ready for sale added in.

It is the number that sits directly under revenue on your income statement, so every dollar of COGS error moves your gross profit by a dollar. It also drives your taxable income, which is why the IRS has its own line-by-line version of the calculation.

Most store owners can quote their revenue to the dollar and guess their COGS to the nearest ten thousand. That gap is where margin quietly disappears.

Here is the formula the tax return uses, a full worked example with real figures, what belongs in the number and what does not, and the three places a retail till gets it wrong.

What is Cost of Goods Sold? The Basics

COGS measures cost of the goods that left the building, not cost of the goods you bought. Those two numbers are only the same in a month where you sold everything you purchased, which never happens in retail.

The bridge between them is inventory. Stock bought and not yet sold sits on the balance sheet as an asset, and it only becomes an expense in the period it sells. That timing rule is the whole concept.

COGS is also a cost number, never a price number. Both halves of the calculation are measured at what you paid, which is what makes COGS the correct numerator for inventory turnover.

One naming note, since the terms get mixed. Cost of sales is the same idea for a business that sells services or does not hold stock. Retailers with shelves use COGS.

The Formula, Line by Line

The IRS sets out the calculation on Schedule C, and it is worth following that structure because it is the version your accountant files. Per IRS Publication 334, the lines add up like this.

  • Inventory at beginning of year: what was on the shelves and in the stockroom on day one, at cost.
  • Purchases less items withdrawn for personal use: everything bought for resale, minus anything you took for yourself.
  • Cost of labor: direct labor involved in producing or preparing goods, which matters for makers rather than pure resellers.
  • Materials and supplies: what goes into the product, including packaging that ships with it.
  • Other costs: the direct costs of getting goods ready to sell, freight in being the common one for retail.
  • Inventory at end of year: subtracted from the running total to leave the cost of what sold.

In plain arithmetic: beginning inventory plus purchases plus direct costs, minus ending inventory, equals COGS. Everything hard about the number lives in those two inventory counts.

A Worked Example With Real Figures

Take a homewares store closing out a year with $520,000 in sales.

LineAmount
Inventory at beginning of year$84,000
Purchases for resale$296,000
Freight in on those purchases$8,000
Subtotal$388,000
Inventory at end of year$92,000
Cost of goods sold$296,000

From there the margin follows. Revenue of $520,000 minus COGS of $296,000 leaves $224,000 in gross profit, a gross margin of 43.1%. Rent, wages and marketing come out of that $224,000, not out of the $520,000.

The same two inventory figures give you a second number for free. Average inventory is $88,000, so turnover is $296,000 divided by $88,000, or 3.4x for the year.

Notice what happens if the closing count is sloppy. Count $92,000 of stock as $84,000 and COGS rises to $304,000, gross profit falls to $216,000, and margin reads 41.5% instead of 43.1%. An $8,000 counting error moved margin by 1.6 points, which is the difference between a healthy year and a worrying one in markup and margin terms.

What Belongs in COGS and What Does Not

In COGSNot in COGS
Wholesale cost of the goodsRent and utilities
Freight in from the supplierShipping out to the customer
Import duties and customs chargesMarketing and advertising
Packaging that is part of the productStore staff wages
Direct labor for goods you makeCard processing fees

The two that cause most arguments are outbound shipping and card fees. Both are real costs of selling, but they are selling expenses rather than product costs, so they sit below gross profit.

Keeping them out is not an accounting nicety. If you bury processing fees in COGS, your product margin looks worse than it is and you may reprice items that were never the problem, while the real fix sits in your payment processor agreement.

Why COGS Matters for Retailers

It sets your taxable income. COGS is subtracted from revenue before any other expense, so an overstated inventory count raises the tax you pay on profit you did not make.

It is also the basis of every pricing decision worth making. You cannot set a margin target without knowing landed cost, and landed cost means the wholesale price plus the freight and duty that COGS already tracks.

And it is the number a buyer or lender tests first. Gross margin is the fastest read on whether a retail business works, which is why the figure needs to survive scrutiny rather than being reverse engineered at year end. Methods of inventory valuation covers how the underlying cost is assigned.

How Your Valuation Method Changes the Number

When the same item was bought at different prices during the year, something has to decide which cost goes into COGS. That decision is the valuation method, and it changes your profit without changing a single sale.

  • FIFO: the oldest cost is expensed first, so in a period of rising prices COGS stays lower and reported profit higher.
  • Weighted average: one blended cost per item, which smooths price swings and is what most retail POS systems use by default.
  • LIFO: the newest cost is expensed first, permitted in the United States but with its own reporting obligations.

Pick one and stay with it. Switching methods mid-stream makes year on year comparison meaningless, and your accountant will need to disclose the change anyway.

Where a POS Gets COGS Wrong

The first failure is stock that never sold and never got counted. Retail shrinkage from theft, damage and admin error leaves the shelf without a sale, and unless you record it, it lands inside COGS and quietly inflates it.

The second is cost fields nobody maintains. A SKU created three seasons ago at the old wholesale price will keep reporting that price until somebody updates it, which flatters margin on every sale.

The third is freight left out entirely. Many systems have no field for it, so landed cost never reaches the product record. Systems differ widely here, and inventory management software cost is worth reading before assuming your till handles it.

  • Free inventory tools: fine for unit counts, usually weaker on landed cost and freight allocation.
  • SkuVault: built for multichannel stock control where cost accuracy across locations is the point.
  • Your accounting package: the safest home for the year end figure, with the POS feeding it unit movement.

Bogdan Rancea

Bogdan is a founding member of Inspired Mag, having accumulated almost 6 years of experience over this period. In his spare time he likes to study classical music and explore visual arts. Heโ€™s quite obsessed with fixies as well. He owns 5 already.

shopify first one dollar promo 3 months