How COGS really works, why periodic and perpetual systems disagree, and the rounding and concurrency bugs that corrupt inventory values.
You buy the same product three times at three different prices. A customer buys one. Which price counts as the cost of that sale? It sounds like a trivial question, but the answer decides how much profit your business reports, how much tax you may owe, and how your inventory is valued on the balance sheet. The number at the center of it all is called cost of goods sold, or COGS, and this post explains it in plain English, with one worked example you can follow with a pencil. What cost of goods sold actually is Cost of goods sold is the direct cost of the inventory you sold during a period. It appears on the income statement, and when you subtract it from your sales revenue, you get gross profit. Revenue - COGS = Gross profit What counts as a cost of the goods? Think of everything it took to get the product into sellable condition: - The purchase price you paid the supplier - Freight-in, meaning shipping you paid to receive the goods - Minus any returns you sent back to the supplier - M...