What is FIFO inventory costing?

FIFO, or First-In-First-Out, inventory costing is a method of valuing inventory based on the assumption that the oldest items in inventory are sold first. Under this method, the cost of the oldest items is used to value the cost of goods sold (COGS), while the cost of the most recent items is used to value the ending inventory.