Coefficient of Determination (R²) Calculator

Calculate R-squared from paired data to measure how well a regression line fits the data. Enter X and Y values.

R² VALUE
--
Correlation (r)
--
Slope
--
Intercept
--
Residual SS
--

What Is the Coefficient of Determination?

R-squared (R²) measures the proportion of variance in the dependent variable that is explained by the independent variable(s) in a regression model. It ranges from 0 to 1, where 0 means the model explains none of the variance and 1 means it explains all of it.

R² is the square of the Pearson correlation coefficient for simple linear regression. It is the most commonly reported measure of model fit.

Formula

R² = 1 - SS_res / SS_tot
R² = r² (for simple linear regression)

Interpretation Guide

Interpretation
0.90-1.00Excellent fit
0.70-0.90Good fit
0.50-0.70Moderate fit
0.30-0.50Weak fit
0.00-0.30Poor fit

FAQ

Can R² be negative?

In simple linear regression, no. But with models fit without an intercept, or with out-of-sample predictions, effective R² can be negative, meaning the model performs worse than a horizontal line at the mean.

Is high R² always good?

Not necessarily. Overfitting (too many predictors) inflates R². Always check adjusted R², residual plots, and use cross-validation for reliable model assessment.