Linear Regression Calculator

Fit y = mx + b to (x, y) data points — with R² correlation.

100% private — no uploads Free & unlimited Read tutorial

See how it works

Watch a quick simulation of this tool in action — no file needed.

How to use Linear Regression Calculator

Follow these steps — everything happens instantly in your browser.

  1. 1

    Step 1. Enter data points as 'x,y' pairs, one per line (e.g. '1,2').

  2. 2

    Step 2. The slope (m), intercept (b), R² and Pearson r update instantly.

  3. 3

    Step 3. Use the resulting equation y = mx + b to predict any x.

Why use this tool

Frequently asked questions

Everything you might want to know about linear regression calculator.