Skip to content50% off₹750/user/month ₹1,500
SimpleERP

Tools

Weighted average cost calculator for stock valuation

Enter what you hold and what it cost on average, then the purchase that just arrived. The calculator gives the new average cost per unit and the value of the stock.

In short

This free weighted average cost calculator from SimpleERP works out a product's new average cost and stock value when a purchase arrives at a different price. It uses the same formula the product applies on every purchase.

New quantity
150
Stock value
₹8,100.00
New average cost per unit
₹54.0000

New average cost ₹54.0000 per unit

How to use it

Run it once per purchase, in the order the purchases arrived.

  1. Enter the quantity on hand and its average cost

    What is in the godown now and what each unit is worth today, such as 100 sheets at ₹50.

  2. Enter the purchase

    The quantity received and the cost per unit before GST, if you claim the input tax credit.

  3. Read the new average

    The new cost per unit, the new quantity and the value of the stock. Use the new figures as the starting point for the next purchase.

How does the weighted average change on every purchase?

Each purchase is blended into what you already hold, weighted by quantity. A small purchase at a high price moves the average a little; a large one moves it a lot. Sales do not change the average; they take units out at the current average cost.

  • Purchases change the average when their cost differs from it.
  • Sales and issues go out at the current average, which becomes the cost of goods sold.
  • When stock reaches zero, the next purchase sets a fresh average at its own cost.

Illustration of stock on hand by warehouse at average cost, with a low-stock row highlighted and a movement ledger.

Stock by warehouse in SimpleERP, valued at weighted average cost.

Why use weighted average instead of FIFO?

Weighted average is one of the cost formulas Ind AS 2 and AS 2 allow, as notified; check the current rules. It suits goods that are mixed together in the godown, such as sheets, pipes, fasteners and fabric, where nobody tracks which batch a unit came from.

  • One cost per product, easy to check against the purchase bills.
  • Smooths price swings, so margins do not jump with each delivery.
  • Pick one formula and keep it; changing it changes your closing stock and profit.

Do this automatically in SimpleERP

SimpleERP values every product at weighted average cost by warehouse. Each supplier bill updates the average as it posts, and each invoice takes stock out at the average and books the cost of goods sold.

  • Average cost per warehouse, so the godown and the store can differ.
  • A movement ledger shows every receipt and issue for each product.
  • Work orders take components out at average cost and put finished goods in at actual cost.

Illustration of stock on hand by warehouse at average cost, with a low-stock row highlighted and a movement ledger.

Each product's quantity and value by warehouse.

The maths

How it is calculated

The new average is the total value divided by the total quantity.

  • Value on hand = quantity on hand × average cost.
  • Value received = quantity received × cost per unit.
  • New average = (value on hand + value received) ÷ (quantity on hand + quantity received), kept to four decimals as SimpleERP stores it.
  • New stock value = new quantity × new average, rounded to the paisa.
  • If nothing is on hand, the new average is simply the cost of the purchase.

Example

Worked example

Lakshmi Steel Furnitures in Coimbatore holds 100 steel sheets at ₹50 each and receives 50 more at ₹62.

LineQuantityValue
On hand: 100 × ₹50100₹5,000.00
Received: 50 × ₹6250₹3,100.00
After the purchase150₹8,100.00
New average: ₹8,100 ÷ 150₹54.0000
100 on hand at ₹50, plus 50 received at ₹62

If 30 sheets then go into a work order, they leave at ₹54 each, ₹1,620 in all, and the average stays at ₹54 for the 120 left.

Honest limits

What this calculator does not do

  • It handles one purchase at a time; run it again for each later purchase.
  • FIFO and batch-wise costing are not covered, here or in SimpleERP.
  • Freight and other landed costs are not added; include them in the cost per unit if you want them in stock value.

FAQ

Questions, answered

What is the weighted average cost formula?

Total value of stock divided by total quantity. For 100 units at ₹50 plus 50 at ₹62, that is ₹8,100 ÷ 150 = ₹54 per unit.

Does a sale change the weighted average cost?

No. A sale takes units out at the current average, so the value and quantity fall together and the average stays the same. Only receipts at a different cost move it.

Is weighted average cost allowed for stock valuation in India?

Yes. AS 2 and Ind AS 2 allow FIFO or weighted average cost for goods that are not specifically identified. As notified; check the current rules with your CA.

Should purchase cost include GST?

Not if you claim input tax credit on it, because the GST comes back to you. If you cannot claim the credit, the GST is part of the cost.

Run your whole business from one simple place.

Seven days free. No card. Your first GST invoice in minutes.