Math & Numbers · ALWAYS FREE

Linear Regression Calculator

Linear Regression: slope and intercept (units follow the input data). Calculate locally with explicit inputs and assumptions.

Report an issue with this tool

Step 1 / 3 / Input & configure

  1. 1 Input & configure
  2. 2 Processing
  3. 3 Preview & export
01

Enter details

On your device

02

What happens next?

Slope and intercept (units follow the input data)

Your result will appear here.

Add your input, choose your settings, then process. Review the result here before copying or downloading.

No upload. No account. No saved inputs.

A LITTLE CONTEXT

How to use linear regression calculator

  1. Enter or edit the example values in the input panel.
  2. Review the method below and choose the options that match your task.
  3. Run the tool, check the result, and copy or download it. Reset restores the example; Clear removes your input and result.

Method & assumptions

Ordinary least squares: slope b = Σ(dx·dy)/Σ(dx²); intercept a = ȳ−b·x̄; fitted y = a+b·x.

Fit one explanatory variable with an intercept by unweighted least squares. The result is a line description, not a causal model or a forecast guarantee. A constant Y series is allowed.

Result units: Slope and intercept (units follow the input data)

Worked example

X observations
1, 2, 3
Y observations
2, 4, 6
{
  "slope": 2,
  "intercept": 0,
  "observations": 3
}

Choose your language

Select a language to get started. You can change it anytime.

English and Hindi are free for everyone.

More languages with Premium

Checking subscription…

View Premium plans →

Premium languages require an active Premium or Premium Plus plan and an available translation catalog.