How it’s calculated
Under a periodic inventory system you don't track the cost of each sale. Instead, at the end of the period you count what is left, and everything else that was available is treated as sold.
Example: beginning inventory 20,000, purchases 85,000 and ending inventory 25,000. Goods available = 105,000, so COGS = 105,000 − 25,000 = 80,000.
The value you put on ending inventory (FIFO, LIFO, weighted average) changes COGS. IRS Publication 334 explains the rules for tax returns.
Frequently asked questions
Why does ending inventory reduce COGS?
Goods still on the shelf were not sold, so their cost stays on the balance sheet as an asset instead of becoming an expense.
Does COGS include shipping?
Freight-in (shipping to get goods to you) is part of inventory cost. Shipping goods out to customers is a selling expense, not COGS.
Embed this calculator
Add this free calculator to your own website. Copy the code below into your page’s HTML:
Sources
- Principles of Accounting, Volume 1, 6.2 Compare and Contrast Perpetual versus Periodic Inventory Systems — OpenStax
- Publication 334, Tax Guide for Small Business (cost of goods sold) — U.S. Internal Revenue Service
Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.
Spotted a mistake or missing option? Report a problem · GitHub issue· Suggest a calculator