Statistics calculators
Linear Regression Calculator
Least-squares regression line y = mx + b and R-squared from two paired lists, with a prediction at any X value. Free, instant, no sign-up.
Slope m = Σ((x−x̄)(y−ŷ)) ÷ Σ(x−x̄)²; intercept b = ŷ − m×x̄. R² is the share of Y variation explained by the line. Predictions beyond the data range are less reliable.
How to use
- Enter the X values and the matching Y values.
- Optionally enter an X value to predict Y at.
- Press “Calculate Regression” to see the line, R² and the prediction.
Frequently asked questions
- What does the slope mean?
- How much Y changes for a one-unit rise in X. A slope of 0.6 means Y rises by about 0.6 per unit of X.
- What is R-squared?
- The share of the variation in Y explained by the line, from 0 to 1. Near 1 means the line fits the points closely.
- Is my data stored?
- No. The calculation runs in your browser.