Linear Regression Calculator

Linear Regression Calculator

Calculate slope, intercept, R², and Pearson correlation coefficient from X,Y data pairs with best-fit line equation and Y prediction. Perfect for statistics, data science, and academic research with correlation strength classification.

regression
slope
correlation
Share this tool:
Sample Data Sets
Try these sample datasets to test the calculator
Enter Data Points
Input X,Y pairs — one per line, separated by comma or space

One X,Y pair per line. Supports comma or space separated values.

How it works: Enter X,Y data pairs to compute the best-fit line using least squares regression. The calculator finds slope, intercept, R², and Pearson correlation. Optionally enter an X value to predict the corresponding Y.

Complete Guide: Linear Regression Calculator

Everything you need to know about using Linear Regression Calculator effectively