SALACO

Weighted Average Inventory Cost Calculator

Enter the quantity and unit price for each purchase batch to get average cost, total quantity, and total amount; add current stock to find inventory value.

Purchase Batches

Batch 1
Batch 2
Batch 3
Average cost—
Total purchase quantity—
Total purchase amount—
Inventory value—

Enter your current stock quantity to display the inventory value.

Note: Sales do not change the average cost, and sold purchase batches remain included in the average, matching the exact formula used in Inventory & Unit Cost Tracker.

Formula, Example, and Scope

This weighted average cost calculator finds unit cost across all purchase batches using the formula: Average cost = Total purchase amount ÷ Total purchase quantity. Outgoing sales only reduce quantity on hand and do not change the average cost; sold batches still count toward the average. Example: First, buy 10 units at a unit price of 10, then sell 8 units, and later buy a second batch of 10 units at a unit price of 20. Total purchase quantity is 10 + 10 = 20 and total purchase amount is 10 × 10 + 10 × 20 = 300, so average cost = 300 ÷ 20 = 15. Selling 8 units leaves the average cost at 15. With current stock at 10 − 8 + 10 = 12, inventory value = 12 × 15 = 180.

Scope and limitations: This browser calculator averages up to 30 purchase batches without a separate opening balance field, and it does not recalculate a moving average after each individual sale. If you already have an opening stock quantity and opening average cost to combine with new purchases and sales across up to 30 items, use the free Excel (.xlsx) stock sheet below, which includes opening stock in its average cost formula.

Download Free Stock Sheet Faster on iPhone: Inventory & Unit Cost Tracker

Track Stock In and Out on iPhone with Inventory & Unit Cost Tracker

Inventory & Unit Cost Tracker is an offline iPhone app with no account signup. Record stock in and out, automatically calculate average cost and total inventory value, and mark items at or below their reorder limit for easy filtering; for new users, the free version currently supports up to 10 products (existing users may have a different limit).