Quick answer
FIFO Calculator for Inventory: what it calculates
FIFO Calculator for Inventory calculates FIFO COGS and ending inventory from beginning units, beginning unit cost, purchase units, purchase unit cost, units sold, and selling price. The visible formula is FIFO COGS = oldest units sold x oldest unit cost, then next-oldest units x next unit cost; ending inventory = remaining units x their layer costs.