Calqube

Cost of Goods Sold Calculator (COGS)

Cost of Goods Sold Calculator (COGS)

Calculate Cost of Goods Sold (COGS), Total Goods Available for Sale, and Gross Margin from inventory flows.

Total COGS
$114,000.00
Cost of goods sold
Goods Available
$152,000.00
Beg + Pur + Direct
Gross Profit
$71,000.00
Sales − COGS
Gross Margin
38.4%
Of revenue

Inventory-to-COGS Waterfall Breakdown

Beginning Inv.$42,000.00
+ Purchases$96,000.00
+ Labor/Freight$14,000.00
Goods Available$152,000.00
− Ending Inv.$38,000.00
COGS$114,000.00

COGS Accounting Schedule

Line ItemAmount ($)
Beginning Inventory$42,000.00
Inventory Purchases$96,000.00
Direct Labor & Freight-In$14,000.00
Total Goods Available for Sale$152,000.00
Less: Ending Inventory-$38,000.00
Cost of Goods Sold (COGS)$114,000.00

Cost of Goods Sold (COGS) & Inventory Accounting

Cost of Goods Sold isolates the direct inventory and production costs tied strictly to merchandise sold during an accounting period. Rather than expensing all inventory bought in a quarter, subtracting Ending Inventory shifts unsold units back onto the balance sheet and produces an accurate Gross Profit and Gross Margin.

COGS & Gross Profit Formulas

Goods Available: Beginning Inventory + Purchases + Direct Labor & Freight-In
COGS: Goods Available − Ending Inventory
Gross Margin %: ((Sales Revenue − COGS) ÷ Sales Revenue) × 100

Worked Example

  • • $42,000 beg. + $96,000 purchases + $14,000 labor/freight = $152,000.00
  • • Less Ending Inventory ($38,000.00) -> COGS: $114,000.00
  • • Total Sales Revenue: $185,000.00
  • • Gross Profit: $71,000.00 | Gross Margin: 38.4%

Frequently Asked Questions

Should outbound shipping to customers go into COGS?

No—inbound freight-in and customs duties to acquire inventory belong inside COGS, whereas outbound parcel shipping to end customers is generally recorded under fulfillment or selling expenses.

How does Ending Inventory affect Cost of Goods Sold?

Because Ending Inventory is subtracted from Total Goods Available for Sale, a higher ending stock balance reduces reported COGS and raises period Gross Profit.

What goes into Total Goods Available for Sale?

It equals Beginning Inventory carried over from the prior period plus Inventory Purchases and Direct Labor & Freight-In incurred during the period.

Want this calculator on your own website?

Get free iframe embed code with customizable light and dark theme support.

Related Calculators in Financial Calculators

AGI Calculator (Adjusted Gross Income)

Calculate Adjusted Gross Income (AGI) from all income sources minus HSA, IRA, student loan, and SE adjustments.

Open →

Amortization Calculator

Calculate complete loan amortization schedules, monthly installments, extra prepayment accelerations, and payoff milestones.

Open →

Annuity Calculator

Calculate future wealth accumulation, present discounted value, or scheduled fixed annuity payout withdrawals.

Open →

Annuity Payout Calculator

Calculate fixed length or fixed payment annuity payout schedules, withdrawal amounts, and total interest returns.

Open →