Skip to content
Mathematics & StatisticsLocal · Stays on device

Linear Regression Calculator

Fit a least-squares line to paired data: slope, intercept, standard errors, p-values, R², residuals and predictions with intervals.

  • Two pasted columns (x y)
  • Free to use
  • No sign-up or watermark
linear-regression-calculatorOn this device
Two pasted columns (x y)
Open Linear Regression Calculator

About this tool

Paste two columns — the predictor x and the response y — to fit the ordinary least-squares line ŷ = b₀ + b₁x. You get the slope and intercept with their standard errors, t statistics, p-values and confidence intervals, plus R², adjusted R², the correlation r, the F statistic and the residual standard error.

A scatter plot shows the fitted line, and a residuals-versus-fitted plot helps you spot curvature or uneven spread that a straight line cannot capture. The residual table lists each point’s fitted value, residual and standardized residual, highlighting any beyond ±2. Enter an x value to predict y with both a confidence interval for the average response and a wider prediction interval for a single new observation; the tool warns when you extrapolate beyond your data. Everything is calculated in your browser; nothing you enter is uploaded.

  1. Input

    Your details

    Two pasted columns (x y)

  2. Processing

    Processed in this browser

    Instant, in-browser. Nothing is uploaded.

  3. Output

    Your result

    Shown instantly, ready to copy or export

Local processing pipelineDistributions implemented in-house: normal (Hart/West), Student t (incomplete beta), chi-square (incomplete gamma), log-gamma (Lanczos) + Canvas plot

How to use it

  1. 1

    Paste x and y as two columns (one pair per line).

  2. 2

    Read the fitted equation, coefficients table and R².

  3. 3

    Check the residual plot for patterns.

  4. 4

    Enter an x value to get a prediction with intervals.

Zero-upload architecture

How to use Linear Regression Calculator for free, with no upload

Free, with no sign-up or watermark · Your details stay on your device

  1. 1

    Open Linear Regression Calculator

    Launch the app. There is nothing to install and no account to create.

  2. 2

    Work through it

    Read the fitted equation, coefficients table and R².

  3. 3

    Get your result

    Enter an x value to get a prediction with intervals.

All 31 maths tools
  • Local

    Correlation Calculator

    Calculate Pearson r and Spearman ρ with p-values, r² and the least-squares line, shown on a scatter plot.

    Open tool
  • Local

    Descriptive Statistics Calculator

    Calculate mean, median, mode, variance, standard deviation, quartiles, outliers and skewness, with a box plot and frequency table.

    Open tool
  • Local

    Hypothesis Test Helper

    Run one-sample, Welch, paired, proportion and chi-square tests: test statistic, p-value, decision at α, effect size and plain-language interpretation.

    Open tool
  • Local

    Function Plotter

    Graph several functions of x with zoom, pan, value tracing and correct handling of asymptotes, then export a PNG.

    Open tool