Calculator Directory
Statistics

R-Squared for Simple Linear Regression

Find the percentage of variation in y explained by a simple linear regression with an intercept, using matched observations of x and y.

Inputs

Explained variation
81%

Formula & assumptions

R² = r² for ordinary least squares with an intercept

This shortcut applies to a single predictor with an intercept. Each variable must have nonzero variation.

Worked example

X values
1, 2, 3, 4, 5
Y values
2, 3, 5, 4, 6
Explained variation
81%

Interpreting the result

If the result is 81%, the fitted line accounts for 81% of the sample variation in y and leaves 19% in its residuals.