Also known as Cost of revenue, cost of sales
Cost of goods sold (COGS) is the direct cost of producing and delivering what you sell, raw materials, direct labor, payment processing, hosting for a software product.
Key takeaways
Cost of goods sold (COGS) is the direct cost of producing and delivering what you sell, raw materials, direct labor, payment processing, hosting for a software product. It sits right below revenue on the income statement and gets subtracted to reach gross profit. COGS scales with volume: sell more, and it rises with you.
Formula
COGS = Beginning Inventory + Purchases − Ending Inventory
A company starts the quarter with $50,000 of inventory, buys $120,000 more, and ends with $40,000, giving COGS of $130,000.
COGS defines your gross margin, which caps how much every sale contributes toward overhead and profit. Misclassifying costs, burying delivery in operating expenses, or the reverse, inflates or deflates margin and misleads pricing. For fast-growing companies, clean COGS is often the difference between scaling profitably and scaling your losses.