On this page
COGS (cost of goods sold) is what the products you sold actually cost you. Get it wrong and every profit number after it is wrong too. The tricky part is that supplier prices change, so the same SKU can cost $4.10 in one batch and $4.65 in the next. FIFO is the usual way to handle that.
What goes into COGS
| Include | Usually tracked separately |
|---|---|
| Product cost from the supplier | Marketplace fees |
| Inbound shipping and freight | Advertising |
| Import duties | Software and subscriptions |
| Prep, labelling, packaging | Staff and VA pay |
FIFO in one sentence
First in, first out: the first units you bought are treated as the first units you sold.
A worked example
You buy two batches of the same item:
| Batch | Units | Cost per unit |
|---|---|---|
| March | 100 | $4.10 |
| May | 100 | $4.65 |
In June you sell 150 units. Under FIFO:
- The first 100 sold use the March cost: 100 × $4.10 = $410
- The next 50 use the May cost: 50 × $4.65 = $232.50
- COGS for June = $642.50, and 50 units at $4.65 are still in stock.
If you had used only the latest price, June's COGS would be $697.50, and your profit would look $55 lower than it really was.
Other methods you will see
- Average cost: every unit costs the average of all batches. Simple, smooths out swings.
- Fixed cost per SKU: one number you update now and then. Fine when prices rarely change.
- Per-order cost: common in dropshipping, where you record what you paid for each order.
Keeping COGS accurate day to day
- Record the cost on each order, or update the SKU cost when a new batch arrives.
- Add inbound shipping per unit, not as one lump in the month it was paid.
- Recheck margins when a supplier changes price (see markup vs margin).
- Review profit per account monthly so a cost change is caught early.
How Ecom Orderlytics handles it
Each order in your sheet carries its own sourcing, shipping and prep cost, so profit uses what that order really cost, which suits dropshippers and VA teams. See profit tracking for every account or open the live demo.
Frequently asked questions
What is included in COGS for an online seller?
The product cost plus the costs to get it ready to sell: inbound shipping, duties, and prep or packaging. Marketplace fees and ads are usually tracked separately as selling expenses.
Is FIFO required for ecommerce?
Not always. FIFO is the most common method and is accepted in most countries, but check with your accountant which method your tax rules allow.
What if I dropship and never hold stock?
Then COGS is simply what you paid the supplier for each order, plus any shipping you paid. FIFO matters when you buy batches at different prices.