Regression Calculator

Fit a simple linear regression line from x-y pairs. Calculate slope, intercept, correlation, coefficient of determination, and optional predicted y.

This page fits a simple linear model:
y = a + bx

Result will appear here.
Metric Value

Privacy: calculations run locally in your browser. No inputs are stored or transmitted.

How it works

This tool calculates a least-squares regression line, slope b, intercept a, correlation r, and .

Examples

  • 1,2
  • 2,3
  • 3,5
  • 4,4

When to use this tool

This tool is designed for quick, practical tasks such as everyday calculations, data formatting, or simple conversions. It is best used when you need fast results without installing software or using complex tools.

When to use

  • Quick checks or one-time calculations
  • Validating or converting data before using it elsewhere
  • Simple tasks that do not require advanced software

When not to use

  • Critical financial, legal, or medical decisions
  • Large-scale or automated processing
  • Situations requiring guaranteed precision beyond basic validation

Always review results before using them in important contexts.

About this tool

This tool helps you perform quick utility operations directly in your browser. It runs entirely in your browser without sending data to a server.

You can use this tool when handling simple tasks without installing additional software. The results should be interpreted as a processed output based on your input data.

FAQ

  • What does this regression calculator compute?

    It computes a simple linear regression line, including slope, intercept, Pearson correlation r, and coefficient of determination r².

  • How should I enter the data?

    Enter one x,y pair per line, separated by a comma.

  • Can I predict y for a given x?

    Yes. You can optionally enter an x value to calculate the predicted y from the fitted regression line.

  • How many points are required?

    At least 2 valid points are required, and the x values must not all be identical.

  • Are calculations stored?

    No. Everything runs locally in your browser.

Related tools