Weighted Grade Calculator
Calculate your overall course grade from assignments, quizzes, and midterm weights, plus find the exact score needed on your final exam.
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.
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.
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.
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.
To calculate weighted average cost, multiply each quantity by its cost per unit, add those amounts, and divide by the total quantity.
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.
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.
A workshop buys the same fitting three times in a quarter, at a rising price.
| Purchase | Quantity | Cost per unit | Total cost |
|---|---|---|---|
| Opening stock | 100 | $10.00 | $1,000.00 |
| March purchase | 200 | $12.00 | $2,400.00 |
| April purchase | 150 | $14.00 | $2,100.00 |
| Total | 450 | $12.2222 | $5,500.00 |
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.
| Purchase | Share of quantity | Cost per unit | Adds to the average |
|---|---|---|---|
| Opening stock | 22.2% | $10.00 | $2.2222 |
| March purchase | 44.4% | $12.00 | $5.3333 |
| April purchase | 33.3% | $14.00 | $4.6667 |
| Weighted average cost | 100% | — | $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.
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.
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:
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.
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.
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.
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.
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.
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.
Once the average is known, two figures follow from it, and the calculator's valuation box does exactly this multiplication:
| Figure | Quantity | Value |
|---|---|---|
| Goods available for sale | 450 | $5,500.00 |
| Sold during the period | 300 | $3,666.67 |
| Remaining on hand | 150 | $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 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.
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.
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.
| Transaction | Units on hand | Cost on hand | Average cost |
|---|---|---|---|
| Opening stock | 100 | $1,000.00 | $10.0000 |
| Buy 200 @ $12 | 300 | $3,400.00 | $11.3333 |
| Sell 180 | 120 | $1,360.00 | $11.3333 |
| Buy 150 @ $14 | 270 | $3,460.00 | $12.8148 |
| Sell 120 | 150 | $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.
| Periodic | Perpetual | |
|---|---|---|
| Average recalculated | Once, at period end | After every purchase |
| Order of transactions | Irrelevant | Decides the answer |
| Records needed | Period totals | Every movement, in date order |
| Cost per sale | Known only at period end | Known as each sale happens |
| Example COGS on 300 units | $3,666.67 | $3,577.78 |
| Suits | Stable prices, stock counted at period end | Volatile prices, stock tracked in a system |
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.
| Method | Cost of goods sold | Ending inventory | Effect on reported profit |
|---|---|---|---|
| FIFO | $3,400.00 | $2,100.00 | Highest |
| Weighted average cost | $3,666.67 | $1,833.33 | Between the two |
| LIFO | $3,900.00 | $1,600.00 | Lowest |
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.
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.
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.
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 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.
| Weighted average cost | Standard cost | |
|---|---|---|
| Source | Actual purchases already made | Budget, engineering estimate, negotiated price |
| Set | After the period, from records | Before the period, by policy |
| Changes | With every purchase | Only when the standard is revised |
| Differences | Absorbed into the average | Reported as purchase price and usage variances |
| Main use | Financial reporting and inventory valuation | Budgeting, control and performance measurement |
| Financial statements | Acceptable as stated | Acceptable 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.
Seven mistakes account for most weighted average costs that come out wrong, and the first one accounts for most of those.
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
Explore our dedicated calculation tools tailored for academic grading, GPA, statistical datasets, inventory costing, and finance.
Calculate your overall course grade from assignments, quizzes, and midterm weights, plus find the exact score needed on your final exam.
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.
Calculate weighted percentage totals from percentage or raw score components, and calculate exact percentage contribution per item.
Compute the arithmetic weighted mean for any dataset or frequency distribution, and solve for any missing value or weight.
Work out your university WAM across course units with credit-point and year-level weighting schemes and Honours classifications.
Determine the weighted unit cost across multiple inventory batches, wholesale lots, or tiered purchase price orders.
Calculate ending inventory valuation and Cost of Goods Sold (COGS) using periodic and perpetual moving average costing methods.
Calculate the effective blended interest rate and annual/monthly finance charges across mortgages, student loans, or credit cards.
Calculate intraday VWAP, typical price bars (H+L+C)/3, running session volume, and anchored price benchmark deviations.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
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