Count the goods before assigning their costs
A retailer begins with 100 units costing 10 each and buys another 100 units costing 14 each. It sells 150 units for 20 each and counts 50 remaining. There are 200 available units with total cost 2,400 and sales revenue of 3,000. Assume a single homogeneous product, no returns, freight, discounts, impairment or other costs, and the stated inventory methods. The unit ledger is 100+100−150=50 regardless of which cost assumption is used.
A cost-flow assumption allocates the 2,400 available cost between the units sold and the units left. It is not necessarily a description of which physical box left the shelf. Distinguish cost assignment from warehouse rotation, expiry management and evidence about the actual count. A company can physically rotate its oldest stock while using a different permitted accounting cost assumption under its applicable framework. This lesson compares model calculations; it does not select a reporting policy for a real entity.
Under periodic FIFO, assign the oldest costs to the 150 sold units: 100×10+50×14=1,700. The remaining 50 units receive the newer cost of 14, so ending inventory is 700. Gross profit is 3,000−1,700=1,300. The check is 1,700+700=2,400. Do not confuse gross profit with net income, which would also reflect other expenses omitted from the fixture.
A weighted average needs a defined system and period
Periodic weighted-average unit cost is total available cost divided by total available units: 2,400/200=12. Assign 150×12=1,800 to units sold and 50×12=600 to ending inventory. Gross profit becomes 1,200, while the cost reconciliation remains 1,800+600=2,400. Compared with FIFO, this fixture moves 100 of cost from the ending asset to current cost of goods sold. Neither method changes the number of goods or the cash already exchanged.
Do not take the unweighted mean of a list of purchase prices unless quantities justify it. The average of 10 and 14 happens to equal 12 here because both layers contain 100 units. With unequal quantities, the arithmetic mean of the price labels generally differs from the cost per available unit. Preserve both quantity and cost denominators.
The phrase 'average cost' is incomplete without its timing convention. A perpetual moving average recomputes cost as purchases arrive; a periodic average pools the defined period. If sales occur between purchases, those approaches can allocate different amounts. An implementation must preserve transaction dates and the intended update policy instead of treating all methods with 'average' in their names as interchangeable. Report rounding rules separately from the underlying unrounded cost calculation.
Reconcile timing, counts and recognition without hiding differences
Consider an explicit chronology: sell 60 of the beginning units, buy the 100 units at 14, then sell another 90. The perpetual moving-average cost of the first sale is 600. After that sale and the purchase, 140 units carry cost 400+1,400=1,800, or 90/7 per unit. The second sale receives cost 8,100/7≈1,157.14. Total assigned sale cost is 12,300/7≈1,757.14, and 50 remaining units carry 4,500/7≈642.86. Their sum is still 2,400. Periodic weighted average remains 1,800 and 600 for this period, because it pools all available costs before allocating them.
Now return to the original 150-sale fixture but suppose the physical count is 45, not 50. Five units are unaccounted for. Under the assumed FIFO layers after the sales, a five-unit loss carries 70 and leaves 630 of inventory; under periodic weighted average the loss carries 60 and leaves 540. Total inventory expense, including this separate modeled loss, is 1,770 or 1,860 respectively. Show sales cost and the unexplained difference separately before deciding its cause or presentation.
The equation available cost=assigned expense+ending inventory can balance after an incorrect adjustment too. Investigate count timing, goods in transit, returns, damaged stock, cutoffs and recording mistakes. An unexplained difference is not automatically theft, and a balancing plug is not an investigation. Preserve the count sheets and transaction evidence that support the correction.
If all purchase and sale cash flows are unchanged, switching cost assumptions cannot by itself generate cash. With the additional purchase paid in cash and the 3,000 sales collected in cash, those two events contribute net cash of 1,600 under both calculations. The beginning inventory was an opening asset; its original payment is outside this period’s stated cash events. Profit measures and cash timing answer different questions, as the accrual lesson demonstrated.
Worked example: Cost conservation under two allocations
FIFO assigns 1,700 to the 150 sold units and 700 to the ending 50. Periodic average assigns 1,800 and 600. Both conserve the original 2,400 cost. A report claiming that average cost lowers both expense and ending inventory relative to FIFO in this fixture would fail that conservation check unless another event had changed the available cost.
Worked example: An apparently minor naming difference changes the answer
With 60 units sold before the purchase and 90 afterward, perpetual moving-average sale cost is about 1,757.14, rather than the periodic result 1,800. The 42.86 difference is not necessarily a programming error; it can arise from different timing definitions. Verify the policy before comparing outputs, then compare exact unrounded values before investigating currency rounding.