Line of Best Fit Calculator
Paste X and Y values to compute the least-squares regression equation and plot it automatically.
Compute the OLS line of best fit (y = mx + b), R², Pearson r, and interactive Y predictions with instant chart export.
Free online linear regression calculator and trend line grapher. Paste X, Y pairs to get slope, intercept, R², correlation r, 95% confidence band, and predicted values — then export PNG, SVG, or JPG.
Sponsored
Enter two columns (with or without headers) separated by commas, tabs, or spaces.
Click Calculate & Plot to get y = mx + b, slope, intercept, R², and Pearson r.
Type a new X value to compute predicted Y and highlight it in red on the chart.
Export 2x PNG, JPG, or vector SVG for lab reports, papers, and slides.
Paste X and Y values to compute the least-squares regression equation and plot it automatically.
Get exact OLS slope (m), Y-intercept (b), coefficient of determination (R²), and Pearson r.
Export your scatter plot, fitted trend line, and 95% confidence interval as PNG, SVG, or JPG.
Free scatter plot generator — plot X-Y pairs from CSV and reveal correlation with an instant trend line.
Plot and compare two or more trend lines side by side — with optional dual Y-axis support.
Turn raw numbers into frequency histograms with automatic binning, summary statistics, and optional normal curve.
Build box and whisker plots with automatic 5-number summary, IQR, and Tukey outlier detection.
Turn converted data into polished line charts in seconds.