What Is Cost of Goods Sold (COGS)?
The direct costs attributable to producing goods or delivering services that were sold.
Detailed Explanation
COGS includes materials, direct labor, and manufacturing overhead. Subtracting COGS from revenue yields gross profit.
Example
A print shop's COGS includes paper, ink, and press operator wages billed on each production invoice.
Why It Matters
Accurate COGS tracking is essential for pricing, margin analysis, and tax reporting.
Key facts
- Cost of Goods Sold (COGS) is the direct costs attributable to producing goods or services sold by a business β including materials, direct labor, and direct overhead.
- Formula: COGS = Beginning Inventory + Purchases β Ending Inventory (for product businesses). Service businesses often use 'Cost of Revenue' instead with similar logic for direct service-delivery costs.
- Gross profit = Revenue β COGS. Gross margin = Gross profit Γ· Revenue. These are foundational profitability metrics.
- What's IN COGS: raw materials, direct labor, factory overhead, freight-in, manufacturing supplies. What's OUT: marketing, sales, admin, R&D (these are operating expenses below the gross profit line).
- Industry benchmarks: SaaS gross margins 70-85%, professional services 55-75%, manufacturing 25-45%, retail 25-50%, restaurants 30-40%.
How it shows up in practice
A specialty coffee roaster sells $480,000 of coffee in 2026. Their COGS includes: green coffee beans purchased ($142,000), packaging materials ($28,000), roasting labor (1.2 FTEs allocated, $58,000), roastery utilities and rent allocation ($24,000), freight-in ($8,000). Total COGS = $260,000. Gross profit = $480K β $260K = $220K. Gross margin = 46%. They use this metric to evaluate whether their pricing supports business sustainability against the 35-50% industry benchmark.
Common mistakes
- Including marketing or admin costs in COGS β overstates COGS, understates operating expenses, distorts both gross margin and operating margin.
- Excluding direct labor from COGS β common mistake among service businesses, makes gross margin meaningless.
- Using inconsistent inventory valuation methods (FIFO vs. LIFO vs. weighted average) across periods β distorts COGS comparability.
- Not properly allocating overhead β manufacturing overhead (utilities, depreciation) belongs in COGS but is often left in operating expenses.
- Failing to update COGS for inventory write-downs (obsolete, damaged, expired stock) β overstates inventory and understates current-period COGS.
Frequently asked questions
What's the difference between COGS and operating expenses?
COGS is direct costs of producing/delivering what you sold (materials, direct labor, factory overhead). Operating expenses are everything else (marketing, sales, admin, R&D, executive comp). COGS sits above the gross profit line; operating expenses below.
Do service businesses have COGS?
Often called 'Cost of Revenue' or 'Cost of Services' rather than COGS, but yes. Includes direct labor (consultant/developer time on billable work), client-specific software/tools, and travel/expenses passed through. Excludes overhead like office rent and admin labor.
How is COGS calculated for SaaS?
SaaS COGS typically includes: hosting/infrastructure costs (AWS, etc.), customer support labor for that revenue, payment processing fees, third-party data costs, and direct platform-delivery costs. Excludes sales, marketing, R&D β those are operating expenses. Healthy SaaS gross margin: 70-85%.
What inventory valuation method should I use?
Three main methods: FIFO (first-in-first-out, common in food/perishable businesses), LIFO (last-in-first-out, allowed in U.S. but not IFRS, common in commodities), Weighted Average (averages all inventory cost). Choose based on industry norms and tax considerations; consult a CPA.
Why does COGS matter so much?
Three reasons: (1) Gross margin determines unit economics and ability to scale, (2) Tax: COGS is the largest single deduction for product businesses, (3) Operations: tracking COGS by product/service identifies which offerings are profitable vs. dilutive.
Related Resources
Last verified: May 2026
Related Accounting Basics Terms
Get invoicing tips that actually help
Join 5,000+ freelancers and small business owners. One email per week with practical invoicing advice, tax tips, and product updates.
No spam, ever. Unsubscribe anytime.