Sarah Chen
Manufacturing Operations Consultant | 8 Years
Sarah specializes in production workflow optimization and inventory systems for electronics and contract manufacturers. She has helped 30+ manufacturing teams transition off spreadsheets and into modern inventory systems.
Two manufacturers buy the exact same raw material, at the exact same prices, on the exact same days. One reports a materially different cost of goods sold than the other — not because anything about their operations differs, but because they use different inventory valuation methods. That's not a rounding error. It's the entire point of this article: FIFO and average cost are both legitimate ways to answer "what did the inventory we just used actually cost," and they can give genuinely different answers from identical purchase history.
FIFO, in Plain English
FIFO stands for first-in, first-out. The idea is straightforward: the first units you bought are the first units you're considered to consume, cost-wise. If you bought pectin in January at one price and again in March at a higher price, FIFO says your April production run draws from the January lot's cost first, and only moves on to the March lot's cost once the January quantity is used up.
This isn't just an accounting convention — for a lot of manufacturers it also mirrors physical reality. Perishable raw materials genuinely should be used oldest-first to avoid spoilage, so FIFO costing and FIFO physical rotation line up naturally. Each purchase lot carries its own real, paid cost, and consumption draws down the oldest lot first, in both the physical sense and the accounting sense.
Average Cost, in Plain English
Average cost — specifically weighted-average cost — takes a different approach. Instead of tracking individual lots and their individual prices, it blends every unit of a material you're currently holding into one running average cost per unit. Every new purchase updates that average; every unit consumed is costed at whatever the current average happens to be, regardless of which physical batch it came from.
The appeal is smoothing. If your material prices bounce around — up one month, down the next — average cost dampens the swings instead of having your COGS jump around with every individual purchase price. It's also simpler to reason about: one number per material, updated as you go, rather than a queue of lots each with their own price.
A Worked Example
Keep the numbers simple. Say you buy pectin twice:
- Purchase 1: 100 kg at $10/kg = $1,000
- Purchase 2: 100 kg at $12/kg = $1,200
- Total on hand: 200 kg, total cost $2,200
Now you consume 150 kg in production. Here's how the two methods cost that consumption differently:
- FIFO: the first 100 kg consumed are costed from Purchase 1 at $10/kg, and the next 50 kg are costed from Purchase 2 at $12/kg. COGS = (100 × $10) + (50 × $12) = $1,000 + $600 = $1,600.
- Average cost: the weighted average is $2,200 ÷ 200 kg = $11/kg. COGS = 150 × $11 = $1,650.
That's a $50 difference in COGS from the exact same 150 kg of material — not a rounding artifact, a real structural difference between the two methods. It also affects what's left on the books. Under FIFO, the remaining 50 kg is valued at the most recent purchase price: 50 × $12 = $600. Under average cost, the remaining 50 kg is valued at the blended rate: 50 × $11 = $550. Same physical inventory, two different valuations, because the methods answer "which dollars did we just spend" differently.
In a rising-price environment like this example, FIFO produces lower COGS (and therefore higher reported margin) than average cost, because it costs out the cheaper, older inventory first while the more expensive recent purchase sits on the books as remaining value. That relationship flips if prices are falling instead of rising.
What Happens When Material Costs Swing
The pectin example uses two purchases. Stretch it to three purchases at steadily rising prices and the gap between the methods widens — this is the scenario manufacturers actually live through when a commodity input inflates over a quarter.
Say you buy soy wax three times as the market climbs:
- Purchase 1: 500 lb at $2.00/lb = $1,000
- Purchase 2: 500 lb at $2.40/lb = $1,200
- Purchase 3: 500 lb at $2.80/lb = $1,400
- Total on hand: 1,500 lb, total cost $3,600
Production then consumes 800 lb. Side by side:
- FIFO COGS: the first 500 lb come from Purchase 1 at $2.00, the next 300 lb from Purchase 2 at $2.40. COGS = (500 × $2.00) + (300 × $2.40) = $1,000 + $720 = $1,720.
- FIFO ending inventory: the remaining 200 lb of Purchase 2 at $2.40 plus all 500 lb of Purchase 3 at $2.80 = $480 + $1,400 = $1,880.
- Weighted average COGS: the blended rate is $3,600 ÷ 1,500 lb = $2.40/lb. COGS = 800 × $2.40 = $1,920.
- Weighted average ending inventory: 700 lb × $2.40 = $1,680.
Both methods account for the same $3,600 — FIFO splits it $1,720 COGS / $1,880 inventory, weighted average splits it $1,920 / $1,680. Check the totals: $1,720 + $1,880 = $3,600, and $1,920 + $1,680 = $3,600. But FIFO reports $200 lower COGS on this one consumption, and values the wax still on the shelf $200 higher — because the units left over are the expensive recent ones.
The takeaway for volatile costs: FIFO tells you what the consumed material actually cost; weighted average tells you what your material costs are trending toward. When prices swing hard, FIFO keeps quoting and margin analysis honest per batch — the batch made from $2.00 wax genuinely cost less than the one made from $2.80 wax, and FIFO shows that. Weighted average smooths the swings, which reads as stability but can lag reality: in a sustained run-up it under-costs current production (the $2.40 blended rate is already below the $2.80 you'd pay to replace the wax today), flattering margins right when you should be repricing. If your input costs are volatile and you price off margin, prefer FIFO — and re-quote off the newest lot cost, not the blended history.
When FIFO Fits
FIFO tends to be the better fit in a few recurring situations. Perishable or lot-tracked materials are the clearest case — if your physical process already requires using the oldest stock first to avoid spoilage or expiry, FIFO costing simply mirrors what's already happening on the floor, so your accounting and your physical reality tell the same story instead of two different ones. Price-inflation environments are the second case: if your raw material costs are trending upward over time, FIFO gives you a costing method that reflects what you actually paid for the specific material you consumed, rather than blending in future, pricier purchases before you've made them. And for manufacturers who need a clean tie between financial records and physical lot traceability — food, cosmetics, anything regulated — FIFO keeps the cost record and the physical batch record pointing at the same thing, which simplifies audits and recalls considerably.
When Average Cost Fits
Average cost tends to fit better for commodity materials where prices bounce around without a clear trend and where physical lot identity doesn't matter much — metal stock, generic packaging materials, anything you buy in a way where "which specific batch is this" isn't operationally meaningful. It also appeals to teams who prefer the simplicity of one running number per material over managing a queue of lot-level costs, particularly in operations without strict lot-traceability requirements driving the decision from the compliance side.
Neither method is universally "more correct." They're different lenses on the same underlying purchase history, and the right one depends on how your materials actually move and what your reporting needs to reflect.
A Note on Tax and GAAP Treatment
Valuation method choice can have real tax and financial reporting consequences, and the rules around switching methods, especially for tax purposes, vary by jurisdiction and can be restrictive once you've picked one. This article isn't tax advice — talk to your accountant before choosing or changing a valuation method for your books, especially if you're weighing the decision against tax treatment rather than just internal reporting clarity.
How Nstock Handles It
Nstock's lot tracking is built around FIFO consumption by default — when production draws on raw materials, it pulls from the oldest lot first, at that lot's actual purchase price, so your cost data and your physical lot rotation stay aligned automatically. For manufacturers who need to see the picture from an average-cost perspective as well — for reporting, budgeting, or comparison purposes — valuation reporting supports both perspectives on the same underlying inventory data, so you're not locked into one lens if your accountant wants the other.
For manufacturers running multi-level BOMs, this matters even more, since valuation method choice compounds through every level of the cost rollup — an intermediate product's cost depends on how its own raw materials were valued, and that cost then feeds into whatever finished good references it.
Frequently Asked Questions
Does FIFO require physically using the oldest stock first?
No — FIFO is an accounting costing method, not a physical handling rule, so in principle you could use FIFO costing while pulling stock in any physical order. In practice, though, for perishable or lot-tracked materials the two should match: using the oldest physical stock first is good practice regardless of costing method, and when they align, your cost records and your physical reality tell the same story.
Which method gives a lower COGS?
It depends entirely on price direction. When prices are rising, FIFO produces lower COGS than average cost, because it costs out the older, cheaper purchases first. When prices are falling, that relationship reverses — FIFO produces higher COGS than average cost in a deflationary environment.
Can I switch valuation methods later?
Talk to your accountant before switching — consistency matters both for internal comparability and for tax and reporting purposes, and switching methods, particularly for tax filings, can carry restrictions or reporting requirements depending on your jurisdiction. For general costing terminology and definitions, see the glossary.



