Fit a least-squares line to paired x and y observations and make a prediction.
Published Last reviewed
About Linear Regression Calculator
Fit a least-squares line to paired x and y observations and make a prediction. Enter x values, y values, x value to predict in a purpose-built statistics workspace with explicit units and relevant controls. The slope is covariance divided by x variance; the intercept passes the line through the sample means. The result panel reports regression equation, slope, intercept, r-squared, predicted y with supporting context. Results depend on the entered assumptions and should be checked against the real terms, measurements, or source data. Processing stays in your browser and entered values are not sent to UtilityPages.
Follow the input-to-result path; the fields below remain the source of every value.
InputsMethodResult
Complete the fields to prepare a result.
Linear Regression Calculator results
Enter the values above, then fit regression to see the result.
Linear Regression Calculator method
The slope is covariance divided by x variance; the intercept passes the line through the sample means.
How it works
The slope is covariance divided by x variance; the intercept passes the line through the sample means. Results depend on the entered assumptions and should be checked against the real terms, measurements, or source data.
This tool does not store your inputs or results on UtilityPages.org.
Frequently asked questions
How does the Linear Regression Calculator work?
The slope is covariance divided by x variance; the intercept passes the line through the sample means.
What should I enter in the Linear Regression Calculator?
Enter x values, y values, x value to predict. Keep units consistent with the labels and use values from the same scenario.
What does the Linear Regression Calculator return?
The result includes regression equation, slope, intercept, r-squared, predicted y. Supporting values are included to make the headline result easier to check.
How exact is the Linear Regression Calculator?
Results depend on the entered assumptions and should be checked against the real terms, measurements, or source data.