Answer
R-squared vs adjusted R-squared: what is the difference and which to report?
The short answer
Plain R² is the share of variance in the outcome explained in your sample, and it can only go up as you add predictors, even useless ones. The adjusted version applies a penalty for the number of predictors, so it rises only when a new predictor improves the fit by more than chance would, and it estimates the variance explained in the population. Report both for a multiple regression, and lean on the adjusted value when comparing models of different sizes.
Two numbers, two questions
R-squared answers a descriptive question: what fraction of the variation in y around its mean do the fitted values account for in this sample? It is 1 - RSS / TSS, the residual sum of squares divided by the total sum of squares, subtracted from one.
Adjusted R-squared answers an inferential one: how much variance would this set of predictors explain in the population? It rescales the same two sums of squares by their degrees of freedom: 1 - (1 - R2) * (n - 1) / (n - p - 1), where n is the number of observations and p the number of predictors, not counting the intercept. Equivalently, it is one minus the ratio of the residual variance estimate to the variance of y.
The penalty grows with p and shrinks with n. With 1,000 observations and 3 predictors the two values are almost identical; with 40 observations and 20 predictors they can be far apart.
Why adding predictors always inflates plain R²
Least squares always uses a new column if it reduces the residual sum of squares even slightly, and some reduction is almost certain by chance. So R-squared never falls when a predictor is added. If the outcome is unrelated to p predictors, the expected R-squared is still about p / (n − 1), not zero: 20 noise predictors with 40 observations give about .51 on average.
Adjusted R-squared removes that built-in drift. A useful rule follows from the formula: adding one predictor raises adjusted R-squared exactly when that predictor's t statistic is larger than 1 in absolute value (its F is above 1). That is a much weaker bar than statistical significance, so a rising adjusted R-squared does not mean the new predictor is worth keeping.
- It can be negative. When the predictors explain less than chance would, the formula goes below zero. Report the value as it is; it means the model has no explanatory power beyond chance.
- It is still an estimate. Adjusted R-squared is far less biased than R-squared but varies from sample to sample, so in any one dataset it can rise or fall by chance.
- It is not a model selection method. For choosing among models, AIC, BIC or cross-validation are better tools; see AIC vs BIC.
See it in R and Python
The code simulates 40 observations in which y depends on one real predictor (population R-squared 0.2), then adds 1, 5, 10 or 20 columns of pure noise. It shows one dataset, checks the formula against lm(), and averages over 2,000 datasets.
R
set.seed(1979)
n <- 40
make_data <- function(k) { # one real predictor plus k pure-noise columns
x <- rnorm(n)
noise <- matrix(rnorm(n * k), n, k)
list(y = 1 + 0.5 * x + rnorm(n), x = x, noise = noise)
}
fit_stats <- function(d, k) {
X <- cbind(x = d$x, d$noise[, seq_len(k), drop = FALSE])
s <- summary(lm(d$y ~ X))
c(k = k, R2 = s$r.squared, adjR2 = s$adj.r.squared)
}
ks <- c(0, 1, 5, 10, 20)
# 1. One dataset: add noise columns one block at a time
d <- make_data(max(ks))
round(t(sapply(ks, fit_stats, d = d)), 3)
# 2. The adjustment by hand: 1 - (1 - R2) * (n - 1) / (n - p - 1), p = 1 + 20 here
s <- summary(lm(d$y ~ d$x + d$noise))
p <- 21
round(c(by_hand = 1 - (1 - s$r.squared) * (n - 1) / (n - p - 1),
from_lm = s$adj.r.squared), 4)
# 3. Averages over 2,000 datasets (the population R2 is 0.25 / 1.25 = 0.2)
avg <- sapply(ks, function(k)
rowMeans(replicate(2000, fit_stats(make_data(k), k))))
round(t(avg), 3)Python
import numpy as np
rng = np.random.default_rng(1979)
n = 40
def make_data(k): # one real predictor plus k pure-noise columns
x = rng.normal(size=n)
noise = rng.normal(size=(n, k))
return dict(y=1 + 0.5 * x + rng.normal(size=n), x=x, noise=noise)
def fit_stats(d, k):
X = np.column_stack([np.ones(n), d["x"], d["noise"][:, :k]])
beta, *_ = np.linalg.lstsq(X, d["y"], rcond=None)
rss = np.sum((d["y"] - X @ beta) ** 2)
tss = np.sum((d["y"] - d["y"].mean()) ** 2)
p = X.shape[1] - 1 # predictors, not counting the intercept
r2 = 1 - rss / tss
adj = 1 - (1 - r2) * (n - 1) / (n - p - 1)
return np.array([k, r2, adj])
ks = [0, 1, 5, 10, 20]
# 1. One dataset: add noise columns one block at a time
d = make_data(max(ks))
for k in ks:
_, r2, adj = fit_stats(d, k)
print(f"k={k:2d} R2={r2:.3f} adjR2={adj:.3f}")
# 2. The adjustment by hand is built into fit_stats: 1 - (1 - R2) * (n - 1) / (n - p - 1)
# 3. Averages over 2,000 datasets (the population R2 is 0.25 / 1.25 = 0.2)
for k in ks:
avg = np.mean([fit_stats(make_data(k), k) for _ in range(2000)], axis=0)
print(f"k={k:2d} mean R2={avg[1]:.3f} mean adjR2={avg[2]:.3f}")The figures below come from one seeded run of the R code.
- One dataset. As noise columns were added, R-squared climbed from .078 to .427, while adjusted R-squared fell from .054 to −.242. The formula by hand gave −0.2424, the same as
lm(). - On average. Over 2,000 datasets, mean R-squared rose from .214 with no noise columns to .624 with 20, roughly the p / (n − 1) drift described above. Mean adjusted R-squared stayed between .186 and .195, close to the true 0.2 throughout.
- Python. Python's random numbers differ from R's. Its averages show the same pattern (R-squared rising from .210 to .629, adjusted R-squared staying near .19), but its single dataset is a reminder that adjusted R-squared is noisy in one sample: there it happened to rise to .410 with 20 noise columns.
Which one should you report?
- Simple regression with a large sample: R-squared alone is fine; the two values will agree to two decimals.
- Multiple regression: report both. R-squared describes the fit in your data; adjusted R-squared is the better estimate of how much variance the predictors explain in the population.
- Comparing models with different numbers of predictors: compare adjusted R-squared (or AIC, BIC or cross-validated error), never raw R-squared, which always favours the bigger model.
- Hierarchical regression: report the change in R-squared (ΔR²) for each block with its F test, since the test itself accounts for the added degrees of freedom.
Neither number tells you whether the model is correctly specified or how accurate individual predictions will be; for those limits, see is R-squared useful or misleading?.
How to report R-squared and adjusted R-squared in APA style (7th edition)
Italicize R, give two decimals, and drop the leading zero, because neither value can exceed 1. Give the overall F test with the variance explained, for example:
"The model accounted for a significant share of the variance in exam scores, F(x, xx) = x.xx, p = .xxx, R² = .xx, adjusted R² = .xx."
For an overfitted model like the 21-predictor example above: "Although the predictors accounted for 43% of the sample variance (R² = .43), adjusted R² was −.24, indicating no explanatory power beyond chance." In a regression table, put R² and adjusted R² in the bottom rows under the coefficients, with the sample size in the table note.
Related tools and guides
- Is R-squared useful or misleading?
- AIC vs BIC: which model selection criterion should you use?
- Why stepwise regression is a bad idea
- Which statistical test should I use?
- Coefficient of determination (Wikipedia)
More answered questions
- Odds ratio vs relative risk: what is the difference and when do they agree?
- Which model do you keep after k-fold cross-validation?
- POMP scores vs standardized mean differences: when is POMP a sound way to combine scales?
Working with your own data?
General answers only go so far. Send us your situation and we'll reply by email within two business days.
Ask your questionWritten by AskStats with AI assistance. This is general information, not advice for your specific data or study. When the results matter, check your approach with a qualified statistician.