Relative Risk Calculator
Find the relative risk from a 2×2 table.
Result
How it is calculated
Relative risk (risk ratio) compares the chance of an outcome in an exposed group with the chance in an unexposed group: RR = [a ÷ (a + b)] ÷ [c ÷ (c + d)]. Cell a = exposed with the outcome, b = exposed without, c = unexposed with the outcome, d = unexposed without. The first fraction is the risk in the exposed group, the second the risk in the unexposed group. RR = 1 means no difference, above 1 means higher risk with exposure and below 1 means lower. Counts cannot be negative, each group must contain someone, and c must be above zero. The result has four decimals, with no confidence interval.
Worked example
Exposed group: 20 with the outcome out of 100 (20 + 80), so the risk is 0.20. Unexposed group: 10 out of 100 (10 + 90), risk 0.10. RR = 0.20 ÷ 0.10 = 2.0000. The exposed group has twice the risk.
Common mistakes
- Using the odds ratio formula (a·d)/(b·c) in place of RR; with common outcomes the two values differ.
- Entering the group totals in b and d rather than the numbers without the outcome.
- Swapping the exposed and unexposed rows, which gives the reciprocal of the true RR.
- Using RR on case-control data, where the group sizes are chosen by the researcher and the risks cannot be estimated.
- Putting zero in c; the unexposed risk is then zero and the ratio is undefined.
Sources
- Relative Risk — StatPearls, 2023
About this calculator
This calculator computes relative risk (RR), also called the risk ratio, from a 2×2 contingency table of exposed/unexposed groups and outcome/no-outcome counts: RR = [a/(a+b)] / [c/(c+d)], where a and b are the exposed group with and without the outcome, and c and d are the unexposed group with and without the outcome. An RR of 1 means no difference in risk between groups; RR of 2 means the exposed group has double the risk.
Relative risk is the standard measure reported in prospective cohort studies and randomized controlled trials to quantify how much an exposure — a drug, a risk factor, a behavior — changes the probability of an outcome, and it's distinct from odds ratio, which is used in case-control studies.
Epidemiologists and public health researchers analyzing cohort study data, clinicians interpreting drug trial results, and biostatistics students learning the difference between relative risk and odds ratio all use this calculation.
Was this helpful?
You can pick up to 3 reactions.
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
- Loan Calculator
- Profit Calculator
- Discount Calculator
- BMI Calculator
- Percentage Calculator
- Ideal Weight Calculator
- Age Calculator
- Pregnancy Due Date Calculator
- Compound Interest Calculator
- BMR Calculator (Basal Metabolic Rate)
- Tip Calculator
- Fuel Cost Calculator
- Date Difference Calculator
- Sleep Cycle Calculator
- Daily Water Intake Calculator
- Simple Interest Calculator
- Heart Rate Zones Calculator
- Running Pace Calculator
- Pet Age Calculator
- Calories Burned Calculator
- Macro Calculator
- TDEE Calculator (Total Daily Energy Expenditure)
- Waist-to-Hip Ratio Calculator
- Honor Roll Calculator
- One Rep Max (1RM) Calculator
- Ovulation Calculator
- Electricity Cost Calculator
- Unit Price Calculator
- Savings Goal Calculator
- Break-Even Point Calculator
- Paint Calculator
- Course Grade Average Calculator
- Business Days Calculator
- Time Duration Calculator
- Fuel Economy Calculator
- Temperature Converter
- Tile Calculator
- Aspect Ratio Calculator
- Roman Numeral Converter
- Goal Weight Timeline Calculator
- Salary Converter (Hourly to Annual)
- Credit Card Validator (Luhn)
- Body Surface Area (BSA) Calculator
- Feels-Like Temperature Calculator
- Ohm’s Law Calculator
- PPI (Pixel Density) Calculator
- Molar Mass Calculator
- Zodiac Sign Calculator (Western + Chinese)
- IBAN Validator
- Shoe Size Converter
- Country Info & Dialing Code Lookup
- Time Zone Difference (World Clock)
- CAGR (Compound Annual Growth Rate) Calculator
- Rule of 72 Calculator
- Blood Alcohol Content (BAC) Calculator
- Lean Body Mass (LBM) Calculator
- Pythagorean Theorem Calculator
- Speed Converter
- Download Time Calculator
- Date Calculator (Add/Subtract)
No calculators found
Comments (1)
Relative risk only makes sense when the table comes from following groups forward, as in a cohort study or a trial, where the group sizes reflect real risk. In a case-control study the counts are chosen by the researchers, so the ratio of those fractions does not estimate risk and an odds ratio is the usual measure instead. The tool also shows no confidence interval, so small counts can look more decisive than they are. Which kind of study does your table come from?