First in, first out; first expiry, first out
What is FIFO and FEFO?
FIFO and FEFO explained: how they differ, when each applies, their role in stock valuation and picking, a worked example, and how an ERP enforces them.
FIFO and FEFO: definition
FIFO issues the oldest stock first, while FEFO issues the stock that expires first, regardless of when it arrived.
Explained
FIFO and FEFO explained
FIFO and FEFO are rules for which stock to use or send first. FIFO, first in first out, picks the oldest stock received. FEFO, first expiry first out, picks the lot with the nearest expiry date, which matters for medicines, food, chemicals and anything with a shelf life.
FIFO is also a cost formula for valuing stock: under accounting standards in India, FIFO and weighted average cost are the permitted formulas for interchangeable items. Picking rules and valuation rules are separate choices, though many businesses use FIFO for both.
Example
A worked example
A pharma distributor holds two batches of a syrup: batch A received in March, expiring in December, and batch B received in January, expiring in October.
FIFO would pick batch B because it arrived first; FEFO also picks batch B because it expires first. A third batch received later but expiring sooner would jump the queue under FEFO.
In the ERP
How FIFO and FEFO appears in an ERP
In an ERP, picking rules are set per item. Dispatch screens suggest lots in FIFO or FEFO order and warn when someone picks out of sequence. Expiry reports list lots nearing expiry so they can be sold or returned in time.
In AI-ERP this sits in the Barcode and batch tracking module.
Free 30-minute consulting call
Want to see this in a working ERP?
Book a free call and the AI-ERP team will show you how it would work with your own data.
Further reading
All articles- FEFO and near-expiry control for pharma and foodHow pharma and food businesses apply FEFO in warehouses and dispatch, set near-expiry alerts by customer requirement, and handle returns and expiry claims.
- Stock valuation methods allowed in India and how ERP applies themWhich stock valuation methods AS 2 and Ind AS 2 allow, why LIFO is not permitted, valuing finished goods and work in progress, and how an ERP applies them.


