Home / Blog / Profit tracking

Profit tracking

COGS for Ecommerce Sellers: FIFO Explained with Examples

What cost of goods sold means for online sellers, how FIFO works when supplier prices change, and how to keep COGS accurate per order and per account.

By the Ecom Orderlytics team4 min read

COGS for Ecommerce Sellers: FIFO Explained with Examples – Ecom Orderlytics blog illustration
On this page
  1. What goes into COGS
  2. FIFO in one sentence
  3. A worked example
  4. Other methods you will see
  5. Keeping COGS accurate day to day
  6. How Ecom Orderlytics handles it
  7. Frequently asked questions

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

  1. Record the cost on each order, or update the SKU cost when a new batch arrives.
  2. Add inbound shipping per unit, not as one lump in the month it was paid.
  3. Recheck margins when a supplier changes price (see markup vs margin).
  4. 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.

See your real profit, account by account.Free 30-day trial with every feature. Keep your Google Sheets.
Start free trial

← All articles

Free 30-minute live demo available

See your real profit, account by account.

Start a 30-day free trial and we’ll set everything up with you, or book a live demo and see Ecom Orderlytics running on real numbers first.

  • Set up within one working day
  • No card needed for the trial
  • Your data stays yours

Video

Write a review

Tell other sellers how Ecom Orderlytics works for you. Reviews appear on the website after a quick check.

Your rating
0 / 1500
Upload your video or Short to YouTube, then paste its link here.
Use your Ecom Orderlytics login email to get the “Verified customer” badge.

Start your free trial

Two quick steps. It takes about a minute.

Step 1 of 2: your details
What would you like?
Plan
Enter your name.
Enter an email like name@example.com.
Enter your WhatsApp number with country code, like +92 300 1234567.
Choose your country.
Use at least 8 characters.You’ll sign in with this email and password at app.ecomorderlytics.com.
Free for 30 days. No payment details needed.

Book a free live demo

Pick a time that suits you, then tell us about your business.

Step 1 of 2: choose a day and time
Choose a day
Choose a day for your demo.
Choose a time (Pakistan time, GMT+5)

Choose a day first.

Choose a time for your demo.
Free, no obligation. We confirm your slot on WhatsApp.