Free Tools › Logistic Regression Calculator
Fit a binary logistic regression by pasting your data. Get adjusted odds ratios with 95% confidence intervals and p-values, the likelihood ratio test, pseudo-R² and a check of events per predictor.
FreeNo account neededYour data stays in your browser
| Term | B | SE | OR | 95% CI for OR | z | p |
|---|---|---|---|---|---|---|
| (Intercept) | -7.248 | 1.742 | – | – | -4.16 | < 0.001 |
| group: Intervention (vs Control) | -0.178 | 0.414 | 0.84 | 0.37 to 1.88 | -0.43 | 0.666 |
| age | 0.116 | 0.029 | 1.12 | 1.06 to 1.19 | 4.06 | < 0.001 |
| smoker: Yes (vs No) | 0.165 | 0.454 | 1.18 | 0.48 to 2.87 | 0.36 | 0.717 |
| Likelihood ratio test | χ²(3) = 22.63, p < 0.001Model versus intercept only |
|---|---|
| McFadden's pseudo-R² | 0.141 |
| Log-likelihood | -69.02AIC = 146.0 |
| Observations used | 120 (47 events: event = 1)No missing values |
| Events per predictor term | 15.7Based on the rarer outcome category |
An odds ratio above 1 means higher odds of event = 1 for each one-unit increase in the predictor (or versus the reference category), adjusted for the other predictors.
Copy the columns from Excel or Google Sheets, with names in the first row.
The results update instantly in your browser.
Paste straight into Word, or download a CSV.
Logistic regression models the log odds of a binary outcome, such as disease or no disease, as a linear function of the predictors. Exponentiating a coefficient gives an odds ratio adjusted for the other predictors.
Too few outcome events per predictor makes estimates unstable. In a well-known simulation study, fewer than 10 events per variable led to biased coefficients and unreliable confidence intervals, so the calculator warns you below that level.
If a predictor perfectly separates the outcome groups, maximum likelihood estimates do not exist; the calculator flags models that do not converge cleanly.
The odds ratio for one predictor while holding the other predictors in the model constant.
A common rule of thumb is at least 10 events (of the rarer outcome) per predictor term.
Yes. Any column with exactly two values works; choose which value counts as the event.