Home › Weighted Average Cost Calculator (Inventory)

Weighted Average Cost Calculator (Inventory)

Free weighted average cost calculator: average unit cost across opening stock and several purchases, with cost of goods sold and stock value.

How the weighted average cost calculator (inventory) works

Find the average cost of inventory bought at different prices.

Formulas

  • Weighted average cost = Total cost ÷ Total quantity
  • Cost of units sold = Average cost × Units sold
  • Remaining stock value = Average cost × Units left

Worked example

Using the pre-filled values (Currency: USD; Opening quantity: 100; Opening unit cost: 5; Purchase 1 quantity: 200; Purchase 1 unit cost: 5.5; Purchase 2 quantity: 150; Purchase 2 unit cost: 6; Purchase 3 quantity: 0; Purchase 3 unit cost: 0; Units sold or used: 0) the calculator returns Total quantity: 450.00; Total cost: 2,500.00; Weighted average unit cost: 5.5556.

Accuracy and privacy

Calculations use exact decimal arithmetic rather than floating-point numbers, invalid input is reported instead of producing a misleading result, and nothing you type leaves your browser.

FAQ

Is this allowed for accounting?

Weighted average is an accepted inventory costing method in many places, but check the rules that apply to you.

What about FIFO or LIFO?

They use the order of purchases, not an average, and give different results when prices change.

Create an invoice free Open calculators

For information only – not financial, tax or legal advice. See our disclaimer.

Related tools

Need help?