The first-in,first-out method of assigning costs to both inventory and cost of goods sold assumes that inventory items are sold in the order acquired.
When sales occur,the costs of the earliest units acquired are charged to cost of goods sold. This leaves the costs from the most recent purchases in ending inventory. Use of FIFO for computing the cost of inventory and cost of goods sold is shown in Exhibit 6.5.