Skip to content
All tools

ABC/XYZ classifier

Sort your SKUs by how much value they carry (ABC) and how steady their demand is (XYZ), then see a planning approach for each of the nine groups.

Runs in your browser. Nothing you type, paste or upload is sent anywhere unless you choose to submit a contact form.

Your demand history

Paste or upload a CSV in long format (sku, period, units, and optionally unit_price or revenue), or wide format (sku, then one column per period, and optionally unit_price). Comma, semicolon or tab separated. At least two periods.

The sample uses 60 made-up SKUs over 12 months. Replace it with your own data.

Go beyond the classification

A retrospective analysis applies this classification to your full history and quantifies what each cell costs you in stockouts and excess stock.

Request an inventory analysis

How it works

ABC: share of value

ABC analysis applies the Pareto principle to inventory. Each SKU gets a value over the whole history, SKUs are sorted from largest to smallest, and the running total decides the class.

value_i   = Σ units × unit price   (revenue column if given; Σ units if there are no prices)
share_i   = value_i ÷ Σ value
before_i  = sum of share for every SKU ranked above i
class     = A if before_i < 80%
            B if before_i < 95%
            C otherwise

Why the class follows where the slice begins

A SKU takes the class of the band where its slice of value starts. The largest SKU is always A, even if it alone is more than 80% of value, and the SKU that crosses the 80% line is still A. Changing the thresholds moves these lines.

Value is revenue when every row has a price or revenue. If any row lacks one, the tool measures every SKU in units instead and tells you, so SKUs are not compared on mixed bases.

XYZ: variability of demand

XYZ analysis uses the coefficient of variation (CV) of demand per period: the standard deviation divided by the mean. It compares variability across SKUs with very different volumes.

n       = number of periods in the file
mean_i  = Σ demand ÷ n
std_i   = √( Σ (demand − mean_i)² ÷ n )   population standard deviation
CV_i    = std_i ÷ mean_i
class   = X if CV < 0.5
          Y if 0.5 ≤ CV ≤ 1.0
          Z if CV > 1.0

Data rules

  • Missing periods count as zero. In long format, every period that appears anywhere in the file is a period for every SKU; a SKU with no row for a period had zero demand in it. In wide format, an empty cell is zero.
  • The standard deviation is the population form (divide by n), not the sample form (divide by n − 1).
  • SKUs with zero demand in every period have no CV. They go to Z and the results say how many.
  • Rows for the same SKU and period are added together.
  • Rows with no SKU, no period, missing units, a value that is not a number, a negative value, a number above one trillion, or more columns than the header are skipped and listed with the reason.
  • In wide format each period column needs its own name. A header that repeats a period name is rejected and the repeated name is shown.
  • The delimiter (comma, semicolon or tab) is detected. A number with both a thousands separator and decimals sets the format for the whole file: 1.234,56 means dots group thousands and commas are decimals, so 2,5 reads as 2.5; 1,234.56 means the opposite. Rows with numbers that break that format, such as 1,234.56 in a 1.234,56 file, are skipped. If the file has as many of one kind as the other, no comma is read. Without such a number, decimal commas (12,5) are accepted only when the delimiter is not a comma, no number in the file uses a dot, and at least one comma cannot be a thousands separator. If every comma looks like 1,234 or 1,200, it could mean either, so those rows are skipped as numbers we cannot read safely instead of guessed.
  • The header row is found among the first 10 non-empty rows by a SKU column name (sku, item, product, code, articulo, producto, clave). Without a header, columns are read as sku, period, units, unit_price.

Limits of this classification

  • It describes the past. A SKU that is steady this year can change next year.
  • With few periods the CV is noisy. Weekly data usually look more variable than the same demand added up by month.
  • New and discontinued SKUs look erratic, because periods before launch or after the end count as zero.
  • The 80/95 and 0.5/1.0 thresholds are common conventions, not rules. Adjust them to your range.
  • Revenue is not margin. A high-revenue SKU with a thin margin may deserve less attention than its class suggests.

What a retrospective analysis does differently

A retrospective analysis applies this classification to your full sales and inventory history, then measures what each cell cost you: margin lost to stockouts, and the cost of carrying and clearing excess stock. The result shows which cells, and which SKUs in them, deserve a different planning approach.

Request an inventory analysis