Weighted Average Inventory Calculator – Calculate Ending Inventory


Weighted Average Inventory Calculator

A precise tool to help you understand and implement one of the most common inventory valuation methods. Learn how to calculate ending inventory using the weighted average method with our simple calculator and in-depth guide.



Enter the currency symbol for your costs (e.g., $, €, £).

Add each batch of inventory purchased, including beginning inventory as the first entry.







Enter the total number of units remaining in stock at the end of the period.

Calculation Results

Ending Inventory Value:

$0.00

Total Units Available

0

Total Cost of Goods Available

$0.00

Weighted Avg. Cost / Unit

$0.00

Formula Used

Weighted Average Cost Per Unit = Total Cost of Goods Available for Sale / Total Units Available for Sale

Ending Inventory Value = Units in Ending Inventory × Weighted Average Cost Per Unit

Cost Contribution Chart

Chart showing the total cost of each purchase batch.

What is the Weighted Average Method for Inventory?

The weighted average method is a popular inventory valuation technique that calculates the cost of ending inventory and cost of goods sold (COGS) based on an average cost for all similar goods available during a period. Instead of tracking the specific cost of each individual item, this method smooths out price fluctuations by averaging them. When you need to figure out how to calculate ending inventory using weighted average method, you’re essentially blending the costs of beginning inventory and all subsequent purchases.

This method is particularly useful for businesses that deal with homogenous products where it’s impractical or impossible to distinguish one unit from another, such as grains, fuels, or identical manufactured parts. It simplifies bookkeeping and provides a stable, less-manipulable measure of inventory and profit compared to FIFO or LIFO methods.

The Weighted Average Method Formula and Explanation

The core of this method lies in a two-step calculation. First, you determine the weighted average cost per unit. Then, you use that average to value your ending inventory.

1. Calculate Weighted Average Cost (WAC) Per Unit:

WAC Per Unit = (Total Cost of Beginning Inventory + Total Cost of Purchases) / (Total Units in Beginning Inventory + Total Units Purchased)

This can be simplified to:

WAC Per Unit = Cost of Goods Available for Sale / Total Units Available for Sale

2. Calculate Ending Inventory Value:

Ending Inventory Value = Units in Ending Inventory × WAC Per Unit

Variables Table

Variables used in weighted average calculations
Variable Meaning Unit Typical Range
Cost of Goods Available for Sale The total cost of all inventory ready to be sold during the period. Currency (e.g., USD, EUR) $100 – $10,000,000+
Total Units Available for Sale The total quantity of all inventory items ready for sale. Items / Units 10 – 1,000,000+
Units in Ending Inventory The quantity of items remaining unsold at the period’s end. Items / Units 0 – 1,000,000+

Practical Examples

Example 1: A Coffee Roaster

A specialty coffee roaster starts the month with 50 bags of beans at $80 per bag. During the month, they make two more purchases:

  • Purchase 1: 100 bags at $85 per bag
  • Purchase 2: 75 bags at $82 per bag

At the end of the month, they have 90 bags left in stock.

  • Inputs:
    • Batch 1: 50 units @ $80
    • Batch 2: 100 units @ $85
    • Batch 3: 75 units @ $82
    • Ending Inventory: 90 units
  • Calculations:
    • Total Cost Available: (50 * $80) + (100 * $85) + (75 * $82) = $4,000 + $8,500 + $6,150 = $18,650
    • Total Units Available: 50 + 100 + 75 = 225 bags
    • WAC per Unit: $18,650 / 225 = $82.89
  • Result:
    • Ending Inventory Value: 90 bags * $82.89 = $7,460.10

For more on inventory costing, check out our guide on understanding COGS.

Example 2: An Electronics Store

An electronics store stocks a specific model of USB drives.

  • Beginning Inventory: 200 units at $10 each
  • Purchase 1: 300 units at $9.50 each
  • Purchase 2: 150 units at $10.50 each

After a sales promotion, 220 units remain.

  • Inputs:
    • Batch 1: 200 units @ $10.00
    • Batch 2: 300 units @ $9.50
    • Batch 3: 150 units @ $10.50
    • Ending Inventory: 220 units
  • Calculations:
    • Total Cost Available: (200 * $10) + (300 * $9.50) + (150 * $10.50) = $2,000 + $2,850 + $1,575 = $6,425
    • Total Units Available: 200 + 300 + 150 = 650 units
    • WAC per Unit: $6,425 / 650 = $9.88
  • Result:
    • Ending Inventory Value: 220 units * $9.88 = $2,173.60

How to Use This Weighted Average Inventory Calculator

Using this calculator is a straightforward process designed to give you quick and accurate results.

  1. Set Currency: Enter your local currency symbol in the first field. This is for display purposes.
  2. Add Purchases: For your beginning inventory and each subsequent purchase, add a row using the “+ Add Purchase Batch” button. Enter the number of units and the cost per unit for each batch.
  3. Enter Ending Units: In the final input field, type the total number of units you have left in your inventory at the end of the accounting period.
  4. Interpret Results: The calculator will instantly update. The main result is your “Ending Inventory Value”. You can also see intermediate values like “Total Units Available”, “Total Cost of Goods Available”, and the crucial “Weighted Avg. Cost / Unit”. The bar chart provides a visual breakdown of cost contributions from each purchase.

This process simplifies the complexities of different inventory valuation methods and provides clear, actionable data.

Key Factors That Affect Ending Inventory Valuation

Several factors can influence the final value calculated using the weighted average method.

  • Purchase Price Volatility: The more the cost of your inventory fluctuates, the more this method will smooth out the valuation. High volatility can lead to an average cost that doesn’t reflect the most recent prices.
  • Purchase Timing and Volume: A single large purchase at a significantly different price can heavily skew the average cost.
  • Beginning Inventory Value: The cost assigned to your starting inventory is the foundation of the calculation for the entire period. An accurate starting point is crucial.
  • Inventory Shrinkage: Loss of inventory due to theft, damage, or obsolescence reduces the number of units, but their cost remains in the “Total Cost” pool until accounted for, which can inflate the average cost of remaining items. Comparing perpetual vs periodic inventory systems can help manage this.
  • Landed Costs: Including shipping, taxes, and duties in your unit cost provides a truer picture of your inventory’s value. Failing to do so understates your inventory asset.
  • Product Mix: This method works best for identical items. If you apply it across different products, the resulting average cost will be meaningless.

Frequently Asked Questions (FAQ)

1. Why use the weighted average method instead of FIFO or LIFO?

The weighted average method is simpler to administer, especially with systems that can’t easily track specific inventory lots. It smooths out price fluctuations, which can provide a more stable and less manipulable view of profits, unlike FIFO or LIFO which can be affected by inflation or deflation. Explore the differences with our FIFO vs LIFO comparison tool.

2. Is the weighted average method allowed by GAAP?

Yes, the weighted average cost method is a permissible inventory valuation method under both U.S. Generally Accepted Accounting Principles (GAAP) and International Financial Reporting Standards (IFRS).

3. How do I handle beginning inventory in the calculator?

You should treat your beginning inventory as the very first purchase. Enter its quantity and cost per unit in the first row of the “Inventory Purchases” section.

4. What happens if I have no units in my ending inventory?

If you enter 0 for “Units in Ending Inventory,” your “Ending Inventory Value” will correctly be $0. This implies that all inventory available for sale was sold during the period.

5. Can this calculator be used for a perpetual inventory system?

This calculator is designed for the periodic weighted average method, where the average is calculated once for the entire period. A perpetual system recalculates the weighted average cost after every purchase, which is a more complex, transaction-by-transaction process.

6. What if my costs are in a different currency?

The calculations are unit-agnostic. Simply enter the costs in your currency and change the currency symbol in the first input field for correct labeling in the results.

7. How does this relate to the cost of goods sold (COGS)?

Once you know your ending inventory value, you can easily find your COGS. The formula is: COGS = Cost of Goods Available for Sale – Ending Inventory Value. A solid understanding of the average cost method is key to accurate financial reporting.

8. What’s the main limitation of this method?

In times of rapidly rising prices, the weighted average method may understate the cost of goods sold (leading to higher reported profit) and the value of ending inventory compared to the most recent replacement costs, which is a key part of accounting for inventory.

© 2026 Your Company. All Rights Reserved. This tool is for informational purposes only.



Leave a Reply

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