Calculate COGS and ending inventory using the First-In, First-Out method.
Enter purchase batches (oldest first):
Under FIFO, the first units purchased are the first sold. In rising price environments, FIFO results in lower COGS and higher profits compared to LIFO. Most companies outside the US use FIFO (IFRS requires it).