Free Tools › Linear Regression Calculator

Linear Regression Calculator (Simple and Multiple)

Fit a simple or multiple linear regression by pasting your data. Get coefficients with standard errors, 95% confidence intervals and p-values, R², adjusted R², the F test and a scatter plot.

FreeNo account neededYour data stays in your browser

Your dataPaste straight from Excel or Google Sheets. First row = column names. Blank, NA or . = missing.
Predictors

Coefficients

TermBSE95% CItp
(Intercept)67.4708.32050.991 to 83.9508.11< 0.001
group: Intervention (vs Control)-5.6481.619-8.854 to -2.442-3.49< 0.001
age0.5070.0950.320 to 0.6955.36< 0.001
bmi1.0840.2210.646 to 1.5224.90< 0.001

Model fit

R²0.382Adjusted R² = 0.366
F testF(3, 116) = 23.85, p < 0.001
Residual standard error8.810116 degrees of freedom
Observations used120No missing values

Each coefficient is the expected change in sbp for a one-unit increase in that predictor (or versus the reference category), holding the other predictors constant. Check residuals for linearity, constant variance and outliers before relying on p-values.

Get new free research tools firstOccasional emails when we add tools and guides. No spam.

We only use your email to send these updates, never share it, and you can unsubscribe by replying to any email or writing to info@timelyscholar.com. Privacy Policy

How to Use the Linear Regression Calculator

  1. 1

    Paste your data

    Copy the columns from Excel, Google Sheets or a CSV file, with variable names in the first row. Blank cells, NA or a period count as missing.

  2. 2

    Choose the outcome

    Select the continuous dependent variable from the Outcome list.

  3. 3

    Tick the predictors

    Tick each independent variable. Numeric and two-category variables are detected; categorical predictors are compared with a reference category.

  4. 4

    Read and copy the results

    See B, SE, 95% CI, t and p for each term, with R², adjusted R² and the F test. Copy the table into Word, download a CSV or copy the results sentence.

What linear regression tells you

Linear regression models a continuous outcome as a straight-line function of one or more predictors. Each coefficient is the expected change in the outcome for a one-unit increase in that predictor, holding the others constant.

Categorical predictors are entered as indicator (dummy) variables compared with a reference category, shown in the term names. Coefficients are estimated by ordinary least squares.

Check the assumptions before relying on the p-values: a linear relationship, independent observations, roughly constant residual variance, and residuals without extreme outliers.

How it is calculated

Sources

Linear Regression Calculator: FAQ

How do I include a categorical variable?

Just tick it. Text columns are converted to indicator variables automatically, with the first category alphabetically as the reference.

What does R² mean?

The share of the variation in the outcome explained by the model. Adjusted R² penalizes extra predictors and is better for comparing models.

What happens to missing values?

Rows with a missing value in the outcome or any chosen predictor are left out (complete-case analysis), and the number dropped is reported.

Related Free Tools

Chat on WhatsApp