Chayan Aggarwal / Tools

Tools / Data

Sales forecast calculator

Paste your past sales, one number per period, and get a trend forecast (with seasonality if your sales have it), a chart and an honest error estimate.

One number per period. Paste a column straight from Excel or Google Sheets.

Free Sales Forecast Calculator by Chayan Aggarwal ↗

How this forecast works

The calculator fits two things to your history. First, a trend: the straight line that best describes whether sales are rising or falling over time (an ordinary least-squares regression on the period number). Second, if you choose a season length, a set of seasonal indices: how much each month (or quarter, or weekday) typically runs above or below the trend. The forecast extends the trend forward and multiplies it by the matching seasonal index.

This is the classic decomposition approach taught in business forecasting courses. It's transparent (you can explain every number to a manager), it needs no software, and for steady businesses with a clear yearly pattern it's often surprisingly hard to beat.

The method, step by step

1. Trend: fit y = a + b·t to your data (t = 1, 2, 3…) 2. Seasonal index for each position = average of (actual ÷ trend) at that position, scaled to average 1 3. Re-fit the trend on seasonally adjusted data (actual ÷ index); repeat until stable 4. Forecast for period t = (a + b·t) × seasonal index for t's position Error: MAPE = average of |actual − fitted| ÷ actual

The example data in the box is three years of monthly sales with a summer peak. Switch season length to "None" to see how much worse a plain trend line fits.

Reading the results

  • Trend per period is the average change from one period to the next, after removing seasonality. +1.8 with monthly data means sales grow by about 1.8 units a month.
  • MAPE (mean absolute percentage error) is how far, on average, the model's fitted values sit from your actual history. Under 10% is good for monthly business data; 10 to 25% is usable; above 25% means the pattern isn't captured well and the forecast is a rough guide at best.
  • Trend R² shows how much of the movement the trend line explains, from 0 (none) to 1 (all).
  • The chart shows your actual history in white, the fitted model in blue and the forecast in red. If the blue line misses obvious turning points in the white line, trust the forecast less.

Worked example

An analyst has 36 months of sales for a product line and needs next year's monthly plan. With season length set to 12, the model finds a steady upward trend and a seasonal peak around July and August, with a dip in November. The fit error is low, so the forecast is a reasonable starting point. The analyst downloads the forecast table as CSV, pastes it into the planning spreadsheet, and adjusts specific months for a known promotion the model can't know about.

That last step matters: a statistical forecast is a baseline. Add what you know that the history doesn't, such as price changes, launches or lost customers.

How much history do you need?

For a trend-only forecast, at least 4 periods, though 12 or more is far more reliable. For a seasonal forecast, at least two full cycles (24 months for monthly data with a yearly pattern), and three or more is better, because each seasonal index is an average across cycles. Forecasting more than one cycle ahead stretches what any model can know.

When to use something else

  • Growth that speeds up or slows down. A straight-line trend can't bend. For fast-growing products, the forecast will undershoot; for maturing ones, it will overshoot. Look at the CAGR calculator for percentage growth.
  • Sudden breaks. If something changed the business (a new competitor, a pandemic, a price change), only use data from after the change.
  • Intermittent demand. Products that often sell zero units need specialised methods.
  • High stakes. For inventory or budget decisions with real money on the line, compare this with methods such as exponential smoothing (Holt-Winters) or ARIMA in Excel, R or Python.

Questions

Can I paste data with dates or dollar signs?

Paste only the sales column. Dollar signs and thousands separators are handled, but commas also separate values, so remove commas inside numbers if your figures are large (paste "12500" rather than "12,500").

Is my data uploaded?

No. The forecast is calculated in your browser and the data never leaves your device.

Why are seasonal forecasts limited to positive numbers?

Seasonal indices here are ratios (multiplicative seasonality), which only make sense for values above zero. For data that can be zero or negative, use trend only.

Last reviewed 2026-11-25