“Managing inventory isn’t just about counting stock — it’s about predicting the story each product will tell over time.”
That’s where XYZ Analysis comes in. In supply chain analytics, this method is a proven way to group items based on demand variability. Our free online calculator quickly sorts your products into X, Y, or Z categories, showing low, moderate and high relative demand variability in your selected history. Whether you’re managing steady bestsellers, seasonal spikes, or volatile products, this tool gives you instant clarity so you can plan smarter, stock better, and reduce waste.
Before you calculate: use non-negative demand for equal reporting periods. Blank periods are omitted unless you select “Treat blanks as 0”; use zero only when no demand was actually recorded, not when data is missing. Negative demand is rejected. All-zero demand is marked Unclassified because CV is undefined when mean demand is zero. XYZ measures relative variability; it does not establish seasonality or forecast accuracy.
XYZ Analysis Calculator

What is XYZ Analysis?
XYZ Analysis classifies products based on how variable their recorded demand is relative to their mean. It is a variability segmentation method—not a measure of item value, movement speed, seasonality, or forecast accuracy. Use the groups as one input to forecasting and replenishment-policy review.
Method: CV = population standard deviation ÷ mean demand. For n included equal periods, mean = sum of demand ÷ n and population standard deviation = √(sum of squared deviations ÷ n). Demand and its standard deviation use units per reporting period; CV is dimensionless (multiply by 100 for a percentage). The calculator uses division by n, not the sample n−1 convention. Mean zero is unclassified; a near-zero mean makes CV unstable. See NIST on CV and its limitations and forecast evaluation guidance. Here is how to interpret the groups:
- X Items → Products with stable, consistent demand and very little fluctuation. Low historical CV does not establish future forecast accuracy or a suitable reorder policy.
- Y Items → Items with moderate relative variability in the supplied history. Trend, seasonality, intermittent demand or one-off events may contribute, but CV by itself does not identify which pattern is present.
- Z Items → Goods with high relative demand variability, often affected by market shifts, sudden trends, or irregular customer buying habits.
When you apply XYZ Analysis to your inventory, you can:
- Prioritize forecast evaluation using comparable variability groups.
- Optimize storage space so that your warehouse holds more of what sells and less of what doesn’t.
- Support inventory-policy review by identifying items with different levels of historical relative variability; the XYZ class alone does not determine safety stock, order quantity, or stockout risk.
- Improve cash flow by investing in stock that truly matches demand patterns.
By integrating XYZ Analysis into your inventory strategy, you turn guesswork into a data-driven process — helping your business stay lean, responsive, and competitive.
How to Use the XYZ Analysis Calculator
The XYZ Analysis Calculator is designed to be simple enough for beginners yet powerful enough for professionals. In just a few steps, you can upload your inventory data, run the analysis, and get clear, color-coded results that tell you which items have low, moderate or high relative variability. Here’s how to get started.
1. Prepare Your Data
Create a simple table with your product names in the first column and their demand figures for each period (e.g., monthly sales) in the following columns. Consistent time intervals give more accurate results.
2. Download the Template (Optional)
If you’re unsure about formatting, download our ready-made CSV template, replace the sample values with your own, and save it. This ensures the tool reads your data correctly.
3. Upload or Paste Your Data & Set up CV values
After uploading your data, you can set the CV (Coefficient of Variation) thresholds that determine how items are classified into X, Y, or Z categories. These thresholds are fully adjustable, allowing you to fine-tune the classification based on your industry, product mix, and stocking strategy.
4. Run the Analysis
Hit Run XYZ Analysis to instantly see:
- Average demand for each item
- Coefficient of Variation (CV) to measure demand fluctuation
- Category (X, Y, or Z) with color-coded highlights for quick scanning
5. Download Your Results
Once complete, click Download Report to save your categorized inventory as a CSV for further planning or presentations.
Pro Tip: Once you’ve completed your XYZ Analysis, take it a step further by running an ABC classification to get a value-based breakdown alongside demand variability.
If you want to forecast demand for your X, Y, and Z categories, use our Moving Average Inventory Forecast Tool as a simple baseline; it does not model trend or seasonality. Evaluate forecasts on later observations before choosing a method.
Benefits of Using the XYZ Analysis
In the world of supply chain and inventory management, knowing demand patterns can make or break profitability. Without it, businesses risk overstocking, stockouts, poor cash flow, and wasted storage space. The XYZ Analysis takes the guesswork out by categorizing your products based on demand variability — helping you respond with precision instead of reacting to crises.
Here’s how this method transforms your inventory strategy:
1. Smarter Replenishment Planning
XYZ groups summarize observed relative variability. Combine them with demand volume, lead time, service targets and forecast errors before setting order schedules; an X label does not guarantee availability.
2. Optimized Storage Space and Layout
Every square foot of warehouse space has a cost. Use pick frequency, handling needs, dimensions and travel distance for slotting decisions. An X item has low relative variability; it need not have high volume or frequent picks.
3. Stronger Cash Flow and Financial Health
Tying up working capital in slow-moving stock is one of the most common mistakes in retail and manufacturing. CV alone does not measure tied-up cash, profitability or slow movement. Review on-hand value, demand volume and age alongside XYZ groups.
4. Reduced Operational Waste and Markdown Losses
Erratic buying decisions lead to overstocking, markdowns, and even product expirations. With XYZ classification, you can align purchase orders with actual consumption trends, reducing the risk of clearance sales or scrapping expired goods.
5. Focused Forecast Evaluation
Classification does not improve a forecast by itself. Compare naive, seasonal and other suitable methods using genuine future observations; inspect bias and error by item and group.
6. Stronger Data-Driven Decision-Making
Instead of relying on gut feeling, XYZ analysis gives you measurable demand variability metrics. Procurement, merchandising, and warehouse teams can all use the same data to make unified, well-informed decisions.
Pro Tip: For the best results, combine XYZ analysis with ABC classification. While XYZ tells you how demand behaves, our ABC tool ranks annual consumption value (annual quantity × unit cost). Together they support prioritization, but do not set a complete inventory policy.
Analysis:
The XYZ Analysis helps categorize your products based on the variability in demand over time. It describes relative dispersion, not the cause of variation or the accuracy of a forecast. By grouping products into categories X, Y, and Z, you can better manage inventory and stock levels.
X Items (Low Variability):
- These products have low relative variability in the selected history.
- Teaching example: demand of 100, 100, 100 and 100 units has mean 100, population standard deviation 0 and CV 0%. At the default thresholds it is X. Product names alone cannot determine a class.
Y Items (Moderate Variability):
- Products in this category have moderate variability in demand.
- Teaching example: 80, 100, 120 and 100 units has mean 100, population standard deviation about 14.142 and CV 14.14%. At the default thresholds it is Y.
Z Items (High Variability):
- Z items are products with high demand variability in the selected history. Inspect the time pattern separately to distinguish seasonality, trend and intermittent demand.
- Teaching example: 0, 0, 0 and 100 units has mean 25, population standard deviation about 43.301 and CV 173.21%, so it is Z at the default thresholds. A repeatable seasonal series may also have high CV while remaining forecastable.
Start your XYZ Analysis today and turn raw sales data into smarter stocking decisions.
Upload your file, run the calculation, and see exactly which products are low-, moderate- or high-variability items.
[Run Your XYZ Analysis Now →]
