Inventory

FEFO vs FIFO: how a pharmacy stops writing off stock it could have sold

Hemanth · · 8 min read

A batch that arrived last week can expire before one from March. First expiry, first out (FEFO) sells the nearest date first — and stops a pharmacy writing off stock.

Every pharmacy owner knows the feeling: a carton at the back of the shelf, dated last month, that nobody noticed until it was too late to sell. Most of that loss is not bad luck. It comes from the order in which stock leaves the shelf — and from a rule most shops follow without ever choosing it.

FEFO — first expiry, first out — means the batch with the nearest expiry date is sold first, whenever it arrived. It is the rule that stops a pharmacy writing off medicine it could have sold, and it works better than FIFO, which most shops use by default.

What is the difference between FIFO and FEFO?

FIFO — first in, first out — sells the stock that arrived first. It assumes that what came in first will expire first. For most goods that is close enough. For medicines it is wrong often enough to be expensive.

FEFO sorts by the date that actually matters: the expiry printed on the batch. The batch closest to expiring leaves the shelf first, regardless of when it was received.

Rule

What leaves the shelf first

Good for

Risk for a pharmacy

FIFO (first in, first out)

The batch received earliest

Goods with no expiry, or where every batch has the same shelf life

A newer delivery with an earlier expiry ages behind older stock

FEFO (first expiry, first out)

The batch with the nearest expiry date

Medicines, packaged food, dairy, cosmetics, pet food

Only works if every batch's expiry is recorded when it arrives

LIFO (last in, first out)

The batch received most recently

Bulk goods that do not date, like sand or cement

Old batches sit until they expire — the opposite of what a pharmacy needs

Why does FIFO fail in a pharmacy?

Because deliveries do not arrive in expiry order. A batch can sit in a distributor's godown for months before it reaches you, so today's delivery may carry an earlier expiry than the one you received in March. Different distributors, different manufacturers' production runs and returns put back into stock all break the "first in, first to expire" assumption.

Here is what that looks like for one product:

Batch

Received

Expires

Bottles

Batch A

10 March

June 2027

60

Batch B

4 October

January 2027

48

Batch B arrived seven months later but expires five months earlier. Under FIFO the counter sells Batch A first, and Batch B waits behind it. If the shop sells around 12 bottles a month, Batch B is still on the shelf when January comes: 24 bottles at ₹95 each is ₹2,280 written off on one product, in one outlet. Under FEFO, Batch B goes first, sells out by February, and nothing expires.

Multiply that across a few hundred batch-tracked lines and a pharmacy can lose a meaningful share of its margin to expiry every year — most of it avoidable. (The figures above are illustrative.)

What does a pharmacy need for FEFO to work?

FEFO is not a report you run at month end. It is a rule for which batch goes out next, and it can only be applied if the shop knows every batch's expiry date from the moment the stock arrives.

  • Record batch and expiry at receipt. Not "50 strips received" but "20 from batch A, expiring March; 30 from batch B, expiring June". This is done on the goods receipt, against the purchase order the goods were ordered on.
  • Keep each batch separate in stock. Two batches of the same medicine are two stock positions, each with its own expiry date and printed MRP.
  • Arrange the shelf to match. The nearest-expiry batch goes in front, where the counter reaches first.
  • Look ahead, not back. Review what expires in the next 90 days every week, not what already expired last month.

Shops that do not capture expiry at receipt cannot switch to FEFO later without a full recount of every batch on the shelf, because the information was never written down.

A simple near-expiry routine

FEFO decides the order of sale. A near-expiry routine catches the batches that will not sell in time even in the right order. Once a week, list batches by days to expiry and act on each band:

Days to expiry

What to do

90 days or more

Nothing beyond FEFO — keep it in front of newer batches.

60 to 90 days

Check the sales rate. If it will not sell in time, move it to an outlet that sells more of it, or stop reordering until it clears.

30 to 60 days

Ask the distributor about a return or replacement on their expiry terms, or sell it below MRP where that makes sense.

Under 30 days

Pull it from sale before the date, raise the return, and record the write-off against the batch.

Return terms vary by distributor and manufacturer, so agree them when you set up the account, not when the stock is about to expire. And never sell past the date: selling a medicine after its expiry is not permitted under India's drug rules — see the Central Drugs Standard Control Organisation for the regulations.

What changes once FEFO is running

  • Fewer write-offs. Near-expiry stock is seen early enough to sell, move, discount or return.
  • Cleaner returns. Every return to a distributor names the exact batch and quantity.
  • Waste you can explain. When something does expire, the record shows which batch, at which outlet, and why — so it becomes a number you can work on instead of one you accept.
  • Easier recalls. When a manufacturer recalls a batch, you can see at once where that batch is and how much of it is left.

How VAP manages batches and expiry

FEFO is a habit at the shelf. What makes it reliable is knowing, for every product, which batches you hold, where they are and when each one expires. That is the part VAP keeps for you.

Every batch recorded when it arrives

When a delivery comes in, staff record it on a goods receipt — usually against the purchase order it was ordered on. On the receipt's Breakdown tab, each batch is added with its lot number, its expiry date, its printed MRP per unit and, if you have it, its manufacturing date. The expiry date is required, and it has to fall after the manufacturing date, so a batch cannot go into stock without one. Each batch is then placed in the storage location that received it.

Stock you already hold when you start on VAP goes in the same way, as opening stock: every batch with its own lot number and expiry date. See how purchasing captures batches at the door.

The nearest expiry, first on the list

Every product has a Lots tab listing its batches with the soonest expiry at the top, each with its manufacturing date, expiry date, how much is in stock and how much is available. Each batch carries a status — Fresh, Expiring Soon or Expired — so the batch that should go to the front of the shelf is the first one staff see.

The Quants tab shows where each batch physically sits — which location, how much — and can be filtered by location or by lot number. The VAP mobile app shows the same batches, with their expiry dates and quantities by location, on the shop floor.

Expiry alerts and reports

VAP flags batches as they approach their expiry date and reports what is expiring across your products and outlets, so the weekly near-expiry review starts from a list of what needs attention rather than a walk along the shelves.

Supplier returns and recalls

A near-expiry batch your distributor will take back can be returned against that exact batch, so the return names the lot and quantity the supplier needs to see. When a manufacturer recalls a batch, VAP shows every unit of it you still hold and where it is, so it can be pulled from sale at once.

Moving a batch to where it will sell

When one outlet will not sell a batch in time and another sells more of it, the batch can be transferred between them. It arrives with its lot number, expiry date and cost intact, so FEFO carries on at the other end.

Expired stock written off by batch

When a batch does expire, it is written off with a stock adjustment of type Expired against that exact batch — and the same for stock that is damaged, wasted or stolen. VAP records the quantity, the reason and the value written off, and every movement stays in the product's Movements history. Over time that shows which products and which outlets lose stock to expiry.

Prices kept within the printed MRP

Each batch keeps the MRP printed on it. A listing tied to a batch's MRP cannot be priced above it — VAP refuses the price with an "Above MRP" message — so a revised MRP on a new batch does not lead to overcharging on the old one. More on that in one price per product is why your margin does not add up.

Your FEFO routine, and where it lives in VAP

Step

Where it happens in VAP

Record batch and expiry when stock arrives

Goods receipt → Breakdown → Add Lot (lot number, expiry date, MRP)

Record the batches you already hold

Stock adjustment → Opening Stock

Put the nearest expiry in front

The product's Lots tab, soonest expiry first

Weekly near-expiry review

Expiry alerts and the expiring-stock report

Move a batch to a busier outlet

Stock transfer, keeping the batch and its expiry

Return a near-expiry batch to the distributor

Supplier return, against that batch

Find every unit of a recalled batch

The Quants tab, filtered by lot

Pull and write off an expired batch

Stock adjustment → Expired, against that batch

See batch and expiry tracking and how VAP is set up for pharmacies — or talk to us about your outlets.

FEFO and FIFO: common questions

Is FEFO the same as FIFO?

No. FIFO sells what arrived first; FEFO sells what expires first. They agree only when every delivery carries a later expiry than the one before it — which, in a pharmacy, it often does not.

Do I need software to use FEFO?

Not for a handful of products: a shelf arranged by expiry and a weekly check will do. Beyond a few dozen batch-tracked lines across more than one outlet, keeping every batch and date straight by hand is where it breaks down.

Does FEFO apply to products other than medicines?

Yes — anything with a printed expiry: packaged food, dairy, cosmetics, pet food and supplements all benefit from the same rule.

Can I sell near-expiry stock below MRP?

Yes. MRP is the maximum retail price, not a fixed one, so a near-expiry batch can be sold below it. It cannot be sold above it, or after its expiry date.

Want to see how batches, expiry and FEFO would work across your outlets? Talk to us.

Get started

See it shaped like your business.

Tell us what you sell and where you sell it. We will walk you through a system set up like yours: your trade, your number of outlets, your registered firms.