Units in Ending Inventory = Units available for sale - Units Sold
Ending Inventory (LIFO) = Units in Ending Inventory * Last Cost Entry
Ending Inventory (FIFO) = Units in Ending Inventory * First Cost Entry
For more math formulas, check out our
Formula Dossier