Ending Inventory Calculator

Calculate the value of your ending inventory using different valuation methods including FIFO (First-In, First-Out), LIFO (Last-In, First-Out), and Weighted Average Cost. Compare results across methods to make informed inventory management decisions.

The total value of inventory at the start of the period

Total cost of inventory purchased during the period

Total cost of goods that were sold during the period

Total revenue from sales, used to calculate turnover metrics

Beginning Inventory

Purchases

# Date/Description Units Cost Per Unit ($) Total Cost ($) Action

Total number of units sold during the accounting period

What is Ending Inventory?

Ending inventory refers to the value of goods and materials that remain unsold at the end of an accounting period. It represents a significant asset on a company's balance sheet and directly affects the calculation of Cost of Goods Sold (COGS) and, consequently, gross profit.

Accurate ending inventory valuation is crucial for financial reporting, tax calculations, and business decision-making. It helps businesses understand their stock levels, plan future purchases, and evaluate the efficiency of their inventory management practices.

Basic Ending Inventory Formula

Ending Inventory = Beginning Inventory + Purchases - Cost of Goods Sold

This formula can be rearranged to find COGS:

COGS = Beginning Inventory + Purchases - Ending Inventory

Inventory Valuation Methods

Different inventory valuation methods can significantly impact your financial statements. The three most common methods are:

1. FIFO (First-In, First-Out)

Under FIFO, the oldest inventory items (first in) are assumed to be sold first (first out). This means the cost of goods sold reflects the cost of the oldest inventory, while ending inventory is valued at the cost of the most recent purchases.

When FIFO is Advantageous

  • During periods of rising prices: Results in lower COGS and higher reported profits
  • Better reflects the actual physical flow of most perishable goods
  • Ending inventory values are more current and relevant
  • Widely accepted under both GAAP and IFRS

2. LIFO (Last-In, First-Out)

Under LIFO, the most recently acquired inventory (last in) is assumed to be sold first (first out). This results in COGS reflecting the most recent costs, while ending inventory is valued at older costs.

When LIFO is Advantageous

  • During periods of rising prices: Results in higher COGS and lower taxable income
  • Better matches current costs with current revenues
  • Provides tax benefits in inflationary environments
  • Note: LIFO is allowed under US GAAP but prohibited under IFRS

3. Weighted Average Cost

The weighted average method calculates a weighted average cost per unit by dividing the total cost of goods available for sale by the total units available. This average cost is then applied to both COGS and ending inventory.

Weighted Average Cost Formula

Weighted Average Cost = Total Cost of Goods Available / Total Units Available Ending Inventory = Units Remaining x Weighted Average Cost

Example: Comparing Methods

A company has the following inventory data:

  • Beginning Inventory: 100 units @ $10 = $1,000
  • Purchase 1: 150 units @ $12 = $1,800
  • Purchase 2: 200 units @ $14 = $2,800
  • Units Sold: 300 units
  • Units Remaining: 150 units

FIFO Ending Inventory: 150 units @ $14 = $2,100

LIFO Ending Inventory: 100 units @ $10 + 50 units @ $12 = $1,600

Weighted Average: 150 units x $12.44 = $1,867

Inventory Turnover Ratio

The inventory turnover ratio measures how efficiently a company manages its inventory by showing how many times inventory is sold and replaced during a period.

Inventory Turnover Formulas

Inventory Turnover = COGS / Average Inventory Average Inventory = (Beginning Inventory + Ending Inventory) / 2 Days Inventory Outstanding = 365 / Inventory Turnover

A higher turnover ratio indicates efficient inventory management and strong sales. However, the ideal ratio varies by industry:

Gross Profit Margin

Ending inventory directly affects gross profit margin, a key profitability metric:

Gross Profit Margin Formula

Gross Profit = Net Sales - COGS Gross Profit Margin = (Gross Profit / Net Sales) x 100

Impact on Financial Statements

The choice of inventory valuation method affects multiple financial metrics:

Perpetual vs. Periodic Inventory Systems

Understanding your inventory system is important for accurate calculations:

Best Practices for Inventory Management

  1. Regular Physical Counts: Verify system records with actual counts periodically
  2. Consistent Method: Use the same valuation method consistently for comparability
  3. Document Changes: If methods change, disclose the impact on financial statements
  4. Consider Industry Standards: Use methods appropriate for your industry
  5. Monitor Turnover: Track inventory turnover to identify slow-moving items
  6. Account for Shrinkage: Include losses from theft, damage, or obsolescence

Inventory Management Tips

  • Implement ABC analysis to prioritize high-value inventory items
  • Use just-in-time (JIT) principles to minimize holding costs
  • Set reorder points to avoid stockouts
  • Review and write off obsolete inventory regularly
  • Consider seasonal factors when analyzing turnover ratios

Lower of Cost or Market (LCM)

Under accounting standards, inventory must be reported at the lower of its cost or market value. If market value falls below cost, inventory must be written down, resulting in a loss on the income statement. This conservative approach prevents overstating assets.