# ABC-XYZ Analysis and Safety Stock for Healthy Inventory with ERP

> How to group items with ABC (value) and XYZ (demand stability) analysis, set safety stock and reorder points, define service targets per group, handle slow-moving items, and monitor inventory turnover in an ERP.

Source: https://www.agsora.tech/en/blog/analisis-abc-xyz-dan-stok-pengaman-untuk-persediaan-yang-sehat-dengan-erp
Category: ERP & Operations · Published: 2026-11-23 · Updated: 2026-12-01 · By PT Agsora Teknologi Indonesia

Inventory is one of the largest items on the balance sheet of many distribution, retail, and manufacturing companies. Two classic problems appear together: on one side the warehouse is full of goods that never sell, on the other the most wanted items are often out of stock. The cause is usually the same: every item is treated alike. Items that bring in most of the revenue are watched as loosely as items that sell twice a year. ABC-XYZ analysis gives a simple way to treat items differently, and safety stock provides a calculated buffer instead of a guess. This article explains both, how to compute them from ERP data, and how to turn them into consistent operating policy.

*Sales and usage data in the ERP is the raw material for grouping items objectively.*

## Why not every item should be treated alike

Picture a distributor with 3,000 item codes. Typically around 10 to 20 percent of codes account for roughly 70 to 80 percent of sales or usage value, while most of the rest contribute little. The figures vary between businesses, so compute them from your own data. When attention, warehouse space, and money are spread evenly, important items get too little attention while unimportant ones tie up capital.

Grouping helps answer different questions for each group: how often to count, how high the availability target should be, who approves purchases, and where items are stored.

## ABC analysis: by value

ABC ranks items by annual value contribution, meaning usage or sales volume multiplied by price or cost per unit.

### How to compute it

1. Take the last 12 months of usage or sales per item.

2. Multiply by average cost per unit to get annual value.

3. Sort from largest to smallest and compute the cumulative percentage.

4. Set group boundaries. A common rule: A covers about 70 to 80 percent of cumulative value, B the next 15 to 20 percent, and C the rest.

These boundaries are not natural laws; adjust them to your data distribution. If only 5 items account for 90 percent, group A can be very small.

### Treatment by group

- Group A: close monitoring, more frequent counts, more careful forecasts, higher-level purchase approval, and a close supplier relationship.
- Group B: moderate control, reorder points with periodic review.
- Group C: simple control, order in larger quantities less often, and tolerate some overstock to reduce workload.

## XYZ analysis: by demand stability

ABC ignores how predictable demand is. An A item with steady demand is far easier to manage than an A item with erratic demand. XYZ completes the picture by measuring demand variability.

### How to compute it

Use the coefficient of variation (CV): the standard deviation of demand per period divided by its mean, from monthly or weekly data.

- X: low CV, stable and easy-to-forecast demand.
- Y: medium CV, with a fairly clear trend or seasonality.
- Z: high CV, sporadic or unpredictable demand.

The CV boundaries also need to fit your industry. Many practitioners use rough ranges such as below 0.5 for X, 0.5 to 1 for Y, and above 1 for Z, but this is a starting point, not a standard.

## The ABC-XYZ matrix and what it means

Combining the two dimensions yields nine cells. Some of the most important combinations:

- AX: high value, stable demand. Prime candidate for automatic replenishment, supplier contracts, and low safety stock because it is easy to forecast.
- AZ: high value, unpredictable demand. The riskiest. Needs collaborative forecasting with customers, measured safety stock, and close monitoring.
- CX: low value, stable demand. Suited to a two-bin system or automatic ordering in large quantities.
- CZ: low value, unpredictable demand. Consider making to order, not stocking, or removing from the catalogue.

The matrix gives purchasing, the warehouse, sales, and finance a shared language when discussing stock policy.

## Safety stock: a calculated buffer

Safety stock is extra inventory above average demand during lead time, to absorb demand uncertainty and supplier delays. Without it, every demand spike or late delivery becomes an immediate stockout. With too much, it becomes idle capital.

### The basic formula

One commonly used approach:

Safety stock = service factor × standard deviation of demand during lead time

The service factor (Z) comes from the target service level, for example about 1.28 for 90 percent, 1.65 for 95 percent, and 2.33 for 99 percent. The standard deviation of demand during lead time depends on demand variability per period, lead time length, and, where needed, variability in supplier lead time.

This formula assumes demand is close to normally distributed. For sporadic Z items that assumption is weak; use actual historical data, days-of-supply rules of thumb, or methods suited to intermittent demand.

### Reorder point

Reorder point = average daily demand × lead time + safety stock

When available stock plus incoming orders drops to this point, the ERP flags it or creates a purchase suggestion. The details of the replenishment cycle are covered in [inventory planning and reordering](https://www.agsora.tech/en/blog/perencanaan-stok-dan-pembelian-ulang).

### Variables that need honest data

- Actual supplier lead time, not the contract figure. Take it from the difference between PO date and receipt date.
- Actual demand, not just fulfilled sales. Sales lost because of a stockout hide true demand.
- Seasonal changes and promotions, which should be separated so they do not distort the average.

## Setting service-level targets per group

A 99 percent service level for every item would be very expensive. Use the ABC-XYZ combination to differentiate:

- AX and BX: 97 to 99 percent because demand is stable and value is high.
- AZ: consider a high target, but with customer collaboration so needs are visible earlier, not only by adding stock.
- CX and CY: 90 to 95 percent is enough.
- CZ: accept the chance of a stockout, or move to order-on-demand.

These figures illustrate an approach, not mandatory numbers. The basis is the cost of a stockout versus the cost of holding; an item whose absence stops a production line or sends a large customer elsewhere has a stockout cost far higher than its price.

## Handling slow-moving and obsolete items

This analysis also reveals items that do not move.

- Flag items with no movement over a set period, for example 6 or 12 months, as slow-moving.
- Review the cause: forecast error, a replaced product, or a customer who left.
- Options: staged discounts, bundles, return to supplier if possible, sale through another channel, donation, or write-off with approval.
- Stop automatic reordering for slow items and add a check before any new PO.
- Prepare an inventory provision according to the company's accounting policy.

For expiring or batch-tracked items, also consider the FEFO issuing rules covered in [lot, batch, and expiry date tracking](https://www.agsora.tech/en/blog/pelacakan-lot-batch-dan-tanggal-kedaluwarsa-dengan-erp).

## Linking to forecasting, S&OP, and the warehouse

- Better demand forecasts shrink safety stock. Statistical and AI methods for this are in [demand forecasting with AI and ERP data](https://www.agsora.tech/en/blog/peramalan-permintaan-dengan-ai-dan-data-erp), and the cross-functional process is in [sales and operations planning with ERP data](https://www.agsora.tech/en/blog/sales-and-operations-planning-sop-dengan-data-erp).
- Group A should take the most accessible locations; see [warehouse picking, putaway, and slotting strategy](https://www.agsora.tech/en/blog/strategi-picking-putaway-dan-slotting-gudang-dengan-wms-dan-erp).
- Count frequency can follow the group: A more often, C less often. Techniques that do not halt operations are in [stock taking without stopping operations](https://www.agsora.tech/en/blog/stock-opname-tanpa-menghentikan-operasional).
- Warehouse systems more broadly are discussed in [warehouse management systems for growing businesses](https://www.agsora.tech/en/blog/sistem-manajemen-gudang-untuk-bisnis-yang-bertumbuh).

## Monitoring turnover and stock health

Useful indicators:

- Inventory turnover: cost of goods sold divided by average inventory value, or its inverse in days of inventory.
- Fill rate and the number of stockout events per group.
- Percentage of stock value classed as slow-moving or obsolete.
- Stock accuracy from cycle counts.
- Ratio of safety stock to average demand, per group.
- Forecast versus actual difference.

Compare across periods and groups. Do not chase the highest possible turnover; turnover that is too high can mean frequent stockouts.

## A simple illustration

Imagine one AX item with average demand of 40 units per day and a daily standard deviation of 8 units. Average supplier lead time is 9 days. With a 95 percent service target (factor about 1.65), the standard deviation over lead time is roughly 8 times the square root of 9, which is 24 units, so safety stock is about 40 units. The reorder point becomes 40 × 9 + 40 = 400 units. If lead time often stretches to 14 days, the numbers must be recalculated; this is where actual lead-time data from the ERP saves you from guessing. The figures above only illustrate the calculation and are not a recommendation for any specific item.

## Common mistakes

- One minimum-stock rule for all items.
- Safety stock calculated once and never reviewed.
- Lead time taken from contract figures rather than actual data.
- Sales lost to stockouts treated as no demand.
- Safety stock raised repeatedly to cover process problems, such as inaccurate stock records.
- New or seasonal items analysed with a full year of data that is not representative.
- Analysis results never enter the ERP, so they do not influence purchasing.

## Implementation steps

1. Gather 12 to 24 months of data: sales or usage, costs, and actual lead times.

2. Clean anomalies, such as large one-off transactions or long stockout periods.

3. Compute the ABC and XYZ groups, then pilot on one warehouse or category.

4. Set service-level targets and compute safety stock and reorder points.

5. Enter the parameters in the ERP as item attributes so purchase suggestions use them.

6. Review every quarter, and more often for groups A and Z.

7. Record lessons: items that changed group, stockout events, and effect on working capital.

## Closing

ABC-XYZ and safety stock are not complicated techniques, but the results are real: better-directed working capital, fewer stockouts of important items, and a fairer warehouse workload. The keys are honest data, parameters stored in the ERP, and regular review. Start with one category, measure the effect, then expand. If you want to apply item classification, safety stock, and automatic purchase suggestions in an ERP that fits your business pattern, the Agsora team can help prepare the data and design a staged rollout.

Apply this grouping to [stock planning for Chinese New Year and Eid 2027](https://www.agsora.tech/en/blog/perencanaan-stok-menjelang-imlek-dan-lebaran-2027-dengan-erp).

**Manage inventory with data, not guesses** Talk through your stock data and demand patterns with the Agsora team to design item classification and purchase suggestions in your ERP. [Free consultation](https://www.agsora.tech/en/services/erp)
