--- title: "How to calculate the weighted average cost?" slug: "1723138810" tags: ["Settings"] updated: 2026-07-22T14:52:34Z published: 2026-07-22T14:53:08Z canonical: "help.ila.cegid.com/1723138810" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.ila.cegid.com/llms.txt > Use this file to discover all available pages before exploring further. # How to calculate the weighted average cost? - [x] PT - [x] ES --- The weighted average cost price is calculated when parts enter into stock.To enter a part stock, you must access the warehouse tab "Inventory parts | Warehouses", select the warehouse you want to enter stock.The calculation follows this formula: [(Current Stock x Current WACP) + (Stock Entry x Price Entry)] / (Current Stock + Stock Entry) - **Current stock**: Existing stock in the warehouse before the entry of parts stock; - **WACP**: Weighted average cost price; - **Price entry**: Price of the part at the stock entry; - **Stock entry**: Stock of the part at the stock entry;