Weighted Average Cost Calculator

Enter the quantity and the cost of each purchase. The weighted average cost per unit appears as you type, beside the total quantity, the total cost, and how much each purchase adds to the average.

Cost entered as

Value a quantity at this average cost

Enter a quantity to value it at the weighted average cost.

Your purchase figures stay in this browser. Nothing is uploaded, stored on a server, or shared.

What Is Weighted Average Cost?

Weighted average cost is the total cost of everything bought divided by the total quantity bought, so each price counts in proportion to the quantity purchased at it.

Buy the same item three times at three prices and you hold one pile of identical units bought at a mix of costs. Weighted average cost answers the only question that pile can answer: what did a single unit cost, on average, once quantity is taken into account?

The word doing the work is weighted. A price paid on 500 units is not one price among three — it is 500 prices. Averaging $10, $12 and $14 to $12.00 throws that away. Weighting each price by the quantity bought at it keeps it.

It is also called average cost, AVCO, or the average cost method when applied to stock. The same arithmetic values inventory, prices a share portfolio built over several purchases, costs raw materials bought on different invoices, and sets a transfer price for interchangeable goods.

  • Inventory. Costing units sold and units still on the shelf.
  • Investing. The average cost basis of a holding accumulated over several buys.
  • Manufacturing. The cost of a raw material drawn from batches bought at different prices.
  • Procurement. The real unit price paid across suppliers, once volumes differ.

One property is worth fixing early: the weighted average cost always sits between the cheapest and the dearest price you paid, and lands nearer whichever price carried the most units. The same weighting principle powers the general weighted average calculator.

How to Calculate Weighted Average Cost

To calculate weighted average cost, multiply each quantity by its cost per unit, add those amounts, and divide by the total quantity.

Weighted Average Cost Formula

qᵢ — the quantity bought in purchase i cᵢ — the cost per unit paid in purchase i qᵢ × cᵢ — the total amount paid for that purchase Σ qᵢ — the total quantity across every purchase

The numerator is total cost and the denominator is total quantity, so the formula is nothing more elaborate than what you spent ÷ what you got. If your invoices already show the amount paid rather than a unit price, use those amounts directly — the calculator's total cost mode does exactly this.

Step-by-Step Weighted Average Cost Calculation

  1. List every purchase. One line per purchase, with the quantity bought and the price paid.
  2. Cost each line. Quantity × cost per unit gives the amount paid for that purchase.
  3. Add the quantities. This is the total quantity, the denominator.
  4. Add the line amounts. This is the total cost, the numerator.
  5. Divide total cost by total quantity. The result is the weighted average cost per unit.
  6. Check it. The answer must fall between your lowest and highest unit price. If it does not, a line is wrong.

Nothing in those steps cares about the order of the purchases. Weighted average cost is a property of the whole set, which is why it can be recalculated at any time from totals alone.

Weighted Average Cost Calculation Example

A workshop buys the same fitting three times in a quarter, at a rising price.

Three purchases of one item
PurchaseQuantityCost per unitTotal cost
Opening stock100$10.00$1,000.00
March purchase200$12.00$2,400.00
April purchase150$14.00$2,100.00
Total450$12.2222$5,500.00
$5,500 ÷ 450 units = $12.2222 per unit

The simple average of $10, $12 and $14 is $12.00. The weighted average is $12.2222 — 22 cents higher, because 78% of the units were bought at the two dearer prices. Across 450 units that gap is $100, which is the difference between a costing that is right and one that is close.

What each purchase contributes to the average
PurchaseShare of quantityCost per unitAdds to the average
Opening stock22.2%$10.00$2.2222
March purchase44.4%$12.00$5.3333
April purchase33.3%$14.00$4.6667
Weighted average cost100%$12.2222

Reading the last column is the fastest way to understand a result you did not expect. The March purchase adds more than either of the others, not because it was the dearest, but because it brought the most units.

How to Use the Weighted Average Cost Calculator

Enter a quantity and a cost on each row and the average cost, the total quantity and the total cost appear immediately — there is no calculate button.

Enter the Quantity and Cost of Each Purchase

Each row is one purchase. Give it a description if you want the breakdown to read clearly — March purchase, PO 4471, Supplier B — then the quantity bought and what it cost. Both number fields accept commas, decimals and a currency symbol, so figures pasted from a spreadsheet or an invoice go straight in.

The switch above the table decides what the cost column means, and it is the control most worth knowing about:

  • Cost per unit — the price you paid for one unit. The calculator multiplies it by the quantity.
  • Total cost — the amount paid for that whole purchase. The calculator divides it by the quantity to recover the unit price.
  • Add purchase adds another row, and the Enter key on the last row does the same.
  • Currency sets the symbol on every figure; Decimals shows the average to 2, 3 or 4 places.
  • Load example fills in the 100 / 200 / 150 unit example above so you can see a completed calculation.

Use total cost mode when your records show invoice totals rather than unit prices. It saves a division on every line and avoids the rounding that creeps in when a unit price is derived by hand — an $850 invoice for 63 units is $13.4921, and typing $13.49 loses money at scale.

Calculate the Total Quantity and Total Cost

Both totals are reported beside the result, and they are the two halves of the formula. Total quantity is the sum of the quantity column; total cost is the sum of every line amount, whichever mode you entered it in.

They are also the fastest check on your inputs. If the total quantity does not match the units you know you bought, a row is missing or a quantity has an extra digit — a problem far easier to see in the total than in the average, where a bad line only nudges the answer.

The bar underneath shows how the total cost splits between the purchases, which is worth a glance when one supplier turns out to account for most of what you spent.

Calculate the Weighted Average Cost

The large figure is total cost ÷ total quantity: the weighted average cost per unit. Below it, a note compares that figure to the simple average of the prices and says which way the quantities pushed it, so you can see at once whether your larger purchases were the cheap ones or the expensive ones.

  • Adds, on each row, is that purchase's share of the quantity multiplied by its unit price — the currency it contributes to the average. These add up to the average exactly.
  • Simple average counts every price once, ignoring quantity, and is shown only for comparison.
  • Value a quantity multiplies any quantity you enter by the average cost — the calculation behind an inventory valuation.
  • Copy step-by-step breakdown puts every line, both totals and the division into your clipboard for a workpaper or an email.

If a row is only half filled, the calculator says so rather than quietly dropping it, because a purchase counted in the quantity but not the cost is the single most common way a weighted average comes out too low.

Weighted Average Cost for Inventory

In inventory accounting the weighted average cost is the cost every unit carries, used both for the units sold and for the units still on hand.

Weighted Average Cost Method

Under the weighted average cost method, stock bought at different prices is pooled. Opening inventory and every purchase are added together in quantity and in cost, one average falls out, and no unit is tracked to the batch it came from. For a full periodic and perpetual cost-of-goods-sold breakdown, use the weighted average inventory calculator.

That is the method's whole point. FIFO and LIFO both need to know which layer a sale came out of; weighted average needs only two totals. For interchangeable goods — fuel, grain, fasteners, resin, components — knowing which physical unit left the shelf adds cost and no information.

Both IFRS (IAS 2) and US GAAP permit it, which is why it travels well across group companies reporting under different frameworks.

Weighted Average Cost and Inventory Valuation

Once the average is known, two figures follow from it, and the calculator's valuation box does exactly this multiplication:

COGS = units sold × WAC   |   Ending inventory = units remaining × WAC
Valuing the example at $12.2222 per unit
FigureQuantityValue
Goods available for sale450$5,500.00
Sold during the period300$3,666.67
Remaining on hand150$1,833.33

The two outputs always reconcile: $3,666.67 + $1,833.33 = $5,500. Choosing a cost method decides how that fixed pool is divided between the income statement and the balance sheet — it never changes the size of the pool.

One caveat carries over from the accounting standards: inventory is stated at the lower of cost and net realisable value. If the market price falls below your weighted average cost, the average is no longer the number that goes on the balance sheet.

Periodic vs. Perpetual Weighted Average Cost

Periodic costing calculates one average at the end of the period. Perpetual costing recalculates a moving average after every purchase, so identical transactions produce different figures.

Periodic Weighted Average Cost

Everything is pooled first and costed afterwards. The $12.2222 average covers all 450 units whenever they arrived, and every unit sold in the period is charged at that rate. This is the calculation on this page: one set of purchases, one average.

It needs only period totals, which suits a business that counts stock at period end rather than tracking it continuously. It is also the version you can compute by hand in a minute, which is why it is the one taught first.

Perpetual Weighted Average Cost

The average is recomputed the moment new stock arrives, and each sale is costed at whatever the average happens to be on that date. Sales matter here, and so does order.

The average moving through the period
TransactionUnits on handCost on handAverage cost
Opening stock100$1,000.00$10.0000
Buy 200 @ $12300$3,400.00$11.3333
Sell 180120$1,360.00$11.3333
Buy 150 @ $14270$3,460.00$12.8148
Sell 120150$1,922.22$12.8148

Cost of goods sold becomes $3,577.78 rather than $3,666.67, and ending inventory $1,922.22 rather than $1,833.33. The first 180 units were sold before the dearer April stock arrived, and perpetual costing records that; periodic costing charges them with an average that includes it.

The gap is $88.89 on a $5,500 pool here, and it widens as prices move faster. Neither figure is wrong — they answer slightly different questions — but the policy has to be stated and applied consistently.

Which method fits which business
PeriodicPerpetual
Average recalculatedOnce, at period endAfter every purchase
Order of transactionsIrrelevantDecides the answer
Records neededPeriod totalsEvery movement, in date order
Cost per saleKnown only at period endKnown as each sale happens
Example COGS on 300 units$3,666.67$3,577.78
SuitsStable prices, stock counted at period endVolatile prices, stock tracked in a system

Weighted Average Cost vs. FIFO and LIFO

FIFO costs the oldest units first, LIFO the newest, and weighted average cost refuses to distinguish them at all — which is why it always lands between the two.

The same 450 units, 300 sold, under three methods
MethodCost of goods soldEnding inventoryEffect on reported profit
FIFO$3,400.00$2,100.00Highest
Weighted average cost$3,666.67$1,833.33Between the two
LIFO$3,900.00$1,600.00Lowest

Weighted Average Cost vs. FIFO

FIFO charges the earliest costs to COGS and leaves the newest costs in inventory. With prices rising, that means lower COGS, higher profit, and a closing stock figure close to today's replacement price — $3,400 and $2,100 against $3,666.67 and $1,833.33 under weighted average.

The trade-off is bookkeeping. FIFO needs cost layers: what each batch cost and how much of it survives. Weighted average needs two totals. On thousands of interchangeable SKUs that difference is the whole argument.

Weighted Average Cost vs. LIFO

LIFO charges the newest costs to COGS, producing the highest COGS and lowest profit while prices rise — $3,900 against $3,666.67 here. Its ending inventory sits on old costs that can drift years away from current prices.

LIFO is also restricted. IFRS prohibits it outright, and US GAAP imposes a conformity rule when it is used for tax. Weighted average cost is accepted under both frameworks, which usually settles the question for a business reporting internationally.

Note the direction of all this depends on prices rising. With falling costs the ranking reverses — FIFO reports the highest COGS and LIFO the lowest — while weighted average stays in the middle, which is the one thing that never changes.

Advantages and Limitations of Weighted Average Cost

It is the simplest costing method to run and the hardest to manipulate, at the price of never reflecting what any single unit actually cost.

Advantages of Weighted Average Cost

  • Simple to operate. Two totals produce the cost, with no layers to track and no history per unit.
  • Smooths price volatility. A spike is spread across every unit instead of landing on one month's margin.
  • Hard to game. Timing a purchase near period end barely moves the average, while it can shift a LIFO figure sharply.
  • Accepted everywhere. Permitted under both IFRS and US GAAP.
  • Fits interchangeable goods. When units are identical, tracking which one sold adds cost and no information.
  • Recomputable at any time. Because order is irrelevant under periodic costing, the figure can be rebuilt from records alone.

Limitations of Weighted Average Cost

  • No unit matches its real cost. Every unit is valued at a figure that may appear on no invoice you hold.
  • Closing stock lags the market. Old low costs stay in the average long after prices have moved on.
  • Recalculation burden under perpetual costing. Every purchase changes the average, which is impractical by hand.
  • Wrong for unique items. Serialised, bespoke or high-value goods need specific identification, not an average.
  • Two answers from one dataset. Periodic and perpetual disagree, so the policy must be documented and applied consistently.
  • Hides supplier differences. A single blended figure can conceal that one supplier is 30% dearer than another.

The last point is the one worth acting on. The average is the right number for the accounts and the wrong number for a purchasing conversation — for that, read the per-purchase contribution column, where each supplier's price and volume are still visible.

Weighted Average Cost vs. Standard Cost

Weighted average cost is an actual cost, calculated after the fact from what was really paid. Standard cost is a planned cost, set in advance and held constant until it is revised.

Both produce a single per-unit figure, which is why they are confused. They are built from opposite directions. Weighted average looks backwards at invoices; standard cost looks forwards at what a unit ought to cost under normal conditions, and treats the difference as a variance to be explained.

Two ways to arrive at one unit cost
Weighted average costStandard cost
SourceActual purchases already madeBudget, engineering estimate, negotiated price
SetAfter the period, from recordsBefore the period, by policy
ChangesWith every purchaseOnly when the standard is revised
DifferencesAbsorbed into the averageReported as purchase price and usage variances
Main useFinancial reporting and inventory valuationBudgeting, control and performance measurement
Financial statementsAcceptable as statedAcceptable only if close to actual cost

In the example, a standard cost of $12.00 against a weighted average of $12.2222 produces a $0.2222 unfavourable price variance per unit — $100 across 450 units. That variance is the information standard costing exists to surface, and the figure weighted average costing quietly absorbs.

Most manufacturers run both: standard cost for day-to-day control, and a periodic revaluation to actual — typically weighted average — so that the accounts show cost rather than plan. If the two drift far apart, the standard is stale and needs resetting.

Common Weighted Average Cost Calculation Mistakes

Seven mistakes account for most weighted average costs that come out wrong, and the first one accounts for most of those.

  1. Averaging the prices. $10, $12 and $14 average to $12.00, not the correct $12.2222. Every price must be weighted by the quantity bought at it.
  2. Leaving out opening stock. Units carried in are part of the pool and belong in both totals, at the cost they carry.
  3. Mixing unit costs and invoice totals in one column. One row entered as a total among rows entered per unit corrupts the whole average. Pick a mode and stay in it.
  4. Counting a quantity without its cost. A half-filled row inflates the denominator and drags the average down.
  5. Forgetting freight, duty and handling. If your policy capitalises them, they belong in the purchase cost before averaging, not in expenses afterwards.
  6. Rounding the average too early. Rounding $12.2222 to $12.22 before multiplying by 450 units loses a dollar. Round the result, never the input.
  7. Mixing periodic and perpetual. A period-end average applied to perpetual records reconciles to neither method.

Two checks catch nearly all of them. The average must fall between your lowest and highest unit price, and the total quantity must match the units you know you bought. The calculator prints both figures beside the result for exactly that reason.

CALCULATOR SUITE

Specialized Weighted Calculators

Explore our dedicated calculation tools tailored for academic grading, GPA, statistical datasets, inventory costing, and finance.

Academics & Courses

Weighted Grade Calculator

Calculate your overall course grade from assignments, quizzes, and midterm weights, plus find the exact score needed on your final exam.

Syllabus WeightingLetter Grades (A–F)Final Target Solver
High School & College

Weighted GPA Calculator

Compute semester and cumulative GPA with standard AP (+1.0), Honors (+0.5), and IB grade point weighting on 4.0 and 5.0 scales.

AP, IB & HonorsQuality PointsSemester & Cumulative
Percentages & Math

Weighted Percentage Calculator

Calculate weighted percentage totals from percentage or raw score components, and calculate exact percentage contribution per item.

Percentages & Raw ScoresWeight Shares100% Normalization
Statistics & Datasets

Weighted Mean Calculator

Compute the arithmetic weighted mean for any dataset or frequency distribution, and solve for any missing value or weight.

Missing Value SolverFrequency WeightsFull Step Breakdown
University Grading

Weighted Average Mark (WAM)

Work out your university WAM across course units with credit-point and year-level weighting schemes and Honours classifications.

Credit-Point WeightingYear Level MultipliersHonours Bands
Loans & Consolidation

Weighted Average Interest Rate

Calculate the effective blended interest rate and annual/monthly finance charges across mortgages, student loans, or credit cards.

Blended Rate APRLoan ConsolidationMonthly Interest Cost

Frequently Asked Questions

How Do You Calculate Weighted Average Cost?

Multiply each purchase quantity by its cost per unit, add those amounts to get the total cost, add the quantities to get the total quantity, then divide total cost by total quantity. In the example, $5,500 across 450 units gives $12.2222 per unit.

What Is the Weighted Average Cost Formula?

Weighted average cost = Σ(quantity × cost per unit) ÷ Σ(quantity). The numerator is the total amount spent and the denominator is the total quantity bought, so the formula is simply what you spent divided by what you got.

What Is an Example of Weighted Average Cost?

Buying 100 units at $10, 200 at $12 and 150 at $14 costs $5,500 for 450 units, so the weighted average cost is $12.2222 per unit. The simple average of the three prices is $12.00 — lower, because it ignores that 78% of the units were bought at the two dearer prices.

What Is the Difference Between Weighted Average Cost and Standard Cost?

Weighted average cost is an actual cost calculated after the fact from real purchases. Standard cost is a planned cost set in advance and held constant, with the difference from actual reported as a variance. Weighted average absorbs price changes; standard cost exposes them.

What Is the Difference Between Weighted Average Cost and FIFO?

FIFO charges the oldest costs to goods sold and leaves the newest in inventory, so with rising prices it reports lower COGS and higher profit than weighted average — $3,400 against $3,666.67 in the example. FIFO also requires cost layers to be tracked, while weighted average needs only totals.

What Is the Difference Between Weighted Average Cost and LIFO?

LIFO charges the newest costs to goods sold, giving higher COGS and lower profit than weighted average while prices rise — $3,900 against $3,666.67. LIFO is banned under IFRS, whereas weighted average cost is accepted under both IFRS and US GAAP.

What Is the Difference Between Periodic and Perpetual Weighted Average Cost?

Periodic calculates one average at period end and applies it to every unit sold. Perpetual recalculates a moving average after each purchase and costs each sale at the average on that date. The same transactions gave COGS of $3,666.67 periodic and $3,577.78 perpetual.

When Should You Use Weighted Average Cost?

Use it when units are interchangeable and tracking individual costs adds no information — fuel, grain, fasteners, chemicals, components — or when you want steadier reported margins through volatile purchase prices. Avoid it for serialised or bespoke items, which need specific identification.

Is Weighted Average Cost the Same as Average Cost?

In inventory accounting, yes: the average cost method is the weighted average cost method, and AVCO is the same thing again. It is not the same as a simple average of the prices, which counts each price once regardless of quantity and gives $12.00 instead of $12.2222 in the example.

How Does Weighted Average Cost Affect Inventory Valuation?

Every unit on hand is valued at the same average cost, so ending inventory is units remaining × weighted average cost — 150 × $12.2222 = $1,833.33. That sits between the FIFO and LIFO valuations, and always leaves COGS plus ending inventory equal to the cost of goods available for sale.

Calculate Weighted Average Online

Every value-weight pair, one weighted average.

The weighted average calculator multiplies each value by its weight, adds the weighted sum, divides by the total of weights, and prints the weighted average beside the standard arithmetic mean. Course grades, GPA, portfolio returns, and probability distributions all run through the same 4 steps.

Open the Weighted Average Calculator