Linear Regression Calculator

Fit a bounded least-squares line to paired numeric points.

Scope: The calculation describes the supplied points only and does not establish causation, uncertainty, or predictive validity.

Workbench

Inputs stay on this page.

Calculates ordinary least-squares slope, intercept, Pearson correlation, and R² for at most 10,000 parsed x/y rows. It is not a causal model or forecast.

How to use Linear Regression Calculator

  1. Fill in the fields:

    • Column delimiter: Comma (CSV), Tab (TSV), Semicolon.
    • First row is a header (optional).
    • Two-column x/y points.
  2. Press “Calculate linear regression”.

  3. Copy the result, or download it as linear-regression.json.

About this tool

Fit a bounded least-squares line to paired numeric points.

Calculates ordinary least-squares slope, intercept, Pearson correlation, and R² for at most 10,000 parsed x/y rows. It is not a causal model or forecast.