EN
PortuguêsEnglishEspañol
All tools
Calculators 100% free

Linear regression and correlation calculator

Paste X and Y value pairs and get the regression line (y = a + bx), Pearson's correlation coefficient, R², predictions and a scatter plot with the trend line.

How to use

Thank you so much for helping!

Every donation helps pay for the servers and keeps the tools free for everyone. Pick or type an amount:

Secure payment by Stripe. Opens in a new tab.

Back to Math

Simple linear regression

Available in: PortuguêsEspañolEnglish

Advertisement

Linear regression and correlation calculator: what it is for

Paste the X and Y value pairs, one per line, straight from Excel or Google Sheets. The tool calculates the least squares regression line, Pearson's correlation coefficient with an interpretation of the strength of the relationship, R², the standard error of the estimate and the predicted Y for any X, and draws the scatter plot with the trend line.

The calculations run in your browser; nothing you type is sent to any server.

How to use

  1. Paste the X and Y pairs.
  2. Enter an X to predict Y.
  3. See the equation, r, R² and the chart.

When to use it

  • Analyzing the relationship between two variables.
  • Making simple sales forecasts.
  • Solving statistics exercises.

Frequently asked questions

How do I paste the data?

One pair per line, with X and Y separated by a space, tab or semicolon. You can copy two columns straight from Excel or Google Sheets. Use a dot or a comma as the decimal separator.

What do r and R² mean?

The correlation coefficient r ranges from −1 to 1 and shows the strength and direction of the linear relationship. R² is the square of r and shows the share of the variation in Y explained by the line: R² = 0.81 means 81% of the variation is explained by X.

Does correlation prove causation?

No. Two variables can move together by coincidence or because both depend on a third factor. Regression shows association, not cause.

Is it really free?

Yes, 100% free. No sign-up, no subscription and no usage limits. All Tools123 tools are free and run right in your browser.

Similar tools

The tools are provided as is, without warranty. We are not responsible for the results or for how they are used.