A regression calculator is a statistical tool that finds the best-fit line through a set of paired data points using the least squares method. It computes the slope and intercept of the regression line, the R² (coefficient of determination), the correlation coefficient (r), and a full predictions table with residuals — all from your raw x and y values.
Whether you're analyzing sales trends, scientific measurements, or academic data, linear regression is one of the most widely used statistical techniques. This calculator handles every step of the process — from the summation formulas to the final equation — so you can focus on interpreting your results rather than crunching numbers.
Enter your paired data as x-values and y-values. The calculator computes all the intermediate summations, applies the least squares formulas to find the slope (m) and intercept (b), and returns the full regression equation. It then calculates R², the correlation coefficient r, and builds a predictions table showing observed values, predicted values, and residuals for every data point.
The step-by-step breakdown shows each summation, the substitution into the slope and intercept formulas, and the derivation of R² — so you can follow along or verify against your own work.
Given x: 1, 2, 3, 4, 5 and y: 2.1, 3.9, 6.2, 7.8, 10.1, the calculator computes Σx = 15, Σy = 30.1, Σxy = 112.3, Σx² = 55, then derives the slope m = 1.98 and intercept b = 0.04. The result is y = 1.98x + 0.04 with an R² = 0.998, indicating an extremely strong linear fit.
This calculator performs simple linear regression (ordinary least squares), which fits a straight line y = mx + b to your data. It's designed for two-variable datasets where you want to model a linear relationship between x and y.
Type or paste your x-values and y-values as comma-separated lists. The calculator matches them by position — the first x pairs with the first y, and so on. Both lists must have the same number of values.
R² (the coefficient of determination) tells you what fraction of the variation in y is explained by the linear model. An R² of 0.95 means 95% of the variability in your y-values can be accounted for by the regression line. Higher values indicate a better fit.
The correlation coefficient r measures the strength and direction of the linear relationship. It ranges from −1 (perfect negative correlation) to +1 (perfect positive correlation). An r near 0 means little to no linear association.
A residual is the difference between an observed y-value and the predicted y-value from the regression line. Examining residuals helps you spot outliers, check whether a linear model is appropriate, and assess overall model accuracy.
Yes. All calculations run directly in your browser. Your data is never uploaded to or stored on any server, so you can work with sensitive or proprietary datasets with confidence.
Let ChatGPT, Claude, or Perplexity do the thinking for you. Click a button and see what your favorite AI says about Formula Bot.
Calculate tips and split bills with ease.
Calculate your grade point average instantly.
Calculate area for any shape and convert between units.
Find square roots with step-by-step solutions.
Find out what you need on your final exam.
Solve quadratic equations step by step.
Find the missing side of a right triangle.
Calculate annuity payments and values.
Calculate dividend yield and income projections.
Solve long division with detailed steps.
Calculate your exact age in years, months, and days.
Find the slope and equation of a line.
Calculate how your investments grow over time.
Calculate sale prices and savings instantly.
Convert and calculate with scientific notation.
Calculate logarithms with any base.
Round numbers to any decimal place.
Calculate markup percentage and profit margins.
Add, subtract, multiply, and divide mixed numbers.
Calculate powers and exponents step by step.
Count and round significant figures.
Find the midpoint between two coordinate points.
Calculate percent error for experiments and data.
Find the GCF and LCM of any numbers.
Convert decimals to fractions in lowest terms.
Sign up for free and unlock unlimited calculations, saved history, and more.
Get Started Free