Skip to content

Linear Regression Calculator

Fit a least-squares regression line ŷ = a + b·x to two paired datasets, returning the slope, intercept, correlation r, and r² with a scatter plot.

Inputs

Data

Results

Weak fit (R² < 0.3)Moderate fit (0.3 ≤ R² < 0.7)Strong fit (R² ≥ 0.7)

Details

Scatter Plot & Fitted Line

Data points Fitted line
X Y
0 at 0

Embed this calculator

Preview

Paste this code into your page to show the calculator.

Share this calculation

Anyone who opens this link sees your values already filled in.

200+ calculators · 10 languages · 100% free

Was this calculator helpful?

No

How can we improve this calculator?