Cost of goods sold (COGS) — beginning inventory + purchases − ending inventory
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.
These are total dollar amounts from the books — not unit counts. They feed the left side of COGS = BI + purchases − EI.
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.
Same leftover units. Different method → different ending-inventory dollars → different COGS. Nothing else in the formula changes.
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).
Read left to right. Orange result is COGS — the cost of what left the shelves.
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).