CalcWorldHub
Free online calculator · no signup

Simple linear regression slope calculator

Estimate the least-squares change in y per one-unit increase in x from paired observations.

Simple linear regression slope calculator — X values, Y values and calculation method
Simple linear regression slope calculator: inputs and calculation method.

How to use this calculator

Estimate the least-squares change in y per one-unit increase in x from paired observations.

  1. Enter X values, Y values. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

How Simple linear regression slope calculator works

Estimate the least-squares change in y per one-unit increase in x from paired observations.

Inputs and units

  • X values: Comma-separated predictor values x, paired by position with y.
  • Y values: Comma-separated response values y, with the same number and order of observations as x.

Formula and method

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

Worked example

For x=(1,2,3,4) and y=(3,5,7,9), the points lie on y=2x+1, so the least-squares slope is 2.

Interpreting the result

The slope is the average fitted change in y for one x-unit. It is a linear summary and does not establish causation or validate residual assumptions.

Assumptions and limits

The lists must have the same length, at least two pairs, and nonconstant x values. Outliers and nonlinear patterns can make the line summary unsuitable.

Sources and method

Frequently asked questions

What are the slope units?

They are y-units divided by x-units.

Does a positive slope show that x causes y?

No. It describes association in the fitted line; causal interpretation needs study design and additional assumptions.

How do I use the Simple linear regression slope calculator?

Enter X values, Y values. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Simple linear regression slope?

For x=(1,2,3,4) and y=(3,5,7,9), the points lie on y=2x+1, so the least-squares slope is 2.

What does the Simple linear regression slope calculator calculate?

Estimate the least-squares change in y per one-unit increase in x from paired observations.

Related calculators