FreeStatisticalTools.com
Correlation and regression

Binary Logistic Regression Calculator

Model the probability of a binary outcome, such as pass/fail or disease/healthy, from one or more predictors. Coefficients are converted to odds ratios with confidence intervals.

Free · No sign-upReplaces SPSS · StataWorks with your data
Updated · By Bibin Xavier

Data 90 × 12

Paste from Excel, or drop a CSV, TSV or Excel file here.
Example data 90 rows, 12 variables. Data stays in this browser tab.
IDtext · 90 levelsGrouptext · 3 levelsGendertext · 2 levelsAgenumericHours_StudynumericAnxietynumericMotivationnumericPre_ScorenumericPost_ScorenumericExam_ScorenumericPassednumeric · codedSatisfactionnumeric · coded
S001ControlMale2311.2294.660626712
S002WorkshopFemale233.9283.554705402
S003OnlineFemale1810.132455576603
S004ControlMale2613.6413.552555903
S005WorkshopFemale229.7273.656636504
S006OnlineFemale207.9323.865826502
S007ControlFemale206.328372836103
S008WorkshopMale228293.164726213

Variables and options

Predictors 3 selected · min 1
Text variables are dummy coded automatically.
Results update automatically when you change an option.

Results

90 rows · example data
Omnibus χ² test< .001χ²(3) = 20.88
Nagelkerke R².286
Correctly classified72.2%
−2 log-likelihood95.02
Table 1

Variables in the equation

PredictorBSEWaldpOdds ratio95% CI for OR
Hours_Study0.3440.1119.63.0021.410[1.135, 1.752]
Anxiety-0.0940.0376.36.0120.910[0.846, 0.979]
Pre_Score0.0770.0325.75.0161.080[1.014, 1.151]
(Constant)-6.0762.5875.51.0190.002

Note. Event = “1” (31 of 90). Cox & Snell R² = .207, McFadden R² = .180. Hosmer-Lemeshow χ²(8) = 5.46, p = .708 (adequate fit).

Table 2

Classification table (cut-off 0.50)

ObservedPredicted 0Predicted 1% correct
Not event52788.1
Event (1)181341.9
Overall72.2

Odds ratios with 95% CI

Interpretation

The model predicts Passed better than chance and classifies 72.2% of cases correctly. Each one-unit increase in Hours_Study multiplies the odds of the event by 1.41 (a 41% increase). Each one-unit increase in Anxiety multiplies the odds of the event by 0.91 (a 9% decrease). Each one-unit increase in Pre_Score multiplies the odds of the event by 1.08 (a 8% increase).

The logistic regression model was statistically significant, χ²(3) = 20.88, p < .001, Nagelkerke R² = .286, and correctly classified 72.2% of cases.

How to cite this tool

Using these results in a thesis, journal article, report or class assignment? Please cite this free tool so others can find it. It keeps the site free.

APA 7

Xavier, B. (2026). Binary Logistic Regression Calculator [Web application]. FreeStatisticalTools.com. https://freestatisticaltools.com/logistic-regression-calculator/

BibTeX

@software{xavier_logisticregression_2026,
  author = {Xavier, Bibin},
  title = {Binary Logistic Regression Calculator},
  publisher = {FreeStatisticalTools.com},
  year = {2026},
  url = {https://freestatisticaltools.com/logistic-regression-calculator/},
  note = {Web application}
}

Suggested sentence for your methods section: “The analysis was carried out with the free Binary Logistic Regression Calculator tool on FreeStatisticalTools.com (Xavier, 2026).”

What is logistic regression?

Binary logistic regression models the probability of a yes/no outcome from one or more predictors. Coefficients are reported as odds ratios with confidence intervals, alongside model fit statistics and a classification table.

When to use logistic regression

Use it when the outcome has two categories and you want to know which predictors raise or lower the odds of the event.

Assumptions

  • A binary outcome and independent observations.
  • A linear relationship between continuous predictors and the log odds.
  • No severe multicollinearity, and at least about 10 events per predictor.

How to use this tool

  1. Enter your data. Paste columns from Excel, Google Sheets or SPSS with variable names in the first row, or upload a CSV or Excel file. The example data shows the expected layout.
  2. Choose the variables. Select the binary outcome, event (coded 1) and predictors.
  3. Read the results. Results update automatically. Read the plain-English interpretation, then use Copy table to paste APA-style tables into Word and Copy for the results sentence.

How to report logistic regression in APA style

Report the omnibus χ², Nagelkerke R², and for each predictor B, SE, Wald, p and the odds ratio with its 95% CI.

Frequently asked questions

How do I interpret an odds ratio?

An odds ratio of 1.5 means each one-unit increase in the predictor multiplies the odds of the event by 1.5, a 50% increase. Values below 1 mean lower odds.

Which pseudo R² should I report?

Nagelkerke R² is the most commonly reported, often alongside Cox and Snell. They are not directly comparable with R² from linear regression.

What does a significant Hosmer-Lemeshow test mean?

A p-value below .05 suggests the model’s predicted probabilities do not match the observed outcomes well.

Related tools

Browse all categories