Skip to main content
Reviewed for accuracy by Manoj Kumar, Mathematics Educator

Least Squares Regression Line Calculator

Calculator

Adjust values & calculate

Enter your values below. Every result is computed in your browser — no data is sent to any server.

Formula: b = (n∑xy - ∑x∑y) / (n∑x² - (∑x)²), a = mean(y) - b * mean(x)

Your Result

Worked example — y = 4.04x + 57.81 | R² = 0.975 | Each study hour adds ~4 points

Reviewed for accuracy by Manoj Kumar, Mathematics Educator · Editorial policy