Weighted-average costing values stock at the running average cost of all units on hand, recalculated as new purchases arrive. It smooths out price fluctuations, so COGS and closing stock sit between the extremes that FIFO can produce.
It is simple to maintain and well suited to fungible goods where individual lots are not tracked separately.