Coefficient of Determination Calculator (R-squared)

Calculate R² for a fitted line from paired X and Y values or from observations and predictions you already have.

Result
—

How to calculate

Fit a least-squares line or supply your predictions. Subtract the ratio of residual sum of squares to total sum of squares from one. R² can be negative for supplied predictions.

Worked example

Use Inputs Fit a line from paired X and Y · X values for fitting 0, 2, 4 · Observed values (Y) 1, 4, 4. The result is 0.75.

Input and result notes

Enter numbers using the same units. Rounded results are marked with ≈.

Omni's statistics reference

Related calculators