A return goes back into stock with the receiving date and expiry date of its original batch, not the date it came back. If it is booked in as a new batch, it goes to the end of the queue and ages on the shelf.
FIFO in inventory means "first in, first out": the oldest batch ships first. FEFO ships whatever expires first, and LIFO does the opposite of FIFO, dispatching the most recent batch. In Brazilian accounting, inventory costing uses PEPS (the local name for FIFO) or weighted average cost, and LIFO is not accepted.
The confusion starts because the three acronyms serve two different purposes. One is physical flow, the order in which a box leaves the shelf. The other is costing, the way you calculate what the goods sold actually cost. Mixing the two leads to expired product in the warehouse or a balance sheet your accountant has to redo.
FIFO stands for "first in, first out", known in Brazil as PEPS (primeiro a entrar, primeiro a sair). On the shelf, the batch that arrived in March leaves before the one that arrived in May. That way no product ages forgotten at the back of a location.
It is the default for almost anything without a short shelf life that can still become obsolete: electronics, seasonal clothing, parts with model revisions, printed packaging. A charger that sat idle for 18 months may have lost the connector standard the market now uses.
FIFO depends on two simple things. Each unit needs a visible receiving date, and the location layout has to make the oldest stock easy to pick. A warehouse layout with flow racks, where boxes go in at the back and come out at the front, solves much of this without relying on the picker's memory.
FEFO stands for "first expired, first out", known in Brazil as PVPS (primeiro que vence, primeiro que sai). The rule looks at the expiry date, not the receiving date. If the batch that arrived yesterday expires before the one that arrived a month ago, it ships first.
This happens more than you might think. Different suppliers send batches of different ages, and a return can come back into stock with a shorter shelf life than the new batch. In food, cosmetics, supplements and medicines, following only the receiving date creates waste.
For medicines, Brazil's health rules require receiving to record batch number, expiry date and quantity, and dispatch files to carry the batch and expiry date of every shipment. Source: Anvisa (Brazil's health regulatory agency), RDC No. 430/2020, articles 56 and 59, October 2026. That record is what makes FEFO workable, and the full topic is covered in the guide to pharmaceutical logistics.
A tip for anyone importing perishable goods into Brazil: agree a minimum remaining shelf life at shipment with your supplier. A batch that arrives with 40% of its life left may not leave enough time to sell.
LIFO stands for "last in, first out", known in Brazil as UEPS. The most recent batch leaves first.
In physical flow, it appears where there is no other way. A pile of sand or gravel is used from the top, and a container loaded through the door unloads first what went in last. Anvisa's own rule asks that vehicles and containers be loaded, where applicable, in the sequence "first in, last out", with the delivery order in mind. Source: Anvisa, RDC No. 430/2020, article 61, October 2026.
In accounting, the picture changes. Brazil's inventory accounting standard requires cost to be assigned by FIFO or by weighted average cost. Source: Accounting Pronouncements Committee (CPC), CPC 16 (R1), item 25, October 2026. For income tax purposes, closing inventory can be valued at average cost, at the cost of the most recently acquired goods or at selling price minus profit margin, which leaves LIFO out. Source: Decree No. 9,580/2018, article 307, Planalto, October 2026.
The costing method decides which purchase price goes into the cost of the sale and which stays in inventory. When costs rise, the difference shows up in profit.
Take a store that imported two batches of the same product. The first, 100 units, cost R$ 20 each (Brazilian reais). The second, also 100 units, cost R$ 26, because the exchange rate and freight rose between the two purchases. In the month, the store sold 120 units.
Method | Cost of goods sold | Closing inventory (80 units) | Accepted in Brazil |
FIFO (PEPS) | R$ 2,520 | R$ 2,080 | yes |
Weighted average | R$ 2,760 | R$ 1,840 | yes |
LIFO (UEPS) | R$ 3,000 | R$ 1,600 | no |
Under FIFO, the first 100 units leave at R$ 20 and another 20 at R$ 26. Under weighted average, all of them leave at R$ 23. LIFO would push the higher price into cost and cut the period's profit by R$ 480 compared with FIFO, which helps explain why the tax rules do not accept it.
For imported products, the cost in this calculation is not just the supplier's price. It includes non-recoverable import taxes, freight, insurance and handling directly tied to the purchase. Source: CPC 16 (R1), item 11, October 2026. Working out the landed cost of each batch is what keeps FIFO or average cost accurate.
Yes, and it is the most common combination. Physical flow follows the rule that protects the product: FIFO for what becomes obsolete, FEFO for what expires. The accounts use the method the company chose between FIFO and average cost, applied the same way to inventories of similar nature and use.
Choosing the accounting method is a decision for your accountant together with management. The operation's job is to make sure every receipt has the right cost, batch and date in the system.
It is more about discipline than technology. Four steps cover most cases:
If your inventory control still runs on a spreadsheet, add a batch column and an expiry column to each receiving line. A formatting rule that turns red whatever expires within 60 days already prevents the most common loss: the batch forgotten until it expires.
A return goes back into stock with the receiving date and expiry date of its original batch, not the date it came back. If it is booked in as a new batch, it goes to the end of the queue and ages on the shelf.
No. With few perishable items, clearly visible expiry labels and locations separated by batch are enough. A system starts to pay off when the number of active batches grows to the point where pickers cannot check the expiry date of every box.
FIFO, because a garment does not expire but loses value when the collection changes. Add a sales curve by size, so you are not left with broken size runs from the old batch.
Neither is better in every case. Average cost smooths out price and exchange rate swings between batches; FIFO keeps closing inventory closer to the current replacement price.
FIFO and FEFO work best when batches arrive regularly with batch and expiry paperwork in order. Smaller, more frequent replenishment with tracking for every piece reduces the risk of one batch ageing on the shelf while the next is still on its way.
To import into or export from Brazil regularly with business terms, open a DHL Express business account.