Linear regression calculator

Fit a least-squares line to x,y data — slope, intercept, r, R², and predictions.

Paste 2–10,000 rows of x,y pairs (first line may be a header). Ordinary least squares on your raw numbers — no outlier removal or weighting.

Everything runs in this browser.

How to use

  1. Paste two numbers per line (x,y).
  2. Fit the line and read the equation.
  3. Optionally enter an x to predict y.

What it supports

Ordinary least squares on up to 50,000 points; a single header line is skipped automatically. No outlier removal, weighting, or confidence intervals.

Related tools

Related guides