Sales Forecasting (Exponential Smoothing and ARIMA)
Forecast the next months of sales, demand or traffic. The tool fits exponential smoothing models (simple, Holt, damped, Holt-Winters additive and multiplicative) and an automatically selected ARIMA, compares them on the most recent periods, and forecasts with prediction intervals.
Updated · By Bibin XavierData 72 × 2
| Monthtext · 72 levels | Salesnumeric |
|---|---|
| 2019-01 | 1013 |
| 2019-02 | 948 |
| 2019-03 | 1153 |
| 2019-04 | 1213 |
| 2019-05 | 1239 |
| 2019-06 | 1291 |
| 2019-07 | 1225 |
| 2019-08 | 1249 |
Variables and options
Results
72 rows · example dataModel comparison
| Model | Holdout RMSE | Holdout MAE | Holdout MAPE | In-sample RMSE | AICc |
|---|---|---|---|---|---|
| Simple exponential smoothing | 330.57 | 280.54 | 14.03% | 210.32 | 774.4 |
| Holt linear trend | 532.81 | 509.74 | 25.05% | 219.03 | 784.6 |
| Holt damped trend | 362.68 | 314.38 | 15.78% | 212.81 | 785.2 |
| Holt-Winters additive ✓ | 40.09 | 36.13 | 1.78% | 49.55 | 607.4 |
| Holt-Winters multiplicative | 67.24 | 53.55 | 2.46% | 67.10 | 651.0 |
| ARIMA(2,2,2) | 240.92 | 181.05 | 8.93% | 187.83 | — |
Note. Each model is fitted to the first 60 periods and forecasts the last 12; the chosen model is then refitted to all 72 periods. AICc compares the exponential smoothing models with each other only.
Parameters of the chosen model
| Parameter | Value |
|---|---|
| α (level) | 0.6613 |
| β (trend) | 0.0117 |
| γ (season) | 0.0507 |
| Final level | 2239.89 |
| Final trend | 16.577 |
Note. Smoothing parameters minimise the sum of squared one-step errors; initial states from the first season (Hyndman et al., 2008).
Forecast
| Period | Forecast | 80% interval | 95% interval |
|---|---|---|---|
| 2025-01 | 2008.6 | [1955.1, 2072.7] | [1897.0, 2132.6] |
| 2025-02 | 1957.1 | [1889.9, 2032.3] | [1838.2, 2083.3] |
| 2025-03 | 2168.3 | [2078.3, 2258.0] | [2028.3, 2319.5] |
| 2025-04 | 2241.0 | [2143.5, 2344.7] | [2092.8, 2414.1] |
| 2025-05 | 2302.0 | [2188.3, 2414.8] | [2133.7, 2487.5] |
| 2025-06 | 2359.3 | [2235.6, 2479.3] | [2173.1, 2563.6] |
| 2025-07 | 2309.2 | [2178.7, 2445.3] | [2110.5, 2534.1] |
| 2025-08 | 2344.4 | [2205.3, 2480.6] | [2127.2, 2560.7] |
| 2025-09 | 2391.8 | [2247.9, 2537.1] | [2163.3, 2625.7] |
| 2025-10 | 2507.7 | [2352.0, 2668.7] | [2270.4, 2763.2] |
| 2025-11 | 2629.8 | [2466.6, 2786.4] | [2383.2, 2881.3] |
| 2025-12 | 2928.7 | [2755.5, 3093.6] | [2676.8, 3189.9] |
Note. Prediction intervals from 1,000 simulated future paths with bootstrapped residuals.
Actual, fitted and forecast
Interpretation
Of the models compared, Holt-Winters additive forecast the last 12 periods most accurately (MAPE 1.8%), so it is used for the forecast. Over the next 12 periods it predicts a total of 28,148, up 9.7% on the last 12 periods. The 95% interval for the final period runs from 2677 to 3190; intervals widen the further ahead you forecast. The residuals look like white noise (Ljung-Box test), which supports the model.
How to cite this tool
Using these results in a thesis, journal article, report or class assignment? Please cite this free tool so others can find it. It keeps the site free.
APA 7
Xavier, B. (2026). Sales Forecasting (Exponential Smoothing and ARIMA) [Web application]. FreeStatisticalTools.com. https://freestatisticaltools.com/sales-forecasting/
BibTeX
@software{xavier_salesforecasting_2026,
author = {Xavier, Bibin},
title = {Sales Forecasting (Exponential Smoothing and ARIMA)},
publisher = {FreeStatisticalTools.com},
year = {2026},
url = {https://freestatisticaltools.com/sales-forecasting/},
note = {Web application}
}Suggested sentence for your methods section: “The analysis was carried out with the free Sales Forecasting (Exponential Smoothing and ARIMA) tool on FreeStatisticalTools.com (Xavier, 2026).”
What is sales forecasting?
This forecasting tool fits simple, Holt, damped and Holt-Winters exponential smoothing models and an automatically selected ARIMA model to your series, compares them on the most recent periods, and forecasts with the most accurate one, including 80% and 95% prediction intervals, MAPE and RMSE.
When to use sales forecasting
Use it to forecast sales, demand, revenue, website traffic or any regularly spaced series for planning, budgeting and inventory, when you want an automatic, defensible method with honest uncertainty bands.
Assumptions
- The series is regularly spaced (every day, week, month or quarter) with no gaps.
- The future resembles the past: trends and seasonal patterns continue; one-off shocks are not anticipated.
- At least two full seasons are needed for seasonal models; more history gives better estimates.
How to set up your data
One row per period in time order with the value to forecast, and optionally a column with the period label (for example 2025-03 or 2025-03-01).
Forecasting with exponential smoothing and ARIMA
Sales, demand and traffic forecasts drive budgets, inventory, staffing and capacity plans. For regularly spaced series with a reasonable history, two families of statistical methods have proven hard to beat in forecasting competitions such as the M3 and M4: exponential smoothing and ARIMA. This tool fits several models from both families, compares their accuracy on the most recent periods, and forecasts with the best one, with 80% and 95% prediction intervals.
The exponential smoothing models
- Simple exponential smoothing (SES): the forecast is a weighted average of past values, with weights that decline exponentially into the past. The smoothing parameter α (0–1) controls how fast: high α reacts quickly to recent changes, low α smooths heavily. Suitable for series without trend or seasonality.
- Holt’s linear trend: adds a smoothed trend, updated with parameter β, so forecasts continue in a straight line.
- Holt’s damped trend: multiplies the trend by a damping factor φ each period, so long-range forecasts level off. Damped trends are among the most accurate methods in practice because trends rarely continue forever.
- Holt-Winters additive: adds seasonal factors that are added to the level and trend, updated with γ. Use it when seasonal swings are roughly constant in size.
- Holt-Winters multiplicative: seasonal factors multiply the level, so seasonal swings grow with the level of the series, common for growing sales.
Initial level, trend and seasonal factors are taken from the first season (the standard heuristic of Hyndman et al., 2008), and α, β, γ and φ are chosen by minimising the sum of squared one-step-ahead errors. The estimates match statsmodels’ ExponentialSmoothing with the same initialisation.
ARIMA
ARIMA(p, d, q) models describe a series by its own past values (autoregressive terms, p), past forecast errors (moving average terms, q) and differencing (d) to remove trends. The tool chooses d with the augmented Dickey-Fuller test (difference until the series is stationary), then fits all models with p and q from 0 to 2 by conditional sum of squares and keeps the one with the lowest AICc, including a mean or drift term. Forecast intervals come from the model’s ψ-weights. ARIMA models in this tool are non-seasonal, so for strongly seasonal series Holt-Winters usually wins the comparison.
How the best model is chosen
In-sample fit always favours more complex models, so the automatic mode uses a holdout: each model is fitted to all but the last h periods (by default one season, or 20% of the series), forecasts those h periods, and is scored by RMSE, MAE and MAPE. The model with the lowest holdout RMSE is then refitted to the full series to produce the forecast. You can also choose a method yourself, set a different holdout length, or compare models in the table.
Prediction intervals
A point forecast is only half the answer; plans should allow for uncertainty. For exponential smoothing, the tool simulates 1,000 future paths by running the model forward with randomly resampled in-sample errors and takes the 10th/90th and 2.5th/97.5th percentiles as the 80% and 95% intervals. For ARIMA, intervals are analytic. Intervals widen with the horizon. If they are too wide to be useful, a shorter horizon, aggregation (monthly instead of weekly) or additional information is needed.
Worked example with the built-in data
The example contains 72 months of sales with a rising trend and a strong seasonal peak in November and December. Holding out the last 12 months, Holt-Winters additive forecasts them most accurately (MAPE 1.8%, RMSE 40), far better than the non-seasonal methods (MAPE 9–25%) and slightly better than the multiplicative version (2.5%). The ARIMA model chosen automatically, ARIMA(2,2,2), cannot capture seasonality and has a MAPE of 8.9%. Refitted on all data, Holt-Winters forecasts about 28,150 units for the next 12 months, about 10% more than the last 12, with a December peak of roughly 2,930 (95% interval 2,680 to 3,190). The Ljung-Box test finds no remaining autocorrelation in the residuals.
Preparing your data
- One row per period in time order, with no gaps. Fill missing periods (for example with zero sales, if that is what happened) before forecasting.
- Set the season length to the number of periods per cycle: 12 for monthly data, 4 for quarterly, 52 for weekly data with yearly seasonality, 7 for daily data with weekly seasonality, or 1 for none.
- Seasonal models need at least two full seasons plus a few periods; three or more seasons give better seasonal factors.
- Add a period column (for example 2025-03) and the forecast table will continue the labels automatically.
- Consider cleaning one-off outliers (a stock-out, a one-time order) that would otherwise distort the level or seasonality.
Measuring accuracy
- RMSE (root mean squared error) is in the units of the series and penalises large errors.
- MAE (mean absolute error) is in the same units but less sensitive to occasional large errors.
- MAPE (mean absolute percentage error) is unit-free and easy to communicate, but undefined when actual values are zero and inflated when they are small.
- The Ljung-Box test checks whether the residuals are white noise; significant autocorrelation means some pattern is left in the data.
Limitations
These methods extrapolate the patterns in the history. They cannot anticipate events that have not happened before, such as a new competitor, a price change or a pandemic, and they do not use explanatory variables such as advertising or prices. For those, use regression-based approaches such as the marketing mix model or the interrupted time series tool. For new products without history, the Bass diffusion model is more appropriate.
Reporting
Report the series, the forecast method and how it was chosen, its holdout accuracy, and the forecasts with intervals. Example: “Monthly sales were forecast with an additive Holt-Winters model, selected by accuracy over a 12-month holdout (MAPE = 1.8%). The model forecast 28,148 units for the next 12 months.”
Glossary of forecasting terms
- Horizon: how many periods ahead you forecast; accuracy usually falls as the horizon grows.
- Holdout (test set): the most recent periods kept aside to measure out-of-sample accuracy.
- Level, trend and season: the three components that exponential smoothing tracks and updates each period.
- Smoothing parameter: a weight between 0 and 1 that controls how fast a component reacts to new data.
- Damping: gradually flattening the trend so long-range forecasts do not grow without limit.
- Stationarity: a constant mean and variance over time; ARIMA achieves it by differencing.
- AICc: Akaike’s information criterion corrected for small samples, used to compare models fitted to the same data.
- Prediction interval: the range within which future values are expected to fall with a given probability, wider than a confidence interval for the mean.
Key references: Hyndman and Athanasopoulos (2021), Forecasting: Principles and Practice (3rd ed.); Hyndman, Koehler, Ord and Snyder (2008), Forecasting with Exponential Smoothing; Gardner (2006), International Journal of Forecasting; Box and Jenkins (1970).
How to use this tool
- Enter your data. Paste columns from Excel, Google Sheets or SPSS with variable names in the first row, or upload a CSV or Excel file. The example data shows the expected layout.
- Choose the variables. Select the series to forecast, period (optional and for labels).
- Set the options. Fill in season length (12 monthly, 52 weekly, 4 quarterly, 1 none), method, periods to forecast and holdout periods for comparison (0 = automatic).
- Read the results. Results update automatically. Read the plain-English interpretation, then use Copy table to paste APA-style tables into Word and Copy for the results sentence.
How to report sales forecasting in APA style
Report the method, how it was selected, its holdout accuracy (MAPE or RMSE) and the forecasts with prediction intervals.
Frequently asked questions
Which forecasting method should I use?
Let the tool choose: it fits several models to all but the last periods, compares holdout accuracy and refits the best one on all data.
What is Holt-Winters?
Exponential smoothing with level, trend and seasonal components; additive when seasonal swings are constant, multiplicative when they grow with the level.
What is ARIMA?
A model using past values (AR), past errors (MA) and differencing (I). The tool chooses differencing with the ADF test and the orders by AICc.
How much history do I need?
At least two full seasons plus a few periods for seasonal models; three or more seasons are better.
How are prediction intervals computed?
By simulating future paths with resampled errors for exponential smoothing, and analytically for ARIMA.
What is a good MAPE?
It depends on the series; below 10% is often considered good for monthly sales, but compare with a naive benchmark.
Related tools
See also
Learn this method step by step in the free course Customer and Marketing Analytics, with exercises and a certificate.
Browse all categories
Data cleaning and preparation · Describe and explore · Compare means · Nonparametric tests · Correlation and regression · Bayesian statistics · Categorical data · Reliability and agreement · Multivariate analysis · Structural equation modeling · Econometrics and time series · Panel data and causal inference · Marketing research · Marketing analytics · Survival, clinical and meta-analysis · Study planning and calculators · PLS-SEM