
For most US small businesses that carry stock, the choice is between FIFO (first in, first out), which charges the oldest purchase costs to cost of goods sold first, and weighted average cost, which blends all purchase costs into one average per item. FIFO usually fits businesses with perishable or dated goods and gives an inventory value close to current prices; average cost fits businesses selling interchangeable goods bought at fluctuating prices and smooths margins. When prices are rising, FIFO reports higher profit and a higher inventory value than average cost. Whichever you choose, apply it consistently, because changing your method for tax purposes generally needs IRS approval. This guide works through both methods with numbers and explains what to consider before you decide.
What an inventory costing method actually decides
Your costing method does not change what you physically sell or what you paid. It decides how the total cost of purchases is split between two places: cost of goods sold on the profit and loss statement, and inventory on the balance sheet. When purchase prices are stable, every method gives nearly the same answer. When prices move, the split differs, and so do gross margin, taxable income and the inventory value a lender sees.
IRS Publication 538, Accounting Periods and Methods, describes three ways of identifying which items are in closing inventory: specific identification, used when you can match actual cost to items in inventory; FIFO, which assumes the items you purchased or produced first are the first sold; and LIFO, which assumes the items purchased or produced last are the first sold. Weighted average cost is widely used in accounting systems and for financial reporting. How an average method in your books maps to your tax return is a question to settle with your tax adviser before you adopt it.
FIFO explained with numbers
Riverbend Foods, a fictional specialty food distributor in Kansas City, buys cases of olive oil during a quarter of rising prices:
| Date | Transaction | Cases | Cost per case | Total |
|---|---|---|---|---|
| Jan 5 | Opening stock | 100 | USD 40 | USD 4,000 |
| Feb 10 | Purchase | 200 | USD 44 | USD 8,800 |
| Mar 15 | Purchase | 100 | USD 50 | USD 5,000 |
| Total available | 400 | USD 17,800 |
During the quarter Riverbend sells 250 cases at USD 70 each, revenue of USD 17,500.
Under FIFO, the 250 cases sold come first from the oldest layers: 100 at USD 40 (USD 4,000) and 150 at USD 44 (USD 6,600). Cost of goods sold is USD 10,600 and gross profit is USD 6,900. Closing inventory of 150 cases is 50 at USD 44 plus 100 at USD 50, which is USD 7,200.
Weighted average cost explained with the same numbers
Under a periodic weighted average, divide total cost by total units: USD 17,800 divided by 400 cases is USD 44.50 per case. Cost of goods sold for 250 cases is USD 11,125, gross profit is USD 6,375, and closing inventory is 150 cases at USD 44.50, or USD 6,675.
Most accounting systems use a moving (perpetual) average instead, recalculating the average after each receipt. The answer is close to the periodic version but depends on when sales happen between receipts, which is exactly why software, not a spreadsheet, should do it.
Side by side
| Measure | FIFO | Weighted average |
|---|---|---|
| Cost of goods sold | USD 10,600 | USD 11,125 |
| Gross profit | USD 6,900 | USD 6,375 |
| Gross margin | 39.4% | 36.4% |
| Closing inventory | USD 7,200 | USD 6,675 |
In a quarter of rising prices FIFO reports USD 525 more gross profit and USD 525 more inventory. Over the life of the business the total cost charged is the same; the methods only shift the timing. If prices fall, the effect reverses.
How to choose
- Perishable, dated or lot-tracked goods: FIFO matches how stock physically moves, which makes valuation easy to explain. Food, cosmetics, chemicals and pharmaceuticals usually fit here.
- Interchangeable goods with volatile prices: average cost smooths margin swings in commodities, fasteners, raw materials and fuel.
- High-value unique items: specific identification, by serial number, fits machinery, vehicles and custom items.
- Lenders and investors: FIFO inventory values sit closer to replacement cost, which some lenders prefer for borrowing bases.
- Taxes: in a period of rising prices, a method that charges older, cheaper costs to sales, such as FIFO, reports more taxable income in the short term. LIFO does the opposite, but adopting it requires filing Form 970 with your timely filed return for the first year, and it brings extra record-keeping. Take advice before considering it.
What the IRS expects
A few points from Publication 538 to keep in mind:
- Consistency. If you want to change your method of accounting for inventory later, you generally must get IRS approval and file Form 3115. A business cannot switch methods year to year to manage its tax bill.
- Lower of cost or market. Under this valuation method, you compare the market value of each item on hand with its cost and value each item separately, not the inventory as a whole.
- Small business exception. Businesses that meet a gross receipts test may choose not to keep inventories in the usual way, but must still use a method that clearly reflects income. The gross receipts limit is indexed for inflation each year, so check the current figure with the IRS or your adviser before relying on it.
What happens to margins when prices fall or swing
The Riverbend example used rising prices. Run the same exercise with falling prices and the result flips: suppose the March purchase had cost USD 36 a case instead of USD 50. FIFO would still charge the older USD 40 and USD 44 layers to sales first, so cost of goods sold stays high and the cheaper March stock sits in closing inventory. Average cost would pull the cheaper purchase into every sale straight away. In a falling market, FIFO reports lower margins than average cost until the old layers are used up.
When prices swing up and down from month to month, as they do for fuel, metals, coffee or lumber, FIFO margins jump around with the timing of purchases, while average cost moves more slowly. Sales teams that quote prices from "current cost" often prefer average cost for this reason, because the cost they see on screen does not leap with each delivery. Whatever you choose, make sure the people who set prices understand which cost they are looking at.
Costing in assembly and kitting
If you assemble products from components, or sell kits made of several items, the costing method applies at two levels. Each component is valued by your chosen method when it is consumed, and the finished item's cost is the sum of the components used plus any labor and overhead you apply. Two practical rules follow:
- Record consumption when it happens. Components should leave inventory when the assembly is completed, not at month-end in a single journal, otherwise FIFO layers and averages are calculated on the wrong dates.
- Review the finished item's cost after big component price changes. A finished product built from components bought at last year's prices will show a margin that disappears once current stock is used.
Implementation tips
- Choose per company, apply to every item. Mixing methods across items without a documented reason confuses auditors.
- Record landed cost. Freight in, duties and handling belong in the cost of inventory, not in general expenses. Getting this wrong distorts any method.
- Never allow negative stock. Selling stock that the system says you do not have breaks both FIFO layers and averages, and the correction lands in a later month.
- Match the physical flow where you can. If you use FIFO, rotate stock on the shelf the same way, which also reduces spoilage.
- Review valuation monthly. Slow-moving and damaged stock may need a write-down, item by item.
An ERP such as Fininvo records purchases, receipts, stock movements and sales in one system, so inventory values are built from the same transactions rather than being rebuilt in a spreadsheet at month-end. Inventory valuation is also one of the core steps in our month-end close checklist, and distributors will find more in our ERP requirements checklist for wholesale distributors.
Common mistakes
- Choosing a method for one good tax year without thinking about later years.
- Expensing freight in instead of adding it to inventory cost.
- Running FIFO in the system while picking the newest stock on the floor.
- Writing down inventory as a whole instead of item by item.
- Changing method in the software without considering whether IRS approval is needed.
Rules checked in November 2026 against IRS guidance (Publication 538). This article is general information, not tax or legal advice; confirm current rates and thresholds with the IRS or a qualified adviser.
FAQ
Is FIFO or average cost better for a small business?
Neither is better in general. FIFO suits perishable and dated goods and gives inventory values near current prices; average cost suits interchangeable goods with volatile prices and smooths margins.
Which method gives lower taxes?
When prices rise, methods that charge newer, higher costs to sales report lower profit in the short term. Over the life of the business, total cost is the same. Discuss tax effects with your adviser before choosing.
Can I change my inventory method later?
For tax purposes, changing your method of accounting for inventory generally requires IRS approval and Form 3115, according to Publication 538.
What is LIFO and should I use it?
LIFO assumes the most recent purchases are sold first. It is adopted by filing Form 970 with a timely filed return and adds record-keeping; most small businesses do not use it without specific advice.
What is lower of cost or market?
A valuation method where you compare the market value of each inventory item with its cost and use the lower figure, item by item.
Does freight belong in inventory cost?
Freight to bring goods into your warehouse is generally part of inventory cost. Freight to deliver goods to customers is a selling expense.
How Fininvo handles this
Fininvo ERP covers the work in this guide. See how it works:
Topics
Share this article
Get new articles by email
Practical guides on sales tax, bookkeeping and running a business in the US. Unsubscribe anytime.
Related articles
Fininvo ERP
Run accounts, sales tax and inventory in one place
Invoices, purchases, stock and tax reports stay in sync. Start your 14-day free trial.



