Skip to content

Odds Ratio Calculator

Odds ratio with confidence interval, z-test and Fisher's exact p from a 2×2 table.

Confidence level

Enter your values to see the result.

Uses Woolf's logit method for the confidence interval and adds 0.5 to every cell when one of them is zero (Haldane–Anscombe correction). Results use standard large-sample formulas and are meant to support, not replace, a statistician's review. Check the assumptions behind each method before you report the numbers.

Continue your work

Share this tool

Found it useful? Send it to a friend or teammate.

Rate this tool

0.0

0 ratings

  • 5 stars 0
  • 4 stars 0
  • 3 stars 0
  • 2 stars 0
  • 1 star 0

Click a star to rate this tool

Clear instructions

Find steps, examples and limitations below.

Use online

Open the tool in a supported web browser.

Free to use

No sign-up required. Tool-specific limits may apply.

How to use the Odds Ratio Calculator

Odds ratio with confidence interval, z-test and Fisher's exact p from a 2×2 table.

  1. 1 Enter exposed and unexposed counts for cases and controls.
  2. 2 Pick the confidence level.
  3. 3 Read the odds ratio, its confidence interval and the p-values.

Example and practical tips

With 40 exposed and 20 unexposed cases against 60 exposed and 80 unexposed controls, the odds ratio is 2.67 (95% CI 1.42 to 5.02).

Frequently asked questions

When should I use an odds ratio instead of relative risk?

Use the odds ratio for case-control studies, where you choose people by outcome and cannot measure risk directly. It also comes out of logistic regression.

What if a cell is zero?

The odds ratio would be zero or infinite, so 0.5 is added to every cell (the Haldane–Anscombe correction) and a note is shown.

Report an issue

Something broken or not quite right? Tell us and we will look into it.