Linear Regression Calculator
Calculate linear regression equation, slope, intercept, and correlation
About Linear Regression
Linear regression finds the best-fit line through a set of data points using the least squares method.
Equation: y = b₁x + b₀
Slope: b₁ = Σ((x - x̄)(y - ȳ)) / Σ(x - x̄)²
Intercept: b₀ = ȳ - b₁x̄
R² measures how well the line fits the data (0 to 1, closer to 1 is better).
💡
Help us improve!
How would you rate the Linear Regression Calculator?
Editorial Note
MyCalcBuddy Editorial Team
This page is maintained as an educational calculator reference.
📚
Formula Source: Standard Mathematical References
by Various
🔄Last reviewed: May 2026
✓Formula checks are based on standard references and internal QA review.