basic

OLS Linear Regression Line Calculator

ŷ = b0 + b1x — ordinary least-squares regression coefficients.

Computes OLS regression slope b1 and intercept b0 from summary statistics (means, variances, covariance), and predicts ŷ for any x.

Published Last reviewed 1 min read

Inputs

Results

Enter values and click Calculate to see results.
Was this helpful?

How to use this calculator

  1. Fill in the inputs above using the units you already have.
  2. Values update automatically as you type — no submit button needed.
  3. Hover any result row for the underlying formula and intermediate values.

Formula

b1 = cov(X,Y)/Var(X); b0 = ȳ − b1×x̄

In depth

Computes OLS regression slope b1 and intercept b0 from summary statistics (means, variances, covariance), and predicts ŷ for any x.