Statistics
Linear Regression Calculator
Use this linear regression calculator to fit a straight line to paired data and make simple predictions.
Regression line
—
- Slope
- —
- Intercept
- —
- Predicted y
- —
Student quick launch
Grade planning, algebra checks, and formulas students reach for most.
Study path
Use this calculator with
Follow these when you want the formula behind the answer, a short lesson, or nearby tools in the same topic.
What the linear regression calculator solves
Use this linear regression calculator to fit a straight line to paired data and make simple predictions.
Formula
How to use it
- Enter paired x and y values.
- Enter an x value for prediction.
- Read the regression equation and predicted y.
How to read the answer
The slope is the predicted change in y for a one-unit increase in x under the linear model.
Common mistakes and edge cases
- Regression does not prove causation.
- Predictions far outside the data range can be unreliable.
- A straight line may not fit curved data.
Worked examples
Small paired data set
Regression line
y = 0.8x + 1.8
Perfect line
Regression line
y = 2x + 1
Frequently asked questions
What does least squares mean?+
It chooses the line that minimizes the sum of squared vertical residuals.
Can I use this for forecasting?+
Only with caution. A regression line is a model, not a guarantee.
Related calculators
Correlation Coefficient Calculator
Calculate Pearson correlation coefficient r from paired x and y data.
Average Calculator
Calculate arithmetic, weighted, geometric, or harmonic averages from a list of numbers with steps and summary statistics.
Slope Calculator
Find slope from two points or solve a missing coordinate from a known slope. Includes equations, intercepts, grade, graph, and step-by-step work.
Binomial Probability Calculator
Calculate exact binomial probability for k successes in n independent trials.
Coefficient of Variation Calculator
Calculate coefficient of variation from a data set using standard deviation divided by mean.
Expected Value Calculator
Calculate expected value from outcome and probability lists.
Last updated: May 15, 2026