Calculate profit

COGS for Ecommerce: How to Calculate Cost of Goods Sold

Cost of goods sold (COGS) is the direct cost of the products you sell. For ecommerce, use landed cost per unit: the product price plus freight, duties, inspection and prep, divided by the units in the shipment. Accurate COGS is the foundation of every margin and profit calculation.
Last updated UABy Usama Afzal

Landed cost example

Batch costValue
Supplier invoice (500 units)$2,500
Freight$400
Duties$150
Inspection & prep$100
Total$3,150
Landed cost per unit$6.30

What is not COGS

Platform fees, advertising and shipping to customers are selling costs, not COGS. Track them separately but include them in profit per order.

Keep it current

Freight and supplier prices change. Recalculate landed cost for every new batch and update your profit calculators.

Steps

  1. Add the supplier invoice for the batch
  2. Add freight, duties, inspection and prep
  3. Divide by the number of units
  4. Use this landed cost in your calculators

FAQ

Should I include packaging in COGS?

Product packaging that ships with every unit is often included. Be consistent and make sure it's counted once.

Is shipping to the customer part of COGS?

No. Shipping to customers is a selling cost. Freight to bring stock to you is part of landed cost and belongs in COGS.

How do I work out COGS for a bundle?

Add the landed cost of each item in the bundle, then divide by the number of bundles if you buy in bulk.

Related guides