What is Cost of Goods Sold (COGS)?
COGS measures the direct cost of producing the goods sold by a company during a specific period. It includes the cost of materials and labor directly used to create the good. It excludes indirect expenses like distribution, sales force commissions, and corporate marketing. Subtracting COGS from Revenue gives you Gross Profit.
Mathematical Foundation
Laws & Principles
- The Inventory Math Logic: The simplest way to understand the formula is: (Everything we had at the start) + (Everything we built/bought) = Everything Available to Sell. If we subtract (Everything left on the shelves at the end), the difference MUST be exactly what we actually sold. The cost of that difference is COGS.
- GAAP Matching Principle: According to Generally Accepted Accounting Principles (GAAP), you cannot expense the cost of building a product on your income statement until the exact period you actually sell the product and recognize revenue. This ensures costs "match" the revenue they generate.
Step-by-Step Example Walkthrough
" A furniture maker starts the year with $50k in wood/chairs. They buy $120k in lumber, spend $80k on carpenter wages, and $20k on factory electricity. At year-end, they have $45k worth of inventory left. "
- Beginning: $50,000
- New Costs Added: $120k + $80k + $20k = $220,000
- Available to Sell: $50k + $220k = $270,000
- Ending Inventory (Unsold): $45,000
- COGS = $270,000 - $45,000 = $225,000