Loading…
Loading…
Fit a least-squares line to x, y data: slope, intercept, r, R², the slope's p-value, predictions, and a scatter plot with the fitted line.
Also covers: Linear regression calculator · Line of best fit · R-squared calculator · Correlation coefficient calculator
Separate x and y with a comma, space, or tab — or paste two spreadsheet columns.
Regression line
ŷ = 4.29762x + 47.2857
From 8 points.
R²
0.9896
99% of the variation in y
Correlation r
0.99478
Slope p-value
< 0.0001
t = 23.89, df = 6
Slope
4.29762
SE 0.1799
Intercept
47.2857
Std. error of estimate
1.1658
Scatter plot and fitted line
One pair per line, separated by a comma, space, or tab. Two columns copied from a spreadsheet work as they are.
You get the equation ŷ = mx + b, the correlation r, R², the slope's standard error and p-value, and a scatter plot with the line.
Enter an x value to get the predicted y. Predictions are most trustworthy inside the range of your data.
The share of the variation in y that the line explains. R² = 0.85 means 85% of the variation in y is accounted for by its linear relationship with x.
It tests whether the true slope is zero (no linear relationship), using a t-test with n − 2 degrees of freedom. A small p-value is evidence of a real linear trend.
No. Regression measures association; causation needs an experiment or a careful argument that rules out other explanations.
No. Every calculation runs in your browser, and nothing you enter is sent to a server.
Calc
A fast online calculator with a keypad, keyboard input, brackets, percentages, square roots, and a history of your calculations. Exact decimals: 0.1 + 0.2 = 0.3.
Calc
Free online scientific calculator: sin, cos, tan and inverses in degrees or radians, logs, powers, roots, factorials, π and e, with history and 34-digit precision.
Percent
Seven percentage calculators in one: percent of a number, what percent, percentage change, increase or decrease by a percent, percentage difference, and reverse percentages.
Ratio
Simplify ratios (including decimals), solve proportions like 3 : 4 = x : 20, and divide an amount in a given ratio, with the working shown.
Fractions
Add, subtract, multiply and divide fractions and mixed numbers exactly. Get the simplest form, mixed number, decimal (with repeating digits), and percent.
Powers
Raise any number to any power: exact results for whole-number powers (even huge ones like 2¹⁰⁰⁰), plus negative, fractional and decimal exponents.