What is COGS?
Cost of Goods Sold (COGS) is the cost of the products you sold during a period. For a product brand, that starts with landed cost: the supplier price plus the inbound freight, duties and tariffs, customs brokerage and receiving fees it takes to get each unit into your warehouse.
COGS is subtracted from revenue to calculate gross profit. It excludes operating expenses like ad spend, salaries, software and rent, which come out of gross profit.
Full guide → How to Calculate COGS: Formula and Ecommerce Example
What Goes Into COGS for a Product Brand
Landed product cost comes first. Under US GAAP the supplier price, freight, duties and fees are carried in inventory and move into COGS only when the unit sells. Write-downs for damaged, expired or obsolete stock are usually recorded in COGS too. Many brands also include outbound shipping, packaging, pick and pack fees and payment processing. That is a policy choice, and either treatment works if applied consistently.
Why COGS Matters
COGS determines gross margin, the first test of whether a product's price covers its cost. If COGS is understated, every margin below it is overstated, and you may be scaling ad spend on SKUs that lose money. Accurate COGS by SKU and channel shows which products deserve the next purchase order.
How to Calculate COGS Step by Step
Step 1: Value inventory at landed cost. Every unit on hand carries its share of the freight, duty and fees on the purchase order it arrived on.
Step 2: Apply the inventory formula. Beginning inventory plus purchases received during the period, minus ending inventory.
- Beginning inventory: $180,000
- Purchases received at landed cost: $160,000
- Ending inventory: $190,000
- Product COGS: $150,000
Step 3: Add the costs your policy includes.
- Outbound shipping: $38,000
- Packaging materials: $8,000
- Fulfillment (pick, pack, storage): $22,000
- Payment processing: $9,500
- Total COGS: $227,500
Step 4: Calculate gross profit.
- Revenue: $500,000
- COGS: $227,500
- Gross Profit: $272,500
- Gross Margin: 54.5%
Step 5: Keep categorization consistent. Set up your chart of accounts with a clear COGS section and use it the same way every month.
Common mistakes brands make:
- Booking inventory purchases straight to COGS when paid (the cost belongs in inventory until the units sell)
- Leaving freight and duties out of product cost, which overstates gross margin per SKU
- Forgetting stock at third-party warehouses and Amazon fulfillment centers in the ending count
- Inconsistent categorization month to month (makes trend analysis useless)
COGS in Ecommerce
When your policy includes fulfillment and fees, the same unit can carry different COGS by channel. An Amazon FBA order carries FBA fulfillment fees, a Shopify order carries your 3PL's pick and pack plus payment processing, and a wholesale order ships by the case. Track COGS by channel as well as by SKU before comparing channel margins.
Formula
COGS = Beginning Inventory + Purchases - Ending Inventory
Gross Profit = Revenue - COGS
Gross Margin % = (Revenue - COGS) ÷ Revenue × 100
Example
Monthly figures for a brand, all inventory at landed cost:
- Beginning inventory: $120,000
- Purchases received: $80,000
- Ending inventory: $110,000
COGS = $120,000 + $80,000 - $110,000 = $90,000
If revenue is $200,000:
Gross Profit = $110,000
Gross Margin = 55%
General education only, not legal, tax or investment advice; how a term applies to your brand depends on your own documents and advisers.