FEFO vs FIFO in dispensing medicines
FIFO dispenses from the batch that arrived first; FEFO dispenses from the batch that expires first. In a pharmacy the expiry date matters more than the arrival date, so FEFO means fewer medicines expiring on the shelf, and the practical way to apply it every time is to let the software pick the batch.

In any pharmacy the same medicine arrives in several deliveries, and each batch has a different expiry date. The question with every box sold is: which batch should go out? The answer separates a pharmacy that throws away expired stock every month from one that hardly ever does.
What is FIFO?
FIFO means “first in, first out”: you dispense from the oldest delivery. It works for many goods, but it assumes the oldest batch expires first, which is not always true for medicines.
The program really does this — download the trial and see it with your own items.
What is FEFO?
FEFO means “first expired, first out”: you dispense from the batch with the nearest expiry date, whenever it arrived. A delivery that came today can expire sooner than one that came two months ago, and FEFO sends today’s first.
| Comparison | FEFO | FIFO |
|---|---|---|
| Dispenses from | The earliest expiry | The oldest delivery |
| Needs | An expiry date per batch | An arrival date per batch |
| A new delivery with a nearer date | Goes out first | Waits behind the older one |
| Effect on waste | Less waste | More waste when dates differ |
Why FEFO suits pharmacies
In a pharmacy the expiry date decides the value of a box. Expired medicine cannot be sold and is a loss. With many distributors and batches, a late delivery can carry an earlier date. Dispensing by earliest expiry reduces what expires on the shelf.
Doing FEFO by hand is hard
Without software, the pharmacist must remember every batch’s date and pick the right one at a busy counter. That breaks on the first busy day, which is why the practical answer is to let the system choose.
- Every batch is recorded with its real expiry date on arrival.
- At the point of sale, the earliest-expiring batch is dispensed automatically.
- Expiry alerts show what is close to expiring early enough to act.
- With several branches, you see a medicine’s stock and expiry in each.
That is what Codezilo for pharmacies does. Download the trial and try it with your own items.