LIFO and Weighted Average cost flow assumptions may yield different end inventories and COGS in a perpetual inventory system than in a periodic inventory system due to the timing of the calculations. In the perpetual system, some of the oldest units calculated in the periodic units-on-hand ending inventory may get expended during a near inventory exhausting individual sale, in the LIFO system; in the weighted average system, in the perpetual system, each sale moves the weighted average, so it is a moving weighted average for each sale, whereas in the periodic system, it is only the weighted average of the cost the beginning inventory, the sum cost of all the purchases, less the cost of the inventory , divided by the sum of the beginning units and the total units purchased.