Multiple Linear Regression Calculator

Fit a linear regression with several predictors and get coefficients, standard errors, p-values, R² and the F test.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Step 1: Open Multiple Linear Regression Calculator and add your input

    Type your numbers or text, add your file, or pick the options you need. Nothing is uploaded: everything stays in your browser.

  2. 2
    Step 2: What Multiple Linear Regression Calculator does

    Fit a linear regression with several predictors and get coefficients, standard errors, p-values, R² and the F test.

  3. 3
    Step 3: Read the result and compare

    The result appears at once. Change one value to see how the answer moves, then keep the figure that fits your case.

  4. 4
    Step 4: Copy or save it

    Copy the result or download it. For an important decision, confirm it with the official source or an adviser.

About this tool

Paste your data with the predictor columns first and the outcome y in the last column. The calculator fits the least-squares model y = b₀ + b₁x₁ + … and gives each coefficient with its standard error, t statistic and p-value, plus R², adjusted R², the overall F test and the residual standard error.

Method

The coefficients solve the normal equations (XᵀX)b = Xᵀy. Standard errors come from s²(XᵀX)⁻¹ where s² = SSE ÷ (n − k − 1). The t statistics have n − k − 1 degrees of freedom. F = (R² ÷ k) ÷ ((1 − R²) ÷ (n − k − 1)).

Limits

Up to 6 predictors and at least k + 3 rows. If the predictors are perfectly collinear the model cannot be fitted and the tool says so.

Paste a table with one row per line, the values separated by commas, spaces or tabs, and an optional first line of column names.

Worked example

For x1, x2 and y with 8 rows the fit is y = 0.55 + 2.000·x1 + 1.300·x2 with R² = 0.99922 and F = 3210.1 on 2 and 5 degrees of freedom.

Tips for best results

Check every box before you rely on a result, because one wrong digit changes the whole answer. Use the exact figures from your payslip, bill, certificate or contract, and keep a note of the date you calculated. Rates, thresholds and rules change from time to time, so for tax, fees and legal matters treat the output as an estimate and confirm with the official source named on this page. You can run as many scenarios as you like; nothing is saved or sent, and refreshing the page clears the boxes.

Quick facts

Embed this calculator on your site

Copy this code to show the calculator on your own page. A link back to shobfree.com is included.

Frequently asked questions

Which column is y?

The last one.

What is adjusted R²?

R² corrected for the number of predictors.

Why is there an error about singular data?

Two predictors are perfectly related, so their separate effects cannot be told apart.

Does it standardise variables?

No, coefficients are in the original units.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages