LIFO (last-in, first-out) is an inventory cost flow whereby the last goods purchased are assumed to be the first goods sold so that the ending inventory consists of the first goods purchased.