---
title: "What Is Weighted Average Cost? Formula and Example | SKU.io"
url: "https://www.sku.io/glossary/weighted-average-cost/"
description: "Weighted average cost prices every unit at the blended cost of all units available. The formula, a worked example against FIFO, and the moving version."
published: 2026-11-21
---

Ecommerce operations glossary

# What is weighted average cost?

Also called WAC, Average cost, Moving average cost

Weighted average cost is an inventory costing method that gives every unit the same cost: the total cost of all units available divided by the number of units, so prices paid for larger batches count for more. That one figure costs both the units sold in the period and the units left in stock at its end.

## Worked example

You hold 300 units bought at $5.00 and receive 100 more at $7.00:

Weighted average cost = total cost ÷ total units = (300 × $5.00 + 100 × $7.00) ÷ 400 = $2,200 ÷ 400 = **$5.50 a unit**

Then you sell 250 units.

|     | Weighted average | FIFO |
| --- | --- | --- |
| COGS on 250 sold | 250 × $5.50 = $1,375 | 250 × $5.00 = $1,250 |
| 150 left in stock | 150 × $5.50 = $825 | 50 × $5.00 + 100 × $7.00 = $950 |
| Total | $2,200 | $2,200 |

The total cost is the same. Weighted average moves $125 more of it into this period’s COGS, because the dearer batch is blended into every sale instead of waiting at the back of the queue.

## Periodic and moving

The **periodic** version works out one average for the whole period, after the last receipt, as above.

The **moving** version, used with perpetual records, recalculates after every receipt. Had the 250 units sold before the $7.00 batch arrived, each would have cost $5.00. The 50 left would then be blended with the new 100: (50 × $5.00 + 100 × $7.00) ÷ 150 = $950 ÷ 150 = **$6.33**, and that becomes the cost of the next sale.

## Weighted average vs FIFO

-   When prices rise, weighted average gives a higher COGS and a lower stock value than FIFO. When they fall, the reverse.
-   It smooths out single expensive or cheap batches, so margins move less from shipment to shipment.
-   FIFO follows the order stock usually leaves the shelf, and its ending stock value sits closer to recent purchase prices.

Which one your books use is an accounting policy that your accountant decides, and changing it later is a policy change with its own disclosure, not a setting to flip mid-year.

## In SKU.io

SKU.io books cost of goods sold by FIFO, oldest cost layer first, not by weighted average. Each product also shows an Avg Cost, the weighted average of its open FIFO layers, recalculated whenever its inventory changes.

[How it works, in the SKU.io docs](https://www.sku.io/docs/guides/products/create-and-maintain/product-reference/product-detail-page-reference/)

## Read next

-   [What is FIFO?](https://www.sku.io/glossary/fifo/)
-   [When does a unit's cost stop changing?](https://www.sku.io/when-does-a-units-cost-stop-changing/)
-   [Same SKU, different parts: unit cost](https://www.sku.io/same-sku-different-parts-unit-cost/)
-   [Free COGS calculator with FIFO and weighted average side by side](https://www.sku.io/tools/cogs-formula-calculator/)
-   [What is inventory valuation?](https://www.sku.io/glossary/inventory-valuation/)
-   [Inventory accounting in SKU.io](https://www.sku.io/accounting/)

## More terms: Accounting

-   [Carrying cost](https://www.sku.io/glossary/carrying-cost/)
-   [Chart of accounts](https://www.sku.io/glossary/chart-of-accounts/)
-   [Clearing account](https://www.sku.io/glossary/clearing-account/)
-   [COGS](https://www.sku.io/glossary/cogs/)
-   [Contribution margin](https://www.sku.io/glossary/contribution-margin/)
-   [ERP](https://www.sku.io/glossary/erp/)
-   [FIFO](https://www.sku.io/glossary/fifo/)
-   [Gross margin](https://www.sku.io/glossary/gross-margin/)
-   [Inventory reconciliation](https://www.sku.io/glossary/inventory-reconciliation/)
-   [Inventory valuation](https://www.sku.io/glossary/inventory-valuation/)
-   [Inventory write-down](https://www.sku.io/glossary/inventory-write-down/)
-   [LIFO](https://www.sku.io/glossary/lifo/)
-   [Month-end close](https://www.sku.io/glossary/month-end-close/)
-   [Perpetual inventory](https://www.sku.io/glossary/perpetual-inventory/)
-   [Three-way match](https://www.sku.io/glossary/three-way-match/)

Updated November 21, 2026 · [All terms](https://www.sku.io/glossary/)
