ToolsConductScience tool
Cohort & Case-ControlFree in-browser calculator

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.

PrivateData stays in your browser
LiveNo sign-up required
Validated2026-04-05
CitableMethods and citation included

Calculator

Results update in place

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

When to use

  • 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

Do not 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

OR overestimates RR when events are common

When the event rate exceeds 10%, the odds ratio substantially overestimates the relative risk. A common mistake is interpreting OR as if it were RR. Always check the event rate and report the appropriate measure for your study design.

RR is invalid in case-control studies

Case-control designs sample on outcome, not exposure, so you cannot estimate true incidence rates. Only the odds ratio is valid. Reporting RR from a case-control study is a fundamental methodological error.

NNT confidence intervals can include infinity

When the absolute risk reduction CI crosses zero, the NNT CI passes through infinity — meaning the treatment might have no effect or even cause harm. Report the full CI including the direction change (NNT to NNH).

Zero cells require the Haldane-Anscombe correction

A zero cell makes OR or RR undefined. Adding 0.5 to all four cells (Haldane-Anscombe correction) produces finite estimates with valid confidence intervals. This is standard practice in meta-analysis.

1

Method

OR is computed as (a×d)/(b×c) with log-scale normal approximation CIs. RR uses risk ratios with log-scale CIs. ARR is the difference of proportions with normal approximation CIs. NNT = 1/|ARR| with CI bounds derived from ARR CI inversion. The Haldane-Anscombe correction (0.5 added to all cells) is applied when any cell is zero. Study design selection gates which measures are displayed. All calculations run client-side in the browser.

2

Validated

Last validated 2026-04-05. Calculations are designed for planning and documentation support; verify procurement decisions against manufacturer specifications or institutional SOPs.

3

How to cite

How to Cite

ConductScience OR/RR/NNT Calculator (v1.0). ConductScience, Inc. 2026. Available at: https://conductscience.com/tools/or-rr-nnt-calculator

Altman DG. Confidence intervals for the number needed to treat. BMJ. 1998;317(7168):1309-1312. doi:10.1136/bmj.317.7168.1309

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

325
Free tools
1,200+
Institutions
100%
Client-side
0
Uploads required