All articles

Published November 11, 2026 · Agus Yulyastrawan, Founder Seawise Studio

FIFO and FEFO: The Difference and When to Use Each

What FIFO and FEFO mean, an example where they pick different goods, which businesses need FEFO, and how to run it without leaks.

FIFO and FEFO: The Difference and When to Use Each

Two cartons of the same product arrive in the same month, but their expiry dates are three months apart. If the one taken first is the one that arrived first, the carton with the nearer expiry can sit at the back of the shelf until it is too late. That is the difference between FIFO and FEFO, two rules that decide which goods leave the storeroom first. This article covers what each means, an example of how they differ, when to use which, and what it takes for FEFO to actually work on the floor.

What FIFO and FEFO mean

FIFO (First In, First Out) means goods that arrive first leave first. The order follows the date received.

FEFO (First Expired, First Out) means goods that expire first leave first. The order follows the expiry date, whenever the goods arrived.

For goods with no expiry date, such as shoes, tools, or spare parts, FIFO is enough. For goods with a shelf life, FIFO and FEFO often produce the same order, because goods that arrive first usually expire first. The problem lies in the word "usually".

Example: when FIFO and FEFO pick different goods

The example below uses illustrative figures. A shop receives two lots of the same product:

Lot Date received Expiry Quantity
Lot A 2 March December 40
Lot B 16 March September 40

Lot B arrived later, yet expires three months sooner. This happens often when a distributor ships old remaining stock, or when goods are bought from two different suppliers.

With FIFO, Lot A goes out first because it arrived first. If sales are slow, Lot B is only touched once Lot A runs out, and that may well be after September. With FEFO, Lot B goes out first, and both lots sell before they expire.

The difference is not only 40 items thrown away. In pharmacies, cosmetics, and food, expired goods that reach a customer are a safety and trust problem.

When to use FIFO and when FEFO

Type of business Suitable rule Why
Pharmacies and clinics FEFO Medicines have expiry dates and are tracked by batch
Cosmetics makers and shops FEFO Raw materials and finished products have a shelf life
Restaurants and cafes FEFO for ingredients, FIFO for durables Fresh ingredients decide quality and safety
Grocery shops and minimarkets FEFO for food and drink Many items with different expiry dates on one shelf
Clothing, tools, spare parts FIFO No expiry date; what matters is that goods do not age in storage

The practical rule: if your goods have a printed expiry date, use FEFO.

FIFO in the storeroom and FIFO in the accounts are different

The term FIFO is also used in accounting, with a different meaning. In financial statements, FIFO is a method of calculating cost of goods sold: goods sold are assumed to carry the oldest purchase price. The other common method is weighted average. The inventory accounting standard used in Indonesia, which follows IFRS, does not permit LIFO.

What this article covers is the physical order in which goods leave the shelf. A storeroom can issue goods by FEFO while the accounts use the average method. More precise systems even calculate cost from the lots actually consumed, as covered in the article on manufacturing ERP for small factories.

What it takes for FEFO to actually work

FEFO sounds simple, but it fails on the floor if any of these is missing:

  • Expiry dates recorded when goods are received, per lot, not per product. If the date is only looked up when goods are about to be picked, it is already too late.
  • Every lot physically identifiable. Lot labels, colour stickers per expiry month, or a consistent shelf layout.
  • Shelves arranged in issue order. Nearest expiry at the front or on the picking side, new goods at the back.
  • Staff know which lot to pick, rather than guessing from where the goods sit.
  • Warnings before expiry. Goods approaching their date need to surface months in advance, so they can still be sold, promoted, or returned to the supplier.
  • Returns and partly used lots stay recorded, so the remainder of a lot does not drop out of sight.

Why manual FEFO leaks easily

With paper or spreadsheets, FEFO depends on the discipline of every person at every pick. Once the storeroom is busy, staff take whatever is nearest to hand, not whatever is nearest to expiry. New goods get stacked at the front because it is easier. Expiry dates in the spreadsheet are never updated after part of a lot is sold. The result only shows up at the stock count, when expired goods are found at the back of the shelf.

An app that keeps stock by lot can close that gap: whenever goods are picked, the system points straight to the lot with the nearest expiry, and goods approaching their date appear on a warning list without anyone having to look for them.

Examples of systems that apply FEFO

  • Industry Management for factories uses FEFO stock and expiry control for raw materials, then calculates cost per batch from the prices of the lots actually consumed.
  • Sehatera for pharmacies tracks medicine batches and gives early warnings before expiry. Other features a pharmacy needs are covered in the article on pharmacy apps.

Frequently asked questions

Is FEFO always better than FIFO?

For goods with an expiry date, yes. For goods without one, FEFO cannot be applied and FIFO is the right rule. Many businesses use both: FEFO for goods with a shelf life, FIFO for the rest.

Can FEFO be run in Excel?

Yes for a small number of products and lots, as long as every lot has its own row and the quantity is updated at every pick. Once there are dozens of lots and picking happens daily, the risk of wrong picks and stale data rises sharply.

What if customers pick from the shelf themselves?

In self-service shops, FEFO runs through shelf layout: goods with the nearest expiry are placed at the front during restocking, and new goods go in from the back. This is often called stock rotation.

What should happen to goods close to expiry?

The options depend on the agreement with the supplier and the type of goods: return them, sell them on promotion, or move them to a branch that sells faster. What matters is that they surface early enough for these options to still be open.

Conclusion

FIFO follows the date received, FEFO follows the expiry date. For goods with a shelf life, FEFO is what protects against waste and expired goods reaching customers. For it to work, expiry dates must be recorded per lot from the moment goods are received, and staff must know which lot to pick without guessing.

Still finding expired goods at the back of the shelf? See custom app development in Bali from Seawise, or tell us how your storeroom works on the contact page.