For any company that makes or sells physical products, inventory is often the largest asset on the balance sheet and cost of goods sold (COGS) is the largest expense on the income statement. The costing method you choose decides how purchase and production costs move from one to the other. When prices are stable, the choice barely matters. When costs rise or fall, it can change reported margins, taxable income and the value of what sits on your shelves.
This article compares the three most common cost flow assumptions used by US companies, FIFO, LIFO and weighted average, and walks through a single example so you can see the differences side by side. It also covers what to check in your inventory or ERP software before you commit to a method, since the system you use can shape which choices are practical.
Cost flow is an assumption, not a physical rule
A costing method is an accounting assumption about which costs are attached to the units you sell. It does not have to match how goods physically move. A grocer rotates stock so the oldest milk leaves first, but a hardware distributor with bins of identical bolts has no idea which bolt came from which shipment. Accounting standards let companies choose a reasonable method and apply it consistently.
A fourth approach, specific identification, tracks the actual cost of each unit. It is practical for high-value, serialized items such as vehicles, machinery or jewelry, but not for large volumes of interchangeable goods.
The three methods
FIFO (first in, first out)
FIFO assumes the oldest costs are sold first. Ending inventory therefore reflects the most recent costs, which usually makes the balance sheet a closer approximation of current replacement value. In a period of rising costs, FIFO produces lower COGS and higher reported profit.
LIFO (last in, first out)
LIFO assumes the newest costs are sold first. COGS reflects recent costs, so it matches current revenue with current costs. In a period of rising costs, LIFO produces higher COGS, lower reported profit and lower taxable income. The trade-off is that ending inventory can be carried at old costs that may be far below current value.
Weighted average
Weighted average blends all costs together. Under a periodic system, you divide total cost of goods available by total units available. Under a perpetual system, the average is recalculated after each purchase (often called moving average). The result sits between FIFO and LIFO and smooths out price swings.
A worked example
Consider a hypothetical manufacturer that buys a component during a quarter of rising prices:
| Date | Activity | Units | Unit cost | Total cost |
|---|---|---|---|---|
| Jan 1 | Beginning inventory | 100 | $10.00 | $1,000 |
| Feb 10 | Purchase | 200 | $11.00 | $2,200 |
| Mar 15 | Purchase | 100 | $13.00 | $1,300 |
| Goods available | 400 | $4,500 |
During the quarter, the company sells 250 units at $20 each, for revenue of $5,000. Using a periodic calculation for simplicity:
- FIFO COGS: 100 units at $10 plus 150 units at $11 = $1,000 + $1,650 = $2,650. Ending inventory: 50 at $11 plus 100 at $13 = $1,850.
- LIFO COGS: 100 units at $13 plus 150 units at $11 = $1,300 + $1,650 = $2,950. Ending inventory: 50 at $11 plus 100 at $10 = $1,550.
- Weighted average: $4,500 / 400 = $11.25 per unit. COGS: 250 x $11.25 = $2,812.50. Ending inventory: 150 x $11.25 = $1,687.50.
| Result | FIFO | Weighted average | LIFO |
|---|---|---|---|
| Revenue | $5,000 | $5,000 | $5,000 |
| COGS | $2,650 | $2,812.50 | $2,950 |
| Gross profit | $2,350 | $2,187.50 | $2,050 |
| Gross margin | 47.0% | 43.8% | 41.0% |
| Ending inventory | $1,850 | $1,687.50 | $1,550 |
Notice that COGS plus ending inventory equals $4,500 under every method. The method does not change total cost; it changes when that cost hits the income statement. If prices were falling instead of rising, the ranking would reverse.
Rules and constraints to know
- LIFO is permitted under US GAAP but not under IFRS. Companies with foreign parents, foreign subsidiaries reporting under IFRS, or plans to report under IFRS need to consider this.
- The LIFO conformity rule. Under US tax rules, a company that uses LIFO for its federal income tax return generally must also use LIFO for its financial statements issued to shareholders, partners or creditors. You cannot use LIFO for taxes and FIFO for your bank’s financial statements.
- Electing LIFO for tax requires filing the appropriate IRS election form, and changing methods later generally requires filing for a change in accounting method.
- LIFO reserve and liquidation. Companies on LIFO often disclose a LIFO reserve, the difference between inventory at LIFO and at another method such as FIFO. If inventory levels drop and old, low-cost layers are sold, profits and taxes can jump unexpectedly.
- Lower of cost or net realizable value. Under US GAAP, inventory measured using FIFO or average cost must be written down when net realizable value falls below cost. Inventory measured using LIFO or the retail method follows the older lower of cost or market test.
- Consistency. Whatever you choose, apply it consistently. Changing methods is an accounting change that must be justified as preferable and disclosed.
How manufacturers should think about the choice
For manufacturers, the costing method interacts with how you build up product cost. Materials, direct labor and overhead all flow into work in process and finished goods. Many manufacturers also use standard costing for day-to-day operations, recording variances between standard and actual costs, and then align the results with an acceptable cost flow method for financial reporting.
Questions to discuss with your accountant:
- Are your input costs generally rising, falling or volatile?
- How important is current-cost margin reporting to your management team?
- Would LIFO tax savings outweigh the extra recordkeeping and the conformity requirement?
- Do lenders, investors or a potential buyer expect a particular method?
- Does your ERP system support the method at the item, location or company level you need?
How inventory and ERP software handles costing methods
A spreadsheet can calculate FIFO or average cost for a few items at quarter-end, but it struggles once you have many SKUs, multiple locations, frequent purchases and customer returns. At that point the costing method effectively lives in your inventory or ERP system, and the system’s capabilities can limit your choices. Check these points before you choose a method or a system:
| What to check | Why it matters |
|---|---|
| Which methods are supported (FIFO, moving average, standard cost, specific identification, LIFO) | Support varies; LIFO in particular is sometimes calculated outside the system through a periodic adjustment |
| Level at which the method is set | Some systems apply one method company-wide; others allow it by item, item group or location |
| Landed cost handling | Freight, duties and handling should flow into unit cost, including when the bills arrive after the goods |
| Cost layer reporting | You need to see which receipts make up on-hand value for reviews and audits |
| Backdated and out-of-sequence transactions | Late receipts or corrected costs may trigger recalculation; know whether and how past sales are revalued |
| Standard cost variances | If you use standard costing, purchase price and production variances should be captured clearly |
| Changing methods later | Switching can be difficult without a data migration or a cutover plan |
In a demo, ask the vendor to walk through a purchase, a partial sale, a late freight bill and a customer return, and to show the resulting cost layers and journal entries. Ask how negative inventory is handled, since recording a sale before the related receipt can distort FIFO and average costs. Ask how the system supports your lower of cost or net realizable value review, and whether it produces the reports your outside accountant needs if you use LIFO.
Pricing for inventory and ERP systems is typically a per-user subscription, often in tiered editions where advanced costing, multi-location or manufacturing features sit in higher tiers, plus an implementation fee for configuration and data migration. Confirm that the costing features you need are included in the edition you are being quoted.
Red flags include vague answers about how average cost is recalculated, no visibility into cost layers, and a system that silently allows negative on-hand quantities.
Bottom line
- FIFO usually shows higher profits and a more current inventory value when costs rise.
- LIFO matches recent costs to revenue and can reduce taxes in inflationary periods, but it is US GAAP only and subject to the conformity rule.
- Weighted average smooths volatility and is simple to maintain in most systems.
- All methods expense the same total cost over time; they differ in timing.
- Confirm your inventory or ERP software supports the method, landed costs and cost layer reporting you need.
- Pick a method deliberately, document it and apply it consistently.