FIFO and LIFO are inventory accounting methods used to value inventory for financial statements. Under FIFO, the oldest inventory items are considered sold first based on the order they were acquired. Under LIFO, the most recently produced inventory items are considered sold first. The example shows how cost of goods sold and ending inventory would be calculated differently under each method using the same inventory quantities. The difference in the valuation of ending inventory under each method is called the LIFO reserve.