Linear Regression Calculator

Least-squares line of best fit, R² and predictions.

Runs in your browser — nothing is uploaded

—

How to use Linear Regression Calculator

  1. Enter your values — the unit for each field is shown next to it.
  2. The result updates instantly as you type.
  3. Copy the results, or change inputs to compare scenarios.

Formula & assumptions

b₁ = Σ(x − x̄)(y − ȳ) / Σ(x − x̄)²

b₀ = ȳ − b₁x̄