Tools / free calculator
Odds ratio and relative risk calculator
Enter a 2×2 table. You get the odds ratio and risk ratio with 95% confidence intervals, absolute risk reduction, number needed to treat, a chi-square test, and a sentence you can paste into your results.
Confounding, selection and measurement bias all sit between this number and a claim about cause. Adjusting for them requires a model, not a 2×2 table — and it is the first thing a reviewer will ask about.
Statistical consultancy →
Sidra KhanLead Biostatistician · checked this calculator
In short
How do you calculate an odds ratio?
An odds ratio is the odds of an outcome in the exposed group divided by the odds in the unexposed group, calculated from a 2×2 table as (a×d)/(b×c). Its 95% confidence interval is found on the log scale. If the interval excludes 1, the association is statistically significant at the 5% level.
Related services
If the outcome is common and the measure matters
SPSS data analysis
The right tests, annotated output, reusable syntax and APA-ready tables.
From £95NHS data analysis
Audit, service evaluation and outcomes work for health organisations.
Fixed quoteIndependent statistical review
A fixed-price check of analysis already done, before it reaches a journal or a board.
Fixed quoteEvery piece of work is done and signed by a named statistician. Send the data or describe the project and you get a price and a deadline, usually within one working day.
Further reading
The guide behind this calculator
More tools
Other free calculators
Send the data. Get a fixed quote.
Attach your dataset or just describe the project. A named statistician replies with a price and a deadline, usually within one working day.