OR / RR / NNT Calculator

Compute odds ratio, relative risk, absolute risk reduction, and NNT from a 2×2 table. Study-design-aware with OR≠RR warnings. Data never leaves your browser.

Cohort & Case-ControlNNT/NNHMethods Export

Try it out

Load example OR/RR/NNT data to see the full workflow

Enter events and non-events for exposed (treatment) and unexposed (control) groups.

Events
Non-events
Exposed
Unexposed
  • Compute odds ratio, relative risk, and NNT from a 2x2 contingency table
  • Evaluate treatment effects in cohort studies or randomized controlled trials
  • Calculate odds ratios for case-control studies where RR is not estimable
  • Determine the number needed to treat (NNT) or harm (NNH) for clinical decision-making
  • Generate a manuscript-ready methods paragraph with effect measures and CIs

Don't use for

  • Diagnostic accuracy analysis (sensitivity, specificity) — use the Diagnostic Test Calculator
  • Continuous outcome data (means, not counts) — use the General Stats Calculator for t-tests
  • Survival / time-to-event data — use a Kaplan-Meier or Cox regression tool

Effect Measure Fundamentals

Effect measures quantify the strength and direction of an association between exposure and outcome:

OR = (a×d)/(b×c) — odds of event in exposed vs unexposed • RR = risk_exposed / risk_unexposed — probability ratio • ARR = risk_exposed − risk_unexposed — absolute difference • RRR = ARR / risk_unexposed — proportional reduction • NNT = 1 / |ARR| — patients to treat for one benefit/harm

OR and RR measure relative effects (how many times more/less likely). ARR and NNT measure absolute effects (how much difference in practice). Both perspectives are needed for clinical decision-making.

Frequently Asked Questions