
How an average price is built from different purchase prices
You bought the same item three times this year at three different prices, and now a customer buys one. Which price do you record as the cost? Weighted average cost says: use the average of all of them.
The calculation weights each purchase by how many units it covered. Add the total dollars spent and divide by the total units on hand, including any opening stock. A big cheap purchase pulls the average down more than a small one does.
There are two versions. In a periodic system, you calculate one average for the whole period at the end. In a perpetual system, you recalculate the average each time you buy more stock. Software usually handles the second, and the numbers can differ a little.
The method is simple and works well when units are interchangeable, such as fasteners, grain or bulk supplies. It is less natural for one-of-a-kind items, where tracking each unit makes more sense.
Example: two purchases and a sale
This is an illustration. You start by buying 100 units at $10 each, which costs $1,000. Later you buy 300 units at $12 each, which costs $3,600.
Total available: 100 + 300 = 400 units, costing $1,000 + $3,600 = $4,600. Weighted average cost = $4,600 / 400 = $11.50 per unit.
You sell 250 units. Cost of goods sold = 250 x $11.50 = $2,875. Ending inventory = 150 x $11.50 = $1,725. Check: $2,875 + $1,725 = $4,600.
Under FIFO, you would assign the oldest costs first: 100 x $10 plus 150 x $12 = $1,000 + $1,800 = $2,800 of cost of goods sold. The two methods differ by $75 on this sale.
Weighted average cost vs FIFO
| Question | Weighted average | FIFO |
|---|---|---|
| How is cost assigned? | One average price for all units | Oldest purchases are sold first |
| When prices rise | Cost of goods sold lands between FIFO and the newest cost | Lower cost of goods sold and higher profit |
| Record keeping | Simple, one number | Tracks each purchase layer |
A point many guides skip: the average moves with every purchase in a perpetual system, so a late big buy at a high price changes the cost of the next sale immediately. In a periodic system, the same buy changes the cost of sales made earlier in the period. If your numbers look odd, check which version your software uses before you blame the arithmetic.
Also remember that the method only affects how cost is split between sales and ending stock. Your total spend is the same either way.
Weighted average is also forgiving about record keeping. You do not have to track which purchase each unit came from, which suits bulk goods that get mixed together in bins. If your stock is easy to tell apart by purchase date, such as serial numbered equipment, a specific cost method may fit better, so ask your accountant which fits your products.
Mistakes that skew weighted average cost
- Averaging prices instead of weighting. A simple average of $10 and $12 ignores that you bought more at one price.
- Forgetting opening inventory. Last period stock belongs in the average.
- Leaving out freight. Shipping to get the goods in is part of the cost of the units.
- Switching methods without approval. The IRS expects consistency, and a change needs proper handling.
- Mixing periodic and perpetual. They can produce slightly different numbers, so choose one.
Questions
How do you calculate weighted average cost?
Divide the total cost of all units available by the total number of units available, including opening inventory.
Is weighted average cost allowed for taxes?
It is a generally accepted inventory method, but you must apply it consistently. Check IRS guidance or ask your tax professional.
Is weighted average better than FIFO?
Neither is better in every case. Weighted average smooths prices, while FIFO tracks purchase layers more closely.




