Skip to content
SellSail
Fees and profit

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

Calculator, pen and money on a desk

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

LineExample
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 includedUsually excluded
Product purchase priceMarketplace commission
Inbound delivery to youOutbound postage to customers (often separate)
Import dutyAdvertising
Packaging that is part of the productSoftware and subscriptions
Your own wages

Some sellers include outbound postage in COGS. Either is fine as long as you are consistent.

Why COGS matters

  1. Gross margin: (revenue − COGS) ÷ revenue. See gross vs net profit margin.
  2. Pricing: your price must cover COGS plus every fee.
  3. 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.

Frequently asked questions

What is cost of goods sold?
It is the direct cost of the goods you sold in a period: what you paid for the products and the cost of getting them to you. It does not include general running costs like software or advertising.
How do you calculate COGS?
Add your opening stock value to the stock you bought during the period, then subtract your closing stock value. Dropshippers who hold no stock can simply total the supplier cost of each order sold.
Are marketplace fees part of COGS?
Usually they are recorded as selling expenses rather than COGS, but practices vary. What matters most is being consistent and including them somewhere when you calculate net profit.
All articles

Keep reading

Set sail with SellSail

Start your 14-day free trial. No card needed, cancel any time.