User guide
Fit a straight line to two numeric series and estimate a Y value.
How to use and interpret
Enter paired observations in identical order: the first X must correspond to the first Y. Use at least two pairs, no missing values and variation in X. The slope expresses the estimated change in Y per unit of X, and the intercept is the fitted value when X is zero. R² measures the share of observed Y variability explained by the fitted line within the sample; it is not a direct measure of future accuracy. A constant Y series has zero total variability. Examine residuals and the plotted relationship before using linear regression. The model may be unsuitable in the presence of seasonality, curvature, temporal dependence or extreme observations. A prediction outside the observed interval is extrapolation, which the tool flags. Validate performance on independent observations when forecasting.
Methodology
Slope b = Σ[(xi−mean X)(yi−mean Y)] / Σ(xi−mean X)²; intercept a = mean Y − b × mean X; predicted Y = a+bX; R² = 1−SSE/SST.
Worked example
X = 1, 2, 3 and Y = 3, 5, 7: slope 2, intercept 1; for X=4, predicted Y=9.
Limits and assumptions
Ordinary least squares with intercept. No confidence intervals, significance tests or causal inference. R² undefined when Y is constant.
How to compare scenarios
Start with values that represent the current situation and record the result. Then change one variable at a time, keeping the others constant to understand its influence. Avoid comparing results obtained with different units, periods or criteria. Check where the data came from and the date it refers to. If an exact figure is unavailable, test a conservative and an optimistic scenario, documenting assumptions. A small difference may arise from displayed rounding rather than a meaningful change in the situation. Calculations use the entered values; they do not confirm the quality or provenance of the data. To save a comparison, export each scenario's results and identify the assumptions used. Consider real-world conditions before using the analysis in a decision.
Fields can be edited freely and results are recalculated on the device. Use Reset to restore example values, Copy to transfer the answer into another document, or Export to obtain a text file with results and assumptions. Printing preserves a readable calculation. No account is needed; entries are not sent to an external calculation service. If sharing a result with someone else, include inputs and methodology so the calculation can be reproduced.
Before using the result, check that the data represents the intended scenario. A change of unit or a missing input can alter interpretation even when the arithmetic is correct.