Cost of goods sold (COGS): a guide for online sellers
Cost of goods sold explained for online sellers: the COGS formula, what to include and exclude, worked examples, and how COGS affects margin and tax.
By the SellSail team · Updated · 6 min read
Key takeaways
- Cost of goods sold (COGS) is the direct cost of the products you actually sold in a period.
- Formula: opening stock + purchases − closing stock.
- For online sellers it usually includes the product price and inbound delivery; marketplace fees and outbound postage are usually tracked separately.
- Accurate COGS gives you a true gross margin and the right taxable profit.
Cost of goods sold (COGS) is the direct cost of the products you actually sold in a period. The formula is opening stock + purchases − closing stock. For online sellers, COGS usually includes the price you paid for products and the delivery to get them to you. Marketplace fees and outbound postage are normally tracked as selling costs.
The COGS formula
COGS = opening stock + purchases − closing stock
| Line | Example |
|---|---|
| Opening stock (1 Oct) | £3,000 |
| Purchases in October | £5,000 |
| Closing stock (31 Oct) | −£2,500 |
| COGS for October | £5,500 |
COGS for dropshippers
If you hold no stock, COGS is simply the supplier cost of every order you sold in the period, plus any supplier delivery charges. Your supplier invoices or order history give you the figure.
What goes into COGS?
| Usually included | Usually excluded |
|---|---|
| Product purchase price | Marketplace commission |
| Inbound delivery to you | Outbound postage to customers (often separate) |
| Import duty | Advertising |
| Packaging that is part of the product | Software and subscriptions |
| Your own wages |
Some sellers include outbound postage in COGS. Either is fine as long as you are consistent.
Why COGS matters
- Gross margin: (revenue − COGS) ÷ revenue. See gross vs net profit margin.
- Pricing: your price must cover COGS plus every fee.
- Tax: COGS is an allowable expense, so it reduces your taxable profit (see the trading allowance guide).
Common mistakes
- Using purchases instead of COGS: buying a lot of stock in one month makes that month look like a loss.
- Forgetting inbound delivery and import duty.
- Not counting stock at period end.
- Ignoring damaged or unsellable stock, which should be written off.
From COGS to real profit per product
COGS gives you gross profit. To see what you actually keep, subtract marketplace fees, delivery, returns and VAT. The OnBuy fee calculator does this per product for OnBuy, and our guide to hidden costs of selling online lists what sellers often forget.