Exponential smoothing for sales
Exponential smoothing forecasts with this calculation: new forecast = alpha × what sold + (1 − alpha) × the previous forecast. Alpha is a number between 0 and 1 that you choose: the larger it is, the more attention you pay to the latest.
Updated: 2026-11-27
The steps
- 1. Take a product and a weekday, for example the conchas of Saturdays.
- 2. Write a starting value, because the first Saturday has no previous forecast (it can be what you already bake).
- 3. Choose alpha, for example 0.3.
- 4. When a Saturday passes, calculate: alpha × what sold + (1 − alpha) × the forecast you had.
- 5. That result is the forecast for the following Saturday; repeat every week.
- 6. Another way to see it: new forecast = previous forecast + alpha × (sold − previous forecast), that is, you correct a part of the error.
An example (invented numbers)
| Saturday | Sold | Forecast with alpha 0.3 | Forecast with alpha 0.6 |
|---|---|---|---|
| 1 | 205 | 200 (start) | 200 (start) |
| 2 | 215 | 201.5 | 203.0 |
| 3 | 190 | 205.6 | 210.2 |
| 4 | 230 | 200.9 | 198.1 |
| 5 | 220 | 209.6 | 217.2 |
| 6 | 240 | 212.7 | 218.9 |
| 7 (to be sold) | ? | 220.9 | 231.6 |
These are invented pieces and I rounded to one decimal at each step. With alpha 0.3, the forecast of Saturday 2 is 0.3 × 205 + 0.7 × 200 = 61.5 + 140 = 201.5; that of 3 is 0.3 × 215 + 0.7 × 201.5 = 64.5 + 141.05 = 205.6. With alpha 0.6, that of Saturday 2 is 0.6 × 205 + 0.4 × 200 = 123 + 80 = 203. That of Saturday 7 with alpha 0.3 is 0.3 × 240 + 0.7 × 212.7 = 72 + 148.89 = 220.9, and with alpha 0.6 it is 0.6 × 240 + 0.4 × 218.9 = 144 + 87.56 = 231.6.
From Saturday 2 to 6, the average error (the difference between forecast and sold, over or under) was 19.2 pieces with alpha 0.3 (95.9 over 5) and 17.6 with alpha 0.6 (88.0 over 5). Copying the previous Saturday would have missed 21 on average (105 over 5). Here sales rise, and alpha 0.6 followed the rise better; with other data it may be the other way round.
What alpha means and what its limits are
- Small alpha (0.1 to 0.3): hardly moves with an odd Saturday, but is slow to follow a real change.
- Large alpha (0.6 or more): follows changes quickly, but also copies the odd Saturdays.
- There is no correct alpha: test it on your history and measure which one missed least, as in the example.
- If sales rise or fall steadily, this simple version is always a step behind.
- Do it by product and by weekday; mixing days erases the weekly pattern.
- Set aside the special dates and the days on which the product ran out: what sold there is not the demand.
How Hornada does it
Hornada forecasts each product for each day from the same weekday of recent weeks, with more weight on the recent ones, and learns the special dates from your history. The exponential smoothing in this guide is something you can build yourself in a sheet; it is not a description of Hornada's calculation.
Frequently asked questions
What starting value do I use?
What you normally bake that day, or the average of the first weeks. Its effect fades as the weeks go by.
How do I choose alpha?
Calculate the forecast with two or three values on your history and keep the one that had the lowest error; with few weeks, do not trust the difference much.
Can it be done in Excel?
Yes: in the cell of the new forecast write, for example, =0.3*B3+0.7*C3, with the sales in B and the previous forecast in C, and drag down.