R-squared and adjusted R-squared
R², the coefficient of determination, is the headline measure of how well a linear regression fits. It’s easy to calculate and easy to misread.
What R² measures
R² = 1 − (residual sum of squares / total sum of squares)
The total sum of squares is how much the outcome varies around its mean. The residual sum of squares is how much variation is left after the model’s predictions. R² is the share the model explains: 0 means no better than predicting the mean for everyone, and 1 means perfect prediction.
With one predictor, R² equals the squared Pearson correlation. Weight and fuel economy in R’s mtcars data correlate at r = −.87, and (−.87)² ≈ .75.
Adjusted R²
Plain R² never goes down when you add a predictor, even a useless one, because extra variables always soak up a little random noise. Adjusted R² corrects for the number of predictors relative to the sample size, and it can fall when a predictor adds nothing.
| Model (32 cars, predicting mpg) | R² | Adjusted R² |
|---|---|---|
| Weight only | .753 | .745 |
| Weight + horsepower + cylinders | .857 | .836 |
The extra predictors raise R² by about .10 and adjusted R² by about .09, so they add real explanatory value. With a small sample and many predictors, the gap between R² and adjusted R² grows, which is a warning sign of overfitting.
What counts as a good R²?
It depends entirely on context:
- In physics or engineering, models below .90 may be considered poor.
- In psychology, education and social science, where behaviour has many causes, R² of .10 to .30 is common and can be meaningful.
- For prediction, R² (ideally on new data) matters a lot. For explanation, testing whether a particular predictor matters, a modest R² can be perfectly fine.
What R² doesn’t tell you
- Whether the model is correct. A curved relationship forced into a straight line can still have a high R². Check the residuals (see regression assumptions).
- Whether a predictor matters. A predictor can be important and significant in a model with low R².
- Causation. High R² in observational data is still association.
- Predictive accuracy on new data. R² measured on the same data used to fit the model is optimistic.
R² change in hierarchical regression
When predictors are added in blocks, the increase in R² (ΔR²) shows how much each block adds beyond the previous ones, with an F test for whether the increase is significant. This is the usual way to ask “does X predict the outcome over and above the control variables?”.
Pseudo R² for logistic regression
Logistic regression has no true R², because the outcome is yes/no. Several pseudo R² measures imitate it:
- McFadden’s R²: based on the improvement in log-likelihood. Values of .2 to .4 already indicate an excellent fit.
- Cox and Snell R²: can’t reach 1, even for a perfect model.
- Nagelkerke R²: Cox and Snell rescaled to run up to 1. It’s the one SPSS users usually report.
For a model predicting manual transmission from weight and horsepower in mtcars, McFadden’s R² = .77, Cox and Snell = .65, and Nagelkerke = .87. These are different measures of the same model, so always name the one you report, and don’t compare them with a linear R².
Reporting
The model explained 86% of the variance in fuel economy, R² = .86, adjusted R² = .84, F(4, 27) = 40.53, p < .001.
More in Regression
Try it with the free tools
Run this on your own data
Upload a dataset and ask your question in plain English. Analytika checks the assumptions, picks the test, runs it, and writes the results up in APA format.