Ending Inventory Calculator (Periodic Average Cost Method)


Ending Inventory Calculator: Periodic Average Cost Method

This calculator helps you determine your ending inventory value using the periodic average cost method. Enter your beginning inventory, all purchases made during the period, and the total units sold to get a precise valuation. The tool also provides key metrics like Cost of Goods Sold (COGS) and the weighted-average cost per unit.



Enter the total number of units at the start of the period.


Enter the cost for each unit in the beginning inventory.

Inventory Purchases




Enter the total number of units sold during this accounting period.

Please ensure all inputs are valid numbers and total units available are greater than units sold.


What is the Periodic Average Cost Method?

The periodic average cost method is an inventory valuation technique where the cost of ending inventory and the cost of goods sold (COGS) are calculated based on the weighted-average cost of all goods available for sale during an entire accounting period. Unlike the perpetual system, which recalculates the average after every purchase, the periodic system performs this calculation only once at the end of the period (e.g., month, quarter, or year).

This approach smooths out price fluctuations by using a single average cost for all units. It is generally simpler to implement than FIFO or LIFO under a periodic system, as it doesn’t require tracking the specific cost of each batch sold. Businesses use this method to get a blended cost that represents the entire inventory pool over the period, which is useful when individual unit costs are difficult or impractical to track.

Periodic Average Cost Formulas and Explanation

The calculation involves three main steps. First, determine the total cost of goods available for sale. Second, calculate the weighted-average cost per unit. Finally, use this average cost to find the value of both the ending inventory and the cost of goods sold. A key part of managing inventory involves understanding your inventory valuation methods and how they impact your financial statements.

  1. Cost of Goods Available for Sale (COGAS):
    Formula: (Beginning Units * Beginning Unit Cost) + Σ(Purchased Units * Purchased Unit Cost)
  2. Weighted-Average Cost per Unit:
    Formula: Total Cost of Goods Available for Sale / Total Units Available for Sale
  3. Ending Inventory Value:
    Formula: (Total Units Available - Units Sold) * Weighted-Average Cost per Unit
  4. Cost of Goods Sold (COGS):
    Formula: Units Sold * Weighted-Average Cost per Unit
Variable Definitions
Variable Meaning Unit Typical Range
Beginning Inventory Inventory on hand at the start of the period. Units & Currency ($) Non-negative numbers
Purchases Inventory acquired during the period. Units & Currency ($) Non-negative numbers
Units Sold Total units sold to customers during the period. Units 0 to Total Units Available
Weighted-Average Cost The blended cost per unit for all inventory. Currency ($) per Unit Positive number

Practical Examples

Example 1: Stable Costs

A bookstore starts the month with 50 textbooks at $80 each. They make two purchases during the month: 100 more textbooks at $82 each, and another 75 at $83 each. By the end of the month, they have sold 180 textbooks.

  • Goods Available for Sale: (50 * $80) + (100 * $82) + (75 * $83) = $4,000 + $8,200 + $6,225 = $18,425
  • Total Units Available: 50 + 100 + 75 = 225 units
  • Weighted-Average Cost: $18,425 / 225 = $81.89 per unit
  • Ending Inventory: (225 – 180) units * $81.89 = 45 units * $81.89 = $3,685.05
  • Cost of Goods Sold: 180 units * $81.89 = $14,740.20

Example 2: Rising Costs

A coffee shop has 20 bags of premium coffee beans at the start of the quarter, valued at $15 per bag. They purchase 40 more bags at $18 and then another 30 bags at $22 due to rising supplier costs. They sold 75 bags in the quarter. Accurately tracking this is crucial, just as it is in the debate of FIFO vs LIFO accounting methods.

  • Goods Available for Sale: (20 * $15) + (40 * $18) + (30 * $22) = $300 + $720 + $660 = $1,680
  • Total Units Available: 20 + 40 + 30 = 90 units
  • Weighted-Average Cost: $1,680 / 90 = $18.67 per unit
  • Ending Inventory: (90 – 75) units * $18.67 = 15 units * $18.67 = $280.05
  • Cost of Goods Sold: 75 units * $18.67 = $1,400.25

How to Use This Ending Inventory Calculator

Follow these steps to accurately calculate ending inventory using the periodic average cost method:

  1. Enter Beginning Inventory: Input the number of units and the cost per unit you had at the start of the accounting period.
  2. Add All Purchases: Click the “Add Purchase” button for each batch of inventory you bought during the period. Enter the units and cost per unit for every purchase.
  3. Input Units Sold: Enter the total number of units sold over the entire period.
  4. Calculate: Click the “Calculate” button. The tool will instantly display the ending inventory value, the weighted-average cost per unit, the total cost of goods sold (COGS), and the cost of goods available for sale.
  5. Review Results: The results are broken down into a primary value (Ending Inventory) and several intermediate values for a complete financial picture. The chart also visualizes the allocation of costs.

Key Factors That Affect Periodic Average Cost

  • Purchase Price Volatility: The more prices fluctuate, the more the average cost will differ from the most recent or oldest costs. This method is designed to smooth out such volatility.
  • Timing of Purchases: Large purchases made at unusually high or low prices can significantly skew the weighted average for the period.
  • Returns and Allowances: Purchase returns reduce the cost and units of goods available for sale, which must be factored in before calculating the average cost.
  • Beginning Inventory Value: An inaccurate beginning inventory count or value will lead to errors throughout the entire calculation, as it’s the foundation of the formula.
  • Data Accuracy: Simple data entry errors in either the number of units or their cost can lead to a misstated inventory value and an incorrect cost of goods sold formula.
  • Period Length: A longer accounting period (e.g., annual vs. monthly) may average out more cost fluctuations, leading to a more smoothed, but potentially less timely, valuation.

Frequently Asked Questions (FAQ)

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

The average cost method is simpler to apply in a periodic system, especially with homogenous products where tracking individual cost layers is cumbersome. It provides a middle-ground valuation that is less susceptible to income manipulation during periods of rising or falling prices compared to LIFO.

2. Does this method work for a perpetual inventory system?

No, this calculator is specifically for a periodic system. A perpetual system uses a “moving average,” which re-calculates the average cost after every single purchase, not just at the end of the period. You may want to compare this with a perpetual inventory system.

3. What are “goods available for sale”?

It represents the total value of all inventory a company could possibly sell during a period. It’s the sum of the beginning inventory value and the value of all new purchases made within that period.

4. How do I handle freight costs (shipping-in)?

Under Generally Accepted Accounting Principles (GAAP), freight-in costs are considered part of the cost of inventory. You should add these costs to the purchase price of the inventory to get an accurate total cost before calculating the average.

5. What happens if I have no beginning inventory?

If you start a new business or have zero inventory at the start of the period, simply enter ‘0’ for the beginning inventory units and cost. The calculation will then be based solely on the purchases made during the period.

6. Is the average cost method allowed for tax purposes?

Yes, the weighted-average cost method is a permissible inventory valuation method for tax purposes in the United States (IRS) and under International Financial Reporting Standards (IFRS).

7. How does this method compare to the specific identification method?

The specific identification method is used for unique, high-value items (like cars or art) where each item’s specific cost is tracked. The average cost method is for homogenous, high-volume items where tracking individual costs is impractical.

8. What is the impact on the gross profit margin?

Since the average cost method smooths out price changes, it generally results in a gross profit margin that falls between what would be reported under FIFO and LIFO during periods of inflation. This can be analyzed further with a gross profit margin calculator.

© 2026 Your Company Name. All Rights Reserved.


Leave a Reply

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