Ending Inventory Calculator (Average Cost Method)


Ending Inventory Calculator (Average Cost Method)

Calculate your ending inventory value using the weighted-average cost method, essential for accurate financial statements.


The number of units you have at the start of the period.


The total monetary value of your beginning inventory.


The total number of new units purchased during the period.


The total monetary value of all new inventory purchased.


The number of units sold during the period.


Results copied to clipboard!

Calculation Results

Ending Inventory Value
$0.00

Weighted-Average Cost (WAC) Per Unit:
$0.00

Units in Ending Inventory:
0

Cost of Goods Available for Sale (COGAS):
$0.00

Formula Used: Ending Inventory = (Total Cost of Goods Available for Sale / Total Units Available for Sale) × Units in Ending Inventory.

Cost Allocation Overview

Visual breakdown of inventory costs.

What is Ending Inventory Using Average Cost?

The method to how to calculate ending inventory using average cost, also known as the Weighted-Average Cost (WAC) method, is an inventory valuation technique that determines the value of both ending inventory and the cost of goods sold (COGS). It works by calculating the average cost of all similar goods available for sale during a period and then applying this average cost to the units remaining in inventory and the units that were sold. This approach is permitted under both Generally Accepted Accounting Principles (GAAP) and International Financial Reporting Standards (IFRS).

Unlike methods like FIFO (First-In, First-Out) or LIFO (Last-In, First-Out) that track the cost of specific purchase batches, the average cost method smooths out price fluctuations. It creates a single, blended cost for each item, which simplifies accounting, especially for businesses with large volumes of identical or nearly indistinguishable items where tracking individual costs is impractical.

The Formula for Ending Inventory (Average Cost)

The calculation is a multi-step process. First, you determine the weighted-average cost per unit. Then, you use that figure to find the total value of your remaining inventory. The core idea is to find a blended cost and apply it uniformly.

Step 1: Calculate Cost of Goods Available for Sale (COGAS)

COGAS = Total Cost of Beginning Inventory + Total Cost of New Purchases

Step 2: Calculate Total Units Available for Sale

Total Units Available = Beginning Inventory Units + Purchased Units

Step 3: Calculate Weighted-Average Cost (WAC) Per Unit

WAC Per Unit = COGAS / Total Units Available for Sale

Step 4: Calculate Ending Inventory Value

Ending Inventory Value = WAC Per Unit × (Total Units Available - Units Sold)

Variables in the Calculation
Variable Meaning Unit Typical Range
Beginning Inventory Stock available at the start of the period. Units & Currency ($) Non-negative values
Purchases New stock acquired during the period. Units & Currency ($) Non-negative values
Units Sold The quantity of items sold to customers. Units Cannot exceed total units available
WAC Per Unit The blended cost assigned to each unit. Currency ($) Dependent on purchase costs

Practical Examples

Example 1: A Coffee Bean Retailer

A specialty coffee shop wants to calculate its ending inventory for its House Blend beans for the month of April.

  • Beginning Inventory: 100 lbs at a total cost of $1,000.
  • Purchases: 400 lbs at a total cost of $4,400.
  • Units Sold: 450 lbs.

Calculation:

  1. COGAS: $1,000 + $4,400 = $5,400
  2. Total Units Available: 100 + 400 = 500 lbs
  3. WAC Per Unit: $5,400 / 500 lbs = $10.80 per lb
  4. Units in Ending Inventory: 500 lbs – 450 lbs = 50 lbs
  5. Ending Inventory Value: $10.80 × 50 lbs = $540.00

Example 2: An Electronics Component Supplier

A supplier of a specific type of microchip needs to know its ending inventory value for Q1.

  • Beginning Inventory: 2,000 units at a total cost of $3,000.
  • Purchases: 5,000 units at a total cost of $8,000.
  • Units Sold: 6,500 units.

Calculation:

  1. COGAS: $3,000 + $8,000 = $11,000
  2. Total Units Available: 2,000 + 5,000 = 7,000 units
  3. WAC Per Unit: $11,000 / 7,000 units ≈ $1.5714 per unit
  4. Units in Ending Inventory: 7,000 units – 6,500 units = 500 units
  5. Ending Inventory Value: $1.5714 × 500 units = $785.70

How to Use This Ending Inventory Calculator

This calculator simplifies the process of finding your ending inventory value. Follow these steps for an accurate result:

  1. Enter Beginning Inventory Data: Input the total number of units and their total cost at the start of your accounting period.
  2. Enter Purchase Data: Input the total number of new units purchased and their total cost during the same period.
  3. Enter Units Sold: Provide the total number of units sold during the period.
  4. Review the Results: The calculator will instantly update, showing you the primary Ending Inventory Value. It also displays key intermediate values like the Weighted-Average Cost Per Unit, the number of units left, and the total Cost of Goods Available for Sale (COGAS). For more details, you might need a cost of goods sold calculation.
  5. Analyze the Chart: The bar chart provides a quick visual comparison between the total cost of goods you had available and the value of what’s left in ending inventory.

Key Factors That Affect Ending Inventory Value

Several factors can influence the final valuation. Understanding them is crucial for accurate financial health assessment.

  • Supplier Price Changes: Sudden increases or decreases in the cost of new purchases will directly impact the weighted-average cost per unit.
  • Bulk Purchase Discounts: Securing a large purchase at a lower-than-usual price will lower the average cost, affecting both COGS and ending inventory value.
  • Shipping and Freight Costs: Landed costs (the total cost to get an item to your warehouse) should be included in the purchase cost for an accurate inventory valuation formula.
  • Inventory Spoilage or Obsolescence: Damaged or outdated goods must be written off and removed from the unit count, which can alter calculations.
  • Sales Volume: The number of units sold is a direct component of the formula. Higher sales naturally lead to lower ending inventory units.
  • Inflation: In an inflationary environment, the average cost method tends to result in a lower ending inventory value compared to the FIFO method.

Frequently Asked Questions (FAQ)

1. When is the average cost method the best choice?

It is best when inventory items are identical or hard to distinguish, and when costs fluctuate. It simplifies bookkeeping by not requiring the tracking of individual purchase costs. Check our FIFO vs LIFO guide for comparisons.

2. Is the average cost method allowed by accounting standards?

Yes, the weighted-average cost method is permitted under both U.S. GAAP and IFRS, making it a widely accepted practice for financial reporting.

3. How does this method affect my gross profit?

By averaging costs, this method smooths out the impact of price spikes. During periods of rising prices, it typically reports a higher cost of goods sold (COGS) than FIFO, which leads to a lower reported gross profit and taxable income. You can model this with a gross profit calculator.

4. What if I make multiple purchases at different costs during the period?

That is exactly what this method is for. Simply add up the total cost of ALL purchases and the total number of ALL units purchased and input those two summed figures into the “Purchased” fields of the calculator.

5. How are inventory returns handled?

Returns from customers should be added back to inventory at the weighted-average cost calculated for the period they were sold in. Supplier returns should be removed from the purchase costs and units.

6. Does this calculator work for a perpetual inventory system?

This calculator is designed for a periodic inventory system, where the calculation is performed at the end of a period. A perpetual system recalculates the average cost after every new purchase, which requires more complex, transaction-by-transaction tracking.

7. What is “Cost of Goods Available for Sale”?

It is the sum of your beginning inventory’s value and the total cost of all new inventory purchased during the period. It represents the total value of inventory you could have possibly sold.

8. Why is my ending inventory value negative?

This happens if the “Units Sold” you entered is greater than the “Total Units Available” (Beginning Units + Purchased Units). Ensure your sales data is correct and doesn’t exceed your available stock for the period.

© 2026 Your Company Name. All Rights Reserved. This calculator is for informational purposes only and should not be considered financial advice.



Leave a Reply

Your email address will not be published. Required fields are marked *