Inventory cost is the amount of money spent on acquiring, storing, and handling inventory. This includes the purchase price of the products, plus any freight, taxes, duties, insurance, storage, and handling fees. The method used to value inventory, such as FIFO, LIFO, or weighted average, will affect how costs are assigned to the units sold and kept in stock. To calculate inventory cost, you must track the number of units purchased and their cost per unit, the number of units sold and their cost per unit, the number of units in stock and their cost per unit, and total inventory-related expenses. Depending on the inventory costing method used, one of the following formulas can be used: FIFO: Inventory cost = (Units in stock x Cost per unit of the oldest batch) + (Units sold x Cost per unit of the batch sold), LIFO: Inventory cost = (Units in stock x Cost per unit of the newest batch) + (Units sold x Cost per unit of the batch sold), or Weighted average: Inventory cost = (Units in stock x Average cost per unit) + (Units sold x Average cost per unit).