Home · Statistics · Correlation & Regression · Coefficient of Determination Calculator (R-squared)

Coefficient of Determination Calculator (R-squared)

The coefficient of determination R² for paired data: the square of Pearson's r, read as the share of y's variance that a linear relationship with x accounts for.

Your figures

Example result — edit the figures to make it yours

0.8958

Slope1.535714
Intercept1.285714
Correlation r0.946485
R-squared0.895833
Pairs (n)7

What this calculator does

The coefficient of determination R² for paired data: the square of Pearson's r, read as the share of y's variance that a linear relationship with x accounts for. Every figure on this page is computed from the standard definition stated below — the same definition used in textbooks and reference tables — with no hidden rounding steps, and the method notes name the exact convention where more than one exists.

The formula and method

R² = r², where r is Pearson's correlation coefficient

For a simple linear relationship, R² is exactly the square of Pearson's r, so it always lies between 0 and 1.

Read it as a proportion of variance: R² = 0.90 means about 90% of the variation in y tracks the linear fit on x, leaving 10% in the residuals.

R² says nothing about whether the line is the right model or whether x causes y.

Worked example

With the example inputs this page opens with, the result is 0.8958. Change any figure and the result updates with the same formula.

Quick reference

Quick reference — the worked example in full
FigureValue
Result0.8958
Slope1.535714
Intercept1.285714
Correlation r0.946485
R-squared0.895833
Pairs (n)7

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

Is a higher R² always a better model?

No. R² never falls when you add predictors, even useless ones, and a high R² can accompany a badly misspecified curve. Adjusted R² and residual plots guard against both traps.

What R² counts as good?

It depends entirely on the field: 0.9 is routine for physical measurements, remarkable for behavioural data, and suspicious for stock returns. Judge it against the noise floor of your subject, not a universal table.

How does the Coefficient of Determination Calculator (R-squared) work?

The coefficient of determination R² for paired data: the square of Pearson's r, read as the share of y's variance that a linear relationship with x accounts for. X values · y values → Coefficient of determination R². The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Coefficient of Determination Calculator (R-squared) need?

X values · y values → Coefficient of determination R². Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.