Calcady
Home / Financial / Cost of Goods Sold (COGS) Calculator

Cost of Goods Sold (COGS) Calculator

Calculate COGS using the inventory method to determine the direct production costs that flow to your income statement under GAAP.

Inventory Periods

$

Value of stock rolling over from the last period.

$

Value of unsold stock left at the end of this period.

Production Costs Incurred

$
$
$

Note: Do not include administrative salaries, marketing, sales commissions, or HQ rent. COGS only includes costs directly tied to the production floor.

Total COGS

$225,000
Cost of Goods Sold expense to hit Income Statement
Accounting Formula Flow:
Beginning Inventory:$50,000
+ Purchases:+$120,000
+ Direct Labor:+$80,000
+ Manufacturing Overhead:+$20,000
= Goods Available For Sale:$270,000
- Ending Inventory (Unsold):-$45,000
= COGS:$225,000
Email LinkText/SMSWhatsApp

Quick Answer: What is COGS and why does it matter?

Cost of Goods Sold (COGS) is the total direct cost of producing the products a company actually sold during a specific accounting period. It includes raw materials, direct labor (factory workers), and manufacturing overhead (factory rent, equipment depreciation) — but explicitly excludes indirect costs like marketing, executive salaries, and corporate office rent. COGS is the single most critical line item on the income statement because Revenue minus COGS equals Gross Profit, which determines gross margin and directly impacts every profitability metric investors, lenders, and acquirers examine.

Inventory Valuation Methods & COGS Impact

The method you use to value inventory directly changes your reported COGS number, even if you sell the exact same products. GAAP allows three primary methods, each producing different tax and profitability outcomes.

Method COGS Effect (Rising Prices) Tax Impact Best For
FIFO (First-In, First-Out)Lower COGS (older, cheaper costs flow first)Higher taxes (higher reported profit)Companies wanting to maximize reported earnings for investors
LIFO (Last-In, First-Out)Higher COGS (newer, more expensive costs flow first)Lower taxes (lower reported profit)Companies wanting to minimize tax liability. Not allowed under IFRS.
Weighted AverageBlended COGS (average of all costs in the pool)Moderate tax impactCompanies with fungible, indistinguishable inventory (chemicals, grains)

Pro Tips & Common Accounting Mistakes

Do This

  • Only include costs directly tied to the production floor. Factory worker wages, raw lumber, injection molds, packaging materials, and factory electricity are all legitimate COGS. CEO salary, Google Ads spend, the corporate accountant's paycheck, and office rent are NOT COGS — they belong in SG&A (Selling, General & Administrative).
  • Reconcile physical inventory counts to book inventory. The formula assumes Ending Inventory is accurate. If you have theft (shrinkage), spoilage, or obsolescence that was never written down, your COGS will be understated and your Gross Margin will appear artificially high. Perform physical counts at minimum quarterly.

Avoid This

  • Don't confuse COGS with Total Expenses. COGS is only the top section of the income statement. SG&A, R&D, depreciation of non-production assets, and interest expense all appear below the Gross Profit line. Lumping everything into COGS inflates the cost-of-sales line and makes your Gross Margin appear catastrophically worse than it actually is.
  • Don't switch inventory methods mid-year without disclosure. Changing from FIFO to LIFO (or vice versa) mid-period violates the GAAP consistency principle and will trigger an audit restatement. If you must change, it requires formal disclosure in the footnotes of your financial statements and retroactive restatement of prior periods.

Frequently Asked Questions

Do service-based businesses have COGS?

Technically, pure service businesses (consulting firms, law practices) do not carry physical inventory, so they have no traditional "COGS." However, they often report "Cost of Revenue" or "Cost of Services," which includes the direct labor hours and subcontractor fees required to deliver the service. The economic logic is identical: direct costs tied to revenue generation sit above the Gross Profit line.

Why is COGS important for investors?

COGS determines Gross Margin (Revenue - COGS / Revenue), which is the most fundamental measure of a company's unit economics. A company with a 70% gross margin (like Apple) retains $0.70 of every dollar sold to cover overhead and generate profit. A company with a 20% gross margin (like a grocery chain) retains only $0.20. Tracking Gross Margin trend over time reveals whether pricing power is strengthening or eroding.

Does shipping cost go into COGS?

It depends on the direction. Inbound freight (cost of getting raw materials to your factory) is universally included in COGS because it's a direct cost of acquisition. Outbound freight (cost of shipping finished goods to customers) is debatable — some companies include it in COGS, others classify it as a selling expense in SG&A. GAAP allows both treatments but requires consistency and disclosure.

Related Calculators