Ask a distributor's purchase manager how they decide what to order and the honest answer is usually "experience": look at the shelf, remember last year, call the salesman. It works until the business grows past a few hundred items, a key person leaves, or a season like Ramadan, Onam or Diwali arrives earlier than expected.
Demand forecasting for distributors does not need complex software or a data scientist. With clean sales history from your ERP, a few simple methods and two formulas, safety stock and reorder point, you can cut both stock-outs and excess stock. This guide explains the approach with a hypothetical worked example and shows how to put it into ERPNext.
Key takeaways
- Start with clean history: net sales by item and month, with returns removed and stock-out months flagged.
- Simple methods work for most items: a moving average for steady items, with a seasonal adjustment for festival-driven items.
- Safety stock covers uncertainty in demand and lead time; the reorder point tells you when to buy.
- Put the result into ERPNext as reorder levels and quantities per warehouse, and review them monthly for A items.
Out of stock on fast movers, overstocked on the rest?
Share 12 months of sales for your top items. In a free 30-minute session we will show a forecast and reorder point for a few of them.
Forecast my top items → WhatsApp us: +91 8089051848
Or email info@nexeves.com
Why forecasting matters more for distributors
Distributors earn thin margins on many items. Too little stock loses sales and customers to competitors; too much ties up cash and risks expiry. Both problems usually affect different items at the same time, which is why a single "stock up" or "cut stock" instruction rarely works. You need an item-by-item view, and that is what a forecast gives you. For the cash side, see our guide to the cash conversion cycle.
Step 1: Prepare the sales history
- Pull net quantities sold by item and month for at least 12 months, ideally 24 or more. In ERPNext, the Sales Analytics report by item and month, or the Stock Ledger for outward movements, gives this.
- Remove returns and one-off bulk orders that will not repeat, or keep them in a separate column.
- Flag stock-out months. Sales were low because there was no stock, not because there was no demand. Treat those months carefully.
- Combine substitutes and renamed items, so history is not split across old and new codes.
Step 2: Segment items before forecasting
| Segment | Description | Approach |
|---|---|---|
| A, steady | High value, regular demand | Moving average, reviewed monthly |
| A or B, seasonal | Peaks around Ramadan, Eid, Onam, Diwali, back-to-school, summer | Seasonal index on top of the average |
| B or C, steady | Moderate value, regular | Moving average, reviewed quarterly |
| Lumpy or new | Irregular orders, or little history | Manual judgement, minimum stock or order-to-buy |
| Dead or slow | Little or no movement | No reorder; clear stock |
An ABC analysis is the easiest way to segment by value. See our guide to ABC analysis and dead stock.
Step 3: Forecast with a moving average
A three- or six-month moving average is simple, explainable and good enough for most steady items. In this hypothetical example:
| Month (hypothetical) | Units sold |
|---|---|
| Jan | 1,180 |
| Feb | 1,090 |
| Mar | 1,260 |
| Apr | 1,210 |
| May | 1,330 |
| Jun | 1,290 |
| 3-month moving average forecast for July | 1,277 |
The forecast for July is the average of April, May and June. For items with a trend, a weighted moving average that gives more weight to recent months reacts faster. Whatever you choose, measure the error each month (forecast vs actual) and keep the method that is more accurate for each segment.
Step 4: Adjust for seasonality
For seasonal items, calculate a seasonal index for each month: that month's sales divided by the average month, using at least two years of history. Multiply the base forecast by the index for the month you are forecasting. Note that Ramadan and Eid move about 10 to 11 days earlier each year in the Gregorian calendar, so align history by the festival, not by the calendar month. The same applies to Onam and Diwali, which also shift between years.
Want the reorder point calculator?
We will send the forecast, safety stock and reorder point spreadsheet from this post, with the ERPNext reports that feed it.
Send me the calculator → WhatsApp us: +91 8089051848
Or email info@nexeves.com
Step 5: Safety stock and reorder point
The forecast tells you how much you expect to sell. Safety stock protects you when demand or supplier lead time is higher than expected. The reorder point tells you when to place the order. A common textbook formula, with hypothetical inputs:
| Input (hypothetical) | Value |
|---|---|
| Average daily demand | 40 units |
| Standard deviation of daily demand | 12 units |
| Supplier lead time | 10 days |
| Service level target | about 95% (z = 1.65) |
| Safety stock = z x σ x √lead time | 1.65 x 12 x √10 ≈ 63 units |
| Reorder point = demand x lead time + safety stock | 40 x 10 + 63 = 463 units |
In this example, when stock (on hand plus already ordered, minus reserved) falls to about 463 units, it is time to order. The order quantity is usually enough to cover demand until the next order, rounded to supplier pack sizes and minimum order quantities. If lead time also varies, the safety stock formula should include lead-time variation; your analyst or implementation partner can extend it.
The service level is a business decision. A 95% target means accepting the risk of a stock-out in roughly one cycle in twenty. Choose higher targets for A items and key customers, lower for C items.
Step 6: Put it into ERPNext
- On each Item, add reorder levels per warehouse: the reorder level (your reorder point), the reorder quantity and the material request type (purchase or transfer).
- With auto reorder enabled in Stock Settings, ERPNext creates Material Requests automatically when projected quantity falls below the reorder level. Purchase converts them into purchase orders. See procurement automation in ERPNext.
- Use Stock Projected Qty to see on hand, ordered, reserved and projected quantities per item and warehouse.
- For branch or van warehouses, set reorder rules that create transfers from the main warehouse rather than purchases. See multi-warehouse transfers.
- Update reorder levels with a monthly import from your forecast sheet, or with a small script that calculates them from sales history.
Step 7: Review and improve
- Every month, compare forecast and actual for A items, and adjust.
- Every quarter, recalculate safety stock and reorder points for all active items.
- Before each festival season, review seasonal items with sales and purchase together.
- Track stock-outs (lost sales) and excess stock (items above, say, three months of cover) as two KPIs.
- Remove reorder rules from items marked for discontinuation.
Common mistakes
| Mistake | Effect | Fix |
|---|---|---|
| Forecasting from months with stock-outs | Forecast too low, more stock-outs | Flag and adjust those months |
| One reorder level for all warehouses | Excess in some branches, shortage in others | Set levels per warehouse |
| Ignoring supplier lead time changes | Late orders | Review lead times quarterly, especially for imports |
| Treating all items the same | Wasted effort or poor service | Segment first |
| Never measuring forecast error | No learning | Track error monthly for A items |
For importers in the GCC and India
Imported items have long and variable lead times, often 30 to 90 days including shipping and customs, so safety stock matters more and order quantities are often set by container loads. Include landed cost when you compare holding cost and ordering cost; see landed cost vouchers in ERPNext. For wholesale operations more broadly, see ERPNext for wholesale businesses.
Frequently asked questions
What is the simplest demand forecasting method for distributors?
A three- or six-month moving average of net sales per item works well for steady items. Add a seasonal index for items that peak around festivals or seasons.
How do I calculate safety stock?
A common formula is service factor (z) times the standard deviation of daily demand times the square root of lead time in days. Higher service levels need more safety stock.
What is a reorder point?
It is the stock level at which you should place a new order: average daily demand times lead time, plus safety stock. Use projected stock, including open orders, when comparing.
Can ERPNext reorder stock automatically?
Yes. Set reorder levels and quantities per item and warehouse, and enable automatic material requests in Stock Settings. ERPNext creates material requests when projected quantity falls below the reorder level.
How should we handle Ramadan and festival seasonality?
Align history by the festival date rather than the calendar month, since Ramadan and many festivals move each year, and apply a seasonal index for those weeks.
How often should reorder levels be updated?
Review A items monthly and all active items at least quarterly, and update before major seasons or when supplier lead times change.
Buy what will sell, when it will sell
Nexeves Technologies sets up reorder rules, purchase planning and stock dashboards in ERPNext for distributors, wholesalers and retailers in India and the GCC.
Book a free demo → WhatsApp us: +91 8089051848
Or email info@nexeves.com
Nexeves Technologies serves India & the GCC: UAE (Dubai, Abu Dhabi), Saudi Arabia (Riyadh, Jeddah), Qatar (Doha), Kuwait and Bahrain.
No comments yet. Login to start a new discussion Start a new discussion