What you sold this year

Cost of goods sold (COGS) — beginning inventory + purchases − ending inventory

In plain English

If you sell products, the tax question is not “what did customers pay?” — it is “what did the stuff you sold cost you?” That cost is cost of goods sold (COGS).

There are only three dollar buckets in the formula:

Beginning inventory (what was already on the shelves Jan 1) + purchases (what you bought to sell) − ending inventory (what is still on the shelves Dec 31) = COGS.

FIFO and LIFO do not change that formula. They only change which dollar amount you put in ending inventory when prices moved during the year.

How this page is organized: First enter the two shelf-dollar totals you already know (beginning inventory and purchases). Next, value what is left on the shelf at year-end using units × a unit cost — that is where FIFO vs LIFO matters. The page then subtracts that ending-inventory dollar amount to get COGS. A separate box at the bottom covers the small-business inventory simplification — it is not part of the COGS math.

Build the scenario

1. Shelf dollars you already know

These are total dollar amounts from the books — not unit counts. They feed the left side of COGS = BI + purchases − EI.

Goods available for sale (BI + purchases) —

2. What is still on the shelf at year-end?

Here we value the leftover units. Count how many units remain, then pick which unit cost sticks to them. That product becomes ending inventory in dollars.

3. Which leftover cost do we use? (FIFO vs LIFO)

Same leftover units. Different method → different ending-inventory dollars → different COGS. Nothing else in the formula changes.

Ending inventory (units × chosen unit cost) —

Optional: small-business inventory simplification

Not used in the COGS calculation above. Some small businesses may avoid formal inventories if average annual gross receipts stay under the exam-year threshold (shown here as $31,000,000 for 2025).

Small-biz inventory relief? —

The formula, filled in

Read left to right. Orange result is COGS — the cost of what left the shelves.

Beginning inv. —
Purchases —
Ending inv. —
COGS —
Cost of goods sold (COGS)
—
—Available $
Goods available (BI + purchases)
—Still here $
Ending inventory (valued leftovers)
—Sold $
COGS (what left the shelves)
Waterfall · same three buckets
Common exam mistake: Treating FIFO/LIFO as a different COGS formula. The formula is always BI + purchases − EI. The method only picks which unit cost values the ending-inventory dollars. Under inflation: FIFO → higher EI $ → lower COGS → higher income; LIFO is the opposite.
← All study tools Diagnostic home

Teaching tool only — not tax software. The two-layer FIFO/LIFO pool is simplified for the exam idea; real layers can be more complex. Small-biz relief threshold shown is the 2025 average gross receipts figure ($31,000,000).