Linear Sales Forecast Calculator

Forecast future sales using linear regression (least squares). Enter historical data points and get trend-based projections with confidence insights.

Enter comma-separated values (one per period). Minimum 3 periods, recommended 6+.

Trend Equation
y = $7,171.43x + $95,733.33
Slope: $7,171.43/period
R² (Fit Quality)
0.910
Excellent — very strong linear trend
Growth per Period
$7,171.43
≈5.1% of latest
Standard Error
$4,712.19
Typical forecast deviation
R² = 0.910
Excellent — very strong linear trend6 data points analyzed

Historical Fit & Forecast

PeriodActualPredictedResidual
1$100,000.00$102,904.76-$2,904.76
2$112,000.00$110,076.19+$1,923.81
3$118,000.00$117,247.62+$752.38
4$130,000.00$124,419.05+$5,580.95
5$125,000.00$131,590.48-$6,590.48
6$140,000.00$138,761.90+$1,238.10
7 (forecast)$145,933.33±$4,712.19
8 (forecast)$153,104.76±$4,712.19
9 (forecast)$160,276.19±$4,712.19
10 (forecast)$167,447.62±$4,712.19
11 (forecast)$174,619.05±$4,712.19
12 (forecast)$181,790.48±$4,712.19

Trend Visualization

100K
112K
118K
130K
125K
140K
146K
153K
160K
167K
175K
182K
ActualForecast
Planning notes, formulas, and examples

About the Linear Sales Forecast Calculator

Linear sales forecasting is one of the most intuitive and widely-used methods for predicting future revenue. By fitting a straight line through your historical sales data using least-squares regression, it identifies the underlying growth trend and extends it forward to generate forecasts. The method works by minimizing the sum of squared differences between actual data points and the fitted line, creating the mathematically optimal trend.

While more sophisticated forecasting methods exist, linear regression remains invaluable for its simplicity, interpretability, and reliability with reasonably stable growth patterns. It answers the fundamental question: if current trends continue, where is my revenue heading? The slope of the line tells you your average period-over-period revenue change, while the intercept provides the baseline.

This calculator lets you enter historical revenue data points, automatically computes the best-fit line, and projects revenue forward. It also calculates R² (coefficient of determination) so you can assess how well the linear model fits your data and how much confidence to place in the forecast.

When This Page Helps

Linear forecasting cuts through data noise to reveal your actual growth trajectory. Instead of reacting to individual months of ups and downs, it shows the statistical trend across all your data. This calculator handles the regression math, gives you a quality-of-fit metric (R²), and projects forward so you can plan hiring, budgets, and targets based on data rather than gut instinct.

How to Use the Inputs

  1. Enter your historical sales data — one value per period (monthly or quarterly)
  2. Add at least 4 data points; more data produces more reliable forecasts
  3. Review the trend line equation (y = mx + b) and R² value
  4. Check the forecast projections for upcoming periods
  5. Evaluate whether the linear model fits well (R² > 0.7 is good)
  6. Use the sensitivity table to see how different growth rates compare to the trend
Formula used
y = mx + b (Linear equation) m (slope) = [nΣxy − ΣxΣy] / [nΣx² − (Σx)²] b (intercept) = [Σy − mΣx] / n R² = 1 − [SS_res / SS_tot] where SS_res = Σ(y_i − ŷ_i)² and SS_tot = Σ(y_i − ȳ)²

Example Calculation

Result: Trend: +$7,371/period • R²: 0.93

With 6 data points showing general upward movement, the linear regression finds a best-fit slope of $7,371 per period and an intercept of $99,067. The R² of 0.93 indicates the linear model explains 93% of the variance in the data, suggesting high confidence in the trend. The forecast for period 7 is $150,667 and period 12 is $187,519.

Tips & Best Practices

  • More data points produce more reliable forecasts — aim for at least 6–12 periods
  • An R² above 0.7 suggests a good linear fit; below 0.5 may indicate a non-linear pattern
  • Check for outliers that could distort the trend line and consider removing anomalous periods
  • Linear regression works best when growth is relatively constant in absolute terms (not exponential)
  • For high-growth businesses, consider exponential or compound growth models instead
  • Use the forecast as a baseline, not a guarantee — market conditions can change the trajectory
  • Combine linear forecasting with domain knowledge about upcoming events and seasonality

How Linear Regression Works for Sales Forecasting

Linear regression finds the line that minimizes the total squared distance between each data point and the line itself. This "best fit" line represents the average trend in your data, smoothing out period-to-period volatility. The resulting equation gives you two valuable parameters: the slope (growth per period) and the intercept (theoretical starting value).

Interpreting the Results

Beyond the raw forecast numbers, the regression output tells a story about your business. A steep positive slope combined with high R² indicates strong, consistent growth. A positive slope with low R² suggests growth that's happening but is volatile and harder to predict. Look at both the direction and the confidence to make well-calibrated decisions.

Combining Statistical and Judgment-Based Forecasting

The most effective forecasters combine statistical models like linear regression with qualitative judgment. The model provides an objective baseline, while human judgment adjusts for known upcoming events, competitive changes, and strategic initiatives that historical data can't capture. Use the linear forecast as your starting point, then overlay domain expertise.

Upgrading from Linear to More Advanced Models

As your forecasting needs grow, consider graduated upgrades: polynomial regression for acceleration patterns, exponential models for high-growth businesses, ARIMA for time series with complex patterns, and machine learning models for large datasets. Linear regression remains the foundation — start here, and move to more complex models only when the data clearly justifies the added complexity.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Linear regression forecasting fits a straight trend line through historical data using the least-squares method. The line equation y = mx + b tells you the starting point (b) and the growth per period (m). By extending this line beyond your data, you get a forecast that assumes the historical trend continues. It's the simplest form of statistical forecasting and works well when growth is approximately constant.