Inventory Variance: Formula, Causes and a Report You Can Act On
Inventory variance is the gap between what you counted and what your records say. How to measure it in units, money and percent, read the report, and trace each gap to its cause in WooCommerce.
Updated
In this article20 sections
Inventory variance is the difference between the stock you physically counted and the stock your records say you should have: counted quantity minus expected quantity. A negative variance means items are missing; a positive one means you found more than the system knew about. Worked out per product, in units and in money, it is the single most useful number a stock count produces.
Most explanations stop at the subtraction. This one doesn’t, because the subtraction is the easy part. What decides whether a count fixes anything is what you do next: which variances you trust, which you recount, and which you trace back to a cause before you overwrite the stock figure. Below is the inventory variance formula three ways, a worked report you can copy, what a normal variance looks like, and the specific places WooCommerce stock drifts from the shelf.
What is inventory variance?#
Every shop holds two versions of its stock. One is the number in the system, which moves when orders are placed, refunds are restocked and someone types a correction. The other is what is actually sitting on the shelf. Inventory variance is the measured gap between the two at the moment you count.
- Negative variance (a shortfall): fewer units on the shelf than the record says. Theft, damage, a mis-pick, a sale that never reduced stock in your records, or a delivery booked in but never received.
- Positive variance (an overage): more units than the record says. A delivery put away but never booked in, a return restocked twice over, a count that caught the same box twice, or a sale reduced against the wrong variation.
- Zero: the record and the shelf agree. On a well-run count, most lines land here.
Variance is not the same thing as shrinkage, though the two are often used interchangeably. Variance is the raw, signed difference for each product, and it includes counting mistakes and paperwork errors. Shrinkage is the share of stock genuinely lost to theft, damage and admin error over a period, usually expressed as a rate. You measure variance first; shrinkage is what is left once the explainable variances have been explained. If you want the rate, our guide to calculating inventory shrinkage from a WooCommerce stocktake picks up where this one ends.
The inventory variance formula: units, value and percent#
There are three ways to state the same gap, and a usable report shows all three, because each one answers a different question.
Unit variance#
Unit variance = counted quantity − expected quantity
This tells the person on the shop floor what to look for. “Four apples missing” is something you can go and check; “$12 missing” is not.
Value variance#
Value variance = unit variance × unit cost
This tells the owner and the accountant what the gap is worth, and it is what decides priority. Use the cost price, not the selling price: a missing item cost you what you paid for it. Valuing variance at retail inflates every loss by your margin and makes a slow week look like a disaster.
Variance percentage#
Variance % = variance ÷ expected × 100
This lets you compare a product you stock five of with one you stock five hundred of, and compare this count with the last one. Work it out in units for a single product, and in value for a category or the whole shop.
A worked inventory variance report#
Five products from a partial count, the same five that appear in the screenshot further down:
| Product | Expected | Counted | Unit variance | Unit cost | Value variance |
|---|---|---|---|---|---|
| Organic apples | 100 | 96 | −4 | $3.00 | −$12.00 |
| Whole milk 1L | 24 | 26 | +2 | $1.80 | +$3.60 |
| Sourdough loaf | 18 | 15 | −3 | $4.50 | −$13.50 |
| Sparkling water 6-pack | 36 | 37 | +1 | $1.20 | +$1.20 |
| Fair-trade coffee 500g | 12 | 9 | −3 | $7.30 | −$21.90 |
| Total | 190 | 183 | −7 | −$42.60 |
The expected stock is worth $555.00 at cost (100 × $3.00 + 24 × $1.80 + 18 × $4.50 + 36 × $1.20 + 12 × $7.30). So the net value variance is −$42.60 ÷ $555.00 = −7.7%, and the net unit variance is −7 ÷ 190 = −3.7%. Notice the coffee: three units, but the biggest loss in money. Sort a variance report by value, not by units, or the expensive lines hide behind the cheap ones.
Net versus absolute variance#
Here is the trap in that total. The net figure, −7 units, adds the overages and the shortfalls together, so the +2 milk and +1 water cancel out three units of loss. But an overage is not good news. It means the record was wrong in the other direction, and it usually has a cause that also produces shortfalls somewhere else: a sale reduced against the wrong product, or a delivery booked to the wrong line.
So measure count accuracy with the absolute variance, which ignores the sign:
- Absolute unit variance: 4 + 2 + 3 + 1 + 3 = 13 units, or 13 ÷ 190 = 6.8% of expected units.
- Absolute value variance: $12.00 + $3.60 + $13.50 + $1.20 + $21.90 = $52.20, or 9.4% of expected value.

Use the net value variance for the books, since it is what the stock adjustment actually posts. Use the absolute variance to judge whether your records can be trusted. A shop with a net variance of zero can still have half its lines wrong.
What is an acceptable inventory variance?#
There is no universal standard, and you should be suspicious of any single number quoted as “industry normal”. A jeweller and a greengrocer live with completely different tolerances, and the same shop tolerates different gaps on different lines. What works is setting your own bands, by value, and tightening them over time.
- Set tolerances by value, not by units. A variance of one unit on a $400 item matters; a variance of ten on a $0.30 item rarely does. Decide a money threshold per line below which you accept the count without investigation.
- Be strictest on your highest-value lines. Split the catalogue with an ABC analysis and hold A items, the few that make up most of your stock value, to the tightest band. Those are the ones worth counting most often, which is the whole idea behind cycle counting.
- Track absolute variance count after count. One count tells you the size of the gap. Three counts tell you whether it is closing. The trend matters more than any single result.
- Treat a sudden jump as an event, not a statistic. If one category’s variance doubles, something changed: a new supplier, a new member of staff, a new plugin touching stock. Find it.
What causes inventory variance in WooCommerce#
Generic guides list theft and miscounting. In an online shop, a large share of variance is the record moving in ways the owner didn’t expect. These are the causes worth checking in a WooCommerce store, each one checked against the WooCommerce source code, version 11.3.1.
Orders that change status during the count#
WooCommerce reduces stock when payment completes, or when an order moves to Processing, On hold or Completed, and puts it back when an order goes to Cancelled, Pending payment or Failed (the hooks are in wc-stock-functions.php). If you write down the expected figures at nine o’clock and count until noon, every order that changed status in between moves the record but not your list.
The shelf and the system can both be right and your report still shows a variance. Either take the expected figures at the moment you count each section, or use a snapshot and account for the sales made since. Our article on orders placed during a WooCommerce stock count walks through it.
Refunds that restock by default#
When you refund an order from the admin, the Restock refunded items checkbox is ticked by default: WooCommerce sets it through a filter that returns true unless a plugin or snippet changes it. Refund an item the customer kept, or one that came back damaged and went in the bin, and the record gains a unit the shelf never saw. That is a classic source of positive variance on returned lines.
Manual edits and imports that leave no trail#
When an order changes stock, WooCommerce writes an order note such as “Stock levels reduced:” listing each product and its old and new quantity, so you can trace it. When someone edits the Stock quantity field by hand, runs a CSV import or a bulk edit, no such note is written anywhere. A variance caused by a bad import looks exactly like theft, and nothing in WooCommerce will tell you otherwise. If a whole category is off by a similar amount, suspect an import before you suspect people. If the damage is recent, see how to undo a WooCommerce stock update.
Counting at the wrong level on variable products#
A variable product can hold stock on each variation or on the parent, shared across all of them. Count by size and colour against a parent-level figure, or the other way round, and you get variances that are pure bookkeeping. Check which one your products use before counting; parent-level versus per-variation stock explains the difference and how to tell.
The count itself#
Counters who can see the expected number tend to find it. Boxes of six get counted as one. The same shelf is counted twice because two people covered the same aisle. A blind stock count, where the counter never sees the system figure, removes the biggest of these biases, and a printed inventory count sheet with one line per location stops the double counting.
Genuine loss#
Theft, breakage, spoilage and items given away without an order. These are real, but they are the cause you can only conclude once the others have been ruled out. Book them as losses, with a reason, so the next count can tell you whether they are growing.
How to build an inventory variance report in WooCommerce#
WooCommerce has no variance report of its own: it holds one stock number per product and no history of how it got there. You can still build one by hand.
- Freeze the expected figures. Go to Products → Export, include the Stock column, and export at the moment counting starts. That file is your snapshot. Note the time.
- Count blind. Hand out count sheets without the expected column, organised by location rather than by product name.
- Add the counted column and subtract. In the spreadsheet, counted − expected for every line, then the percentage.
- Add cost. WooCommerce now has a built-in Cost of Goods Sold field, but it is off by default: turn it on under WooCommerce → Settings → Advanced → Features. Without costs entered you are stuck with units, so add costs for at least your A items.
- Adjust for orders since the snapshot. Any order that reduced or restored stock after the export time moved the record. Its order notes tell you which products and by how much.
- Sort by absolute value variance and recount the top of the list. Most large variances on a first count are counting errors.
- Post the corrections one product at a time on each product’s Inventory tab, and keep the spreadsheet: WooCommerce will not keep a record of what you changed.
It works, and for a few dozen products it is fine. For a few hundred, steps five and seven are where it falls apart: reconciling orders against a spreadsheet by hand, then retyping every corrected figure with no way back if one is wrong. The full routine for a whole-shop count is in our WooCommerce stocktake guide.
Investigate a variance before you correct it#
Overwriting the stock figure makes the variance disappear from the system. It does not make the cause disappear, and the same gap will be back next count. For anything above your tolerance, run through this order, cheapest check first:
- Recount it, ideally with a different person. This resolves more variances than everything else combined.
- Check orders since the snapshot, including cancellations, which put stock back.
- Check recent refunds on that product, and whether they were restocked.
- Check the variable product setup: parent stock or variation stock, and whether a sale landed on a sibling variation.
- Check deliveries: anything received but not booked in, or booked in but still on the pallet.
- Only then book it as a loss, and write down why.
If your stock is wrong all the time rather than just at count time, the problem is upstream of counting. Our list of nine reasons WooCommerce stock levels go wrong covers the settings and plugins behind most persistent drift.
An inventory variance report with Stocktake#
We built Stocktake for WooCommerce because the manual method breaks at exactly the steps above. The free version on WordPress.org does the report from start to finish inside WooCommerce:
- A snapshot when the session starts. Expected quantities are recorded the moment you open a count, and the count is measured against that snapshot, so the shop can keep trading while you count.
- Counting by barcode, SKU or name, with a USB or Bluetooth scanner or the camera of a phone (in beta). Blind mode hides the expected figure from counters.
- Variance in units and in money, product by product, valued from WooCommerce’s Cost of Goods data when it is set.
- One click to apply, with an automatic backup of the previous stock first, so a single undo restores it if something was posted in error. Results export to CSV.

Stocktake Pro adds what a growing shop needs once one count a year is not enough: the variance broken down by category, so the department losing stock stops hiding inside the shop total; recount and approval before anything is applied; several counters with their counts attributed; the full audit trail of restore points; and an accuracy and shrinkage trend across counts. The Stocktake page has a live demo you can try without installing anything.
Turn variance into a number you track#
A single variance report is a snapshot. The value comes from comparing them. After each count, write down three numbers: net value variance, absolute value variance as a percentage of stock value, and the count of lines outside tolerance. Then:
- Turn the losses you could not explain into a shrinkage rate with the inventory shrinkage calculator.
- Count the lines with the biggest variances more often, and the stable ones less, rather than counting everything on the same schedule.
- At year end, carry the corrected stock into your inventory valuation, so the figure your accountant files matches the shelf rather than the record.
If absolute variance falls count after count, your processes are working. If it doesn’t, the report has told you where to look.
Inventory variance: frequently asked questions#
What is a good inventory variance percentage?
There is no single industry figure that applies to every shop. Set your own tolerance by value per line, be strictest on your highest-value products, and judge yourself on absolute variance, which counts overages and shortfalls alike, falling from one count to the next. A net variance near zero can hide large errors that cancel out.
Is inventory variance the same as shrinkage?
No. Inventory variance is the signed difference between counted and expected stock for each product, and it includes counting and paperwork errors. Shrinkage is the stock genuinely lost to theft, damage and admin error over a period, usually expressed as a percentage. You find shrinkage by explaining the variances you can and treating the remainder as loss.
Can inventory variance be positive?
Yes. A positive variance means you counted more than the record shows. Common causes are deliveries put away but never booked in, refunded items restocked when they never came back, a sale reduced against the wrong product, or the same stock counted twice. Investigate overages as carefully as shortfalls, because they often point to an error that also causes a loss elsewhere.
Does WooCommerce have an inventory variance report?
Not built in. WooCommerce keeps one current stock number per product and no history of changes made by hand or by import, so it cannot compare a count with what was expected. You can export products with their stock, count, and compare in a spreadsheet, or use a stocktake plugin that snapshots expected stock and calculates the variance for you.
How often should I calculate inventory variance?
Every time you count. Most shops do a full count once a year for the accounts, and count their highest-value or most error-prone products more often with cycle counts, monthly or even weekly for the top lines. Comparing variance across counts is what tells you whether stock accuracy is improving.
