What is COGS?
Cost of Goods Sold (COGS) represents the direct costs attributable to the products you sell. In accounting, COGS appears on your Profit & Loss statement and is deducted from revenue to calculate gross profit.
For e-commerce operators, COGS is more than an accounting line — it's the foundation of every profitability decision: how to price products, which products to advertise, what ROAS target to set, and which SKUs are worth keeping in your range.
COGS vs. Total Cost
COGS captures direct product costs only. Your total cost of sale also includes outbound shipping, payment processing fees, returns handling, and advertising — these are operating expenses, not COGS. Both matter for profitability; they just live in different parts of your P&L.
What to Include in COGS
The following costs are direct product costs and belong in your COGS calculation:
1. Product Purchase Price
The price you pay your supplier per unit, net of any trade discounts. If you buy in bulk and receive a volume discount, use the actual discounted price paid. If supplier prices vary by order, use a weighted average cost (WAC) or FIFO method.
2. Inbound Freight & Shipping to Warehouse
The cost of transporting goods from your supplier to your warehouse or fulfilment centre. This includes ocean freight, air freight, domestic haulage from port, and any inland delivery charges. Divide total freight cost by units received to get a per-unit figure.
3. Customs Duties & Import Taxes
Import duties (tariffs) applied at customs when goods enter your country. In the UK, typical duties range from 0% to 12% of the customs value depending on the commodity code. Always include these — for imported goods they are often the largest hidden cost.
4. Inbound Packaging Materials
Primary packaging that comes with the product (boxes, poly bags, blister packs) sourced from your supplier or produced to pack the product. Tertiary packaging for transit is also included here.
5. Quality Control & Inspection Costs
If you pay for pre-shipment inspections or quality audits (common for manufacturers using third-party QC firms), these are a direct cost of procuring sellable goods.
6. Manufacturing Labour (for own-manufactured goods)
If you manufacture your own products, direct labour costs — the wages of workers directly assembling or producing goods — form part of COGS. This does not include management, admin, or indirect staff.
What NOT to Include in COGS
The following are operating expenses, not COGS. Including them in COGS distorts your gross margin and makes it impossible to compare against industry benchmarks correctly.
- Outbound customer shipping — the cost of sending orders to customers
- Marketing & advertising spend — Google Ads, Meta, influencer fees
- Platform & marketplace fees — Shopify subscriptions, Amazon FBA fees, eBay commissions
- Payment processing fees — Stripe, PayPal, Klarna charges
- Returns handling costs — postage, restocking labour, write-offs
- Customer service costs — support staff wages, helpdesk software
- Warehouse rent & utilities (these are overheads, not direct COGS)
- Depreciation of equipment
3PL Fulfilment Fees Are Not COGS
Many brands using third-party logistics (3PL) providers mistakenly include pick-and-pack and storage fees in COGS. These are operating expenses. Only the cost of the goods themselves and inbound freight belong in COGS.
The COGS Formula
Accounting COGS Formula (P&L)
For your income statement, COGS is calculated as:
ACCOUNTING FORMULA
COGS = Opening Stock Value + Purchases at Cost − Closing Stock Value
Example: Opening stock £20,000 + Purchases £80,000 − Closing stock £25,000 = COGS £75,000
Per-Unit COGS Formula (for pricing & advertising)
For per-SKU profitability and setting advertising targets, you need a per-unit figure:
PER-UNIT FORMULA
Unit COGS = Supplier Cost + (Total Inbound Freight ÷ Units Received) + (Import Duties ÷ Units Received) + Packaging Cost per Unit
This gives you the true cost basis for each individual product unit before any operating expenses.
Worked Example
WORKED EXAMPLE — Bluetooth Speaker (500 units, imported from China)
Supplier cost: £8.50 per unit × 500 = £4,250
Ocean freight (FCL): £1,200 ÷ 500 units = £2.40 per unit
UK import duty (3.7% of customs value): £4,250 × 3.7% ÷ 500 = £0.31 per unit
Port handling & customs clearance: £180 ÷ 500 = £0.36 per unit
Packaging (branded box): £0.45 per unit
—
Unit COGS = £8.50 + £2.40 + £0.31 + £0.36 + £0.45 = £12.02
If this product sells for £34.99, the gross margin is: (£34.99 − £12.02) ÷ £34.99 = 65.6%
Many brands would have calculated this at £8.50 / £34.99 = 75.7% margin — a 10 percentage point overstatement.
How to Track COGS
Shopify
Shopify allows you to enter a "Cost per item" on each product variant. This feeds into Shopify's margin reports. However, Shopify only stores the product purchase price — it does not automatically factor in freight or duties. You need to calculate the true landed cost and enter that as your cost-per-item.
WooCommerce
WooCommerce's built-in reports do not include COGS tracking. You'll need a plugin such as WooCommerce Cost of Goods (SkyVerge) or integrate with accounting software that tracks stock costs (e.g., Xero with inventory enabled).
Spreadsheet Method
For smaller catalogues (under 200 SKUs), a product cost spreadsheet works well. Maintain columns for: SKU, supplier cost, freight allocation, duties, packaging, and calculated unit COGS. Update after every purchase order.
Accounting Software
Xero and QuickBooks both support inventory cost tracking using FIFO or weighted average cost methods. This is the most accurate approach for businesses with fluctuating supplier prices or exchange rate exposure.
GROW Platform Cost Entry
GROW Platform's COGS+ feature lets you enter full landed cost per SKU — including freight, duties, and packaging — and uses this to calculate the minimum viable ROAS for each product's Google Shopping campaign automatically.
COGS & Gross Profit
Gross profit is the first profitability line on your P&L and the most directly controlled by your COGS accuracy:
GROSS PROFIT FORMULA
Gross Profit = Revenue − COGS
Gross Margin % = (Revenue − COGS) ÷ Revenue × 100
Gross margin varies considerably by e-commerce category. Consumer electronics typically operates at 20–35% gross margin; apparel at 45–65%; health & beauty at 50–70%. Your gross margin must comfortably cover all operating expenses and leave a net profit.
Common COGS Mistakes
- Using supplier invoice price only — The most common error. Freight and duties can add 20–35% to a product's true cost.
- Not allocating freight per unit — Lumping all freight as a single overhead instead of dividing by units received distorts per-SKU profitability.
- Ignoring currency fluctuation — If you buy in USD or CNY and sell in GBP, exchange rate movements change your effective COGS. Review quarterly.
- Using RRP instead of actual paid price — Always use the price actually invoiced, net of discounts.
- Not updating COGS after price changes — Supplier price increases that aren't reflected in your cost data lead to margin erosion you won't notice until it's too late.
- Including outbound shipping in COGS — This inflates COGS and understates gross margin, making your business look less profitable than it is to buyers and investors.
Frequently Asked Questions
What is COGS in e-commerce?
COGS (Cost of Goods Sold) is the total direct cost of the products you sell. For e-commerce, this typically includes the product purchase price, inbound freight, customs duties, and any direct packaging costs. It does not include your marketing spend, platform fees, or outbound customer shipping.
What is the COGS formula?
COGS = Opening Stock Value + Purchases (at cost) − Closing Stock Value. For per-unit COGS: Unit COGS = Product Cost + Inbound Freight per Unit + Import Duties per Unit + Inbound Packaging per Unit.
Does COGS include shipping to the customer?
No. Outbound shipping (the cost of sending the order to the customer) is an operating expense, not COGS. COGS includes inbound freight — the cost of getting goods from your supplier to your warehouse.
How does COGS affect my Google Ads ROAS target?
Your minimum viable ROAS = Revenue ÷ (Revenue − COGS − Other Costs). A higher COGS means you need a higher ROAS to remain profitable. Underestimating COGS leads to ROAS targets that look like they're generating profit but aren't.
Should I use COGS or total landed cost for margin calculations?
Use landed cost (COGS + import duties + freight) for per-unit margin calculations. COGS in accounting terms matches your income statement, but landed cost gives you the true per-unit profitability picture needed for advertising decisions.
Next Steps
Accurate COGS is the first step to running profitable Google Shopping campaigns. Once you know your true per-unit cost, you can calculate the exact ROAS target each product needs — and stop wasting budget on products that look profitable but aren't.
Automate COGS-Driven Bidding with GROW Platform
GROW Platform's COGS+ feature stores your full landed cost per SKU and automatically calculates the minimum viable ROAS for every product. Your Google Shopping bids are set based on real profitability — not guesswork. Create an account →