Runs in your browser — nothing is uploaded
—
Details
How to use Linear Regression Calculator
Least-squares line of best fit, R² and predictions.
- Enter x values, y values and predict y at x =; each field shows its unit.
- Read the Linear Regression result — it updates as you type.
- Check the method in the formula below, then change any value to compare scenarios.
Formula & assumptions
b₁ = Σ(x − x̄)(y − ȳ) / Σ(x − x̄)²
b₀ = ȳ − b₁x̄