Skip to content
ToolMug

Use ↑ ↓ to move, Enter to open, Esc to close.

Linear Regression Calculator

Paste your data with one column per variable and names in the first row, choose the dependent variable and the predictors, and get the regression equation plus the three tables SPSS prints — model summary, ANOVA and coefficients. You can also predict Y for new X values and check the residual plot.

Runs in your browser — nothing you enter is uploaded

One row per case, one column per variable. Put variable names in the first row.

Independent variables (X)

Regression equation

Y = 0.4023 + 0.7876 × X1 + 1.0054 × X2

R² = 0.9986 · F(2, 7) = 2462.388 · p = 1.08e-10

Model summary

RR²Adjusted R²Std. error of the estimateDurbin–Watson
0.99930.99860.99820.19933.022

ANOVA table

SourceSum of squaresdfMean squareFp
Regression195.558297.7792462.3881.08e-10
Residual0.27870.0397
Total195.8369

Coefficients

VariableBStd. errorBetatp95% CIVIF
(Constant)0.40230.16252.4760.04250.018 … 0.7865
X10.78760.08250.5119.552.89e-50.5926 … 0.982614.13
X21.00540.10820.4979.293.47e-50.7495 … 1.261314.13

VIF above 10 (orange) means strong multicollinearity; the individual coefficients are then unreliable.

Report asR² = .999, F(2, 7) = 2462.39, p < .001

Predict

Predicted Y = 9.62 · 95% CI for the mean 9.471 … 9.769 · 95% prediction interval 9.1258 … 10.1142

Fitted valueResidual
Residuals vs fitted values: a shapeless band around 0 is what you want.

Ordinary least squares, same as R’s lm() and the SPSS coefficient table. Beta is the standardized coefficient. Check the residual plot for curves or a funnel shape before trusting the p-values.

Is this tool working for you?

How to use

  1. Paste the data with one row per case and one column per variable. Put the names in the first row.
  2. Pick the dependent variable (Y) and tick the predictors (X) to include.
  3. Read the equation, R² and the model F test, then each predictor's p-value in the coefficient table.
  4. Enter X values under Predict to get the predicted Y with a prediction interval.

Options explained

B and Beta
B is the coefficient in the original units; a one-unit increase in X changes Y by B on average. Beta is the standardized coefficient for comparing predictors measured in different units.
R² and adjusted R²
R² is the share of the variation in Y the model explains. It never drops when you add predictors, so compare models with adjusted R².
VIF
The variance inflation factor shows how much a predictor is explained by the other predictors. Above 10 (some texts say 5) signals strong multicollinearity, which makes individual coefficients unreliable.
Durbin–Watson
Checks whether neighbouring residuals are correlated. Values near 2 are good. Only meaningful when rows are in time order.

Worked example

The sample has 10 rows with Y as the dependent variable and X1, X2 as predictors.

Equation: Y = 0.4023 + 0.7876 × X1 + 1.0054 × X2

Model summary Value
R² 0.9986
Adjusted R² 0.9982
Std. error of the estimate 0.1993
F(2, 7) 2462.4, p < 0.001
Coefficient B SE Beta t p VIF
(Constant) 0.4023 0.1625 2.476 0.042
X1 0.7876 0.0825 0.511 9.550 < 0.001 14.13
X2 1.0054 0.1082 0.497 9.290 < 0.001 14.13

Both predictors are significant, but their VIF of 14.1 is above 10 because X1 and X2 are strongly correlated with each other. The model still predicts well; it’s the separate effect of each predictor that is hard to pin down. Untick X2 for a simple regression: Y = 1.2267 + 1.5261 × X1, R² = 0.981. At X1 = 11 the predicted Y is 18.01, with a 95% prediction interval of 16.11 to 19.91.

APA style: R² = .999, F(2, 7) = 2462.39, p < .001.

How to read the output

  1. Model F test: p < 0.05 means the model as a whole explains something.
  2. R² or adjusted R²: how much of the variation in Y is explained.
  3. Coefficient p-values: which predictors still matter after controlling for the others.
  4. Residual plot: you want a shapeless band around 0. A curve means the relationship isn’t linear; a funnel means unequal variance.
  5. VIF: with several predictors, check for collinearity.

Frequently asked questions

Does it match SPSS and R?

Yes. Coefficients, standard errors, t, p, R² and F match SPSS Linear Regression and R's lm(); Beta is SPSS's "standardized coefficients".

What about blank cells?

A row with a blank in any selected column is left out (listwise deletion). The result says how many rows were dropped.

How do I include a categorical predictor such as gender or region?

Code it as 0/1 dummy columns first. For k categories make k − 1 columns and leave one category as the reference.

What does "perfectly collinear" mean?

One column can be computed from the others, for example a total score next to its parts, or two identical columns. Untick one of them.

Is my data uploaded?

No. The calculation runs in your browser.

Privacy

This tool runs entirely in your browser. Your files and text are processed on your device and are never uploaded to our servers.

Related tools