Linear Regression Calculator

Calculate the linear regression line y = mx + b from data points. Find slope, intercept, correlation, and R².

Each line: x,y (comma or space separated)
⚠️
Regression Equation
📊

Regression Plot

Data points with regression line

📋

Calculation Breakdown

Step-by-step regression calculation

📐
Slope (m)
Δy/Δx
📏
Intercept (b)
y-axis
📈
Correlation (r)
Strength
📊
Coefficient
🔢
Data Points
n
📐
Mean X
📐
Mean Y
ȳ
📊
SSE
Residual sum
📖

Regression Formulas

Key regression concepts

💡

Regression Tips

Understanding linear regression

📊 Statistical Disclaimer: This linear regression calculator finds the line of best fit using the least squares method. Correlation (r) measures the strength and direction of the linear relationship between variables.
Linear Regression Calculator  •  y = mx + b  •  For educational purposes