Cost of Goods Sold
Cost of goods sold, commonly shortened to COGS, is the total direct cost of producing whatever a business sells. That includes raw materials, direct labor, and manufacturing costs, but it does not include indirect expenses like marketing, rent, or administrative salaries.
This number sits right near the top of the income statement, subtracted from revenue to calculate gross profit. Because of that placement, COGS has a direct effect on how profitable a business actually looks and getting it wrong throws off nearly every financial report built on top of it.
What Counts as Cost of Goods Sold
COGS only includes costs directly tied to producing or acquiring the products a business sells. A few examples make the boundary clearer.
Included in COGS:
- Raw materials used to manufacture a product
- Direct labor involved in production
- Cost of inventory purchased for resale
- Freight and shipping costs to bring materials in
- Manufacturing overhead directly tied to production, such as factory utilities
Not included in COGS:
- Marketing and advertising expenses
- Office rent and administrative salaries
- Sales commissions
- Distribution costs to ship finished products to customers
This distinction matters because mixing indirect costs into COGS artificially lowers gross profit and distorts pricing decisions. A business that miscategorized a marketing expense as COGS, for instance, ends up thinking its products are less profitable than they actually are.
The Cost of Goods Sold Formula
The standard formula for calculating cost of goods sold looks like this:
COGS = Beginning Inventory + Purchases During the Period − Ending Inventory
This formula works because it accounts for inventory that was already on hand, adds whatever was purchased or produced during the period, then subtracts whatever is left unsold at the end. What remains represents the cost of everything that actually got sold.
How to Calculate Cost of Goods Sold: A Worked Example
Say a retail business starts the quarter with $20,000 worth of inventory. During the quarter, it purchases an additional $35,000 in new inventory. By the end of the quarter, $12,000 worth of inventory remains unsold.
COGS = $20,000 + $35,000 − $12,000 = $43,000
This means the business spent $43,000 to acquire the inventory it actually sold during that quarter. If the business generated $70,000 in revenue over the same period, gross profit would come out to $70,000 − $43,000 = $27,000.
How to Find Cost of Goods Sold When Inventory Records Are Incomplete
Not every business track inventory with the same precision, especially smaller operations still relying on manual records. A few practical steps help when the numbers are not perfectly clean.
- Start with a physical inventory count. A rough count at the beginning and end of the period gives a starting point even without detailed tracking software.
- Pull purchase records from vendor invoices. Bank statements and supplier invoices usually reconstruct the purchases figure reasonably well.
- Choose a consistent inventory valuation method. Businesses typically use FIFO (first in, first out), LIFO (last in, first out), or weighted average cost. Whichever method gets chosen should stay consistent period over period, since switching methods mid-year makes historical comparisons unreliable.
- Reconcile against accounting software where possible. Most accounting platforms track inventory automatically once set up correctly, which removes much of the manual guesswork going forward.
Why COGS Matters Beyond the Income Statement
COGS does more than just sit on a financial statement. It directly shapes several important business decisions.
Gross margin depends entirely on COGS. A business cannot know it’s true gross margin, and by extension its pricing flexibility, without an accurate COGS figure.
Tax liability also connects to COGS, since it is a deductible business expense. A business that undercounts COGS ends up overstating taxable income and paying more tax than necessary. One that overcounts it risks IRS scrutiny during an audit.
Inventory management decisions, like how much stock to order and when, become clearer once a business understands the true cost sitting in its inventory. Overordering ties up cash in inventory that may not sell quickly enough to justify the cost.
Common Mistakes Businesses Make With COGS
A few recurring errors show up often enough to be worth flagging directly.
- Including indirect costs. Rent, marketing, and administrative salaries do not belong in COGS, even though it can be tempting to lump every business expense together.
- Inconsistent inventory valuation methods. Switching between FIFO and LIFO without a clear reason distorts period-over-period comparisons.
- Forgetting freight-in costs. Shipping costs to bring inventory into the business belong in COGS, but freight to deliver finished products to customers does not.
- Not adjusting for inventory shrinkage. Theft, damage, or spoilage reduces available inventory and should factor into the ending inventory count, or COGS ends up understated.
COGS for Service-Based Businesses
Service businesses without physical inventory still calculate a version of COGS, sometimes called cost of services or cost of revenue. This typically includes direct labor costs for delivering the service, along with any materials directly consumed in providing it.
A consulting firm, for example, might count the direct hours billed by consultants working on client projects as its cost of services, while excluding administrative staff, office rent, and business development costs, which fall under operating expenses instead.
