Linear Regression Calculator
Least-squares line of best fit, R² and predictions.
Runs in your browser — nothing is uploaded—
Details
How to use Linear Regression Calculator
- Enter your values — the unit for each field is shown next to it.
- The result updates instantly as you type.
- Copy the results, or change inputs to compare scenarios.
Formula & assumptions
b₁ = Σ(x − x̄)(y − ȳ) / Σ(x − x̄)²
b₀ = ȳ − b₁x̄