NumberPath
Preparing offline
Applied analysisFree calculatorPreparing offline

2×2 Table, Odds Ratio, and Relative Risk Calculator

Compare event risks in exposed and comparison groups with odds and risk measures.

Your inputs

Two independent groups and one fixed observation period. Log Wald RR/OR intervals; all cells receive +0.5 correction if any cell is zero. No stratification, confounding adjustment, person-time rates or causal inference.

Your calculation

Result

—

Enter your inputs to see the result and working.

No account. Inputs stay in your browser.

How to use this calculator

Label the event consistently, then enter the four cells of the 2×2 table.

Formula and method

Risk = events/group total; RR = risk₁/risk₀; OR = ad/bc. Log-scale intervals use normal critical values. Risk difference uses Newcombe Wilson limits.

Worked example

20/100 vs 10/100 gives risk difference .10, RR 2, OR 2.25 and NNH 10.

Assumptions and supported scope

Two independent groups and one fixed observation period. Log Wald RR/OR intervals; all cells receive +0.5 correction if any cell is zero. No stratification, confounding adjustment, person-time rates or causal inference.

Method references

Method and worked example checked against the calculator implementation. About our methods · Report a correction

Keep exploring

Try another calculator with clear working.

Control Chart and Process Capability Calculator →

Saved calculations

Stored in this browser on this device. Browser data removal also removes these saves.

Keep NumberPath handy

Open this website in a browser that supports installation. If an install option is available, use its address-bar or browser-menu control.

iPhone or iPad: open the Share menu and choose Add to Home Screen. Installation options depend on your browser.

When the header says Offline ready, the app shell has been cached. Calculators you open online are saved for offline use until the next app update. Saved inputs remain in this browser. Installation varies by browser; it has not been tested on every device.