relative risk calculator

Need to compare risk between two groups quickly and clearly? Use this relative risk calculator to evaluate whether an exposure (like smoking, a treatment, or a behavior) is associated with higher or lower event probability compared to a control group.

Relative Risk Calculator

Enter a standard 2×2 study table. All values should be non-negative counts.

What Is Relative Risk?

Relative risk (RR) compares the probability of an event in an exposed group to the probability in an unexposed (or control) group. It is widely used in epidemiology, clinical trials, public health, and cohort studies.

  • RR = 1: no difference in risk between groups.
  • RR > 1: exposure is associated with higher risk.
  • RR < 1: exposure is associated with lower risk (possible protective effect).

Formula Used by This Calculator

2×2 Table Setup

  • a = exposed with event
  • b = exposed without event
  • c = unexposed with event
  • d = unexposed without event

Risk (exposed) = a / (a + b)

Risk (unexposed) = c / (c + d)

Relative Risk = [a / (a + b)] / [c / (c + d)]

The calculator also reports absolute risk difference and a 95% confidence interval for RR when computable.

How to Use the Calculator Correctly

1) Enter event counts by group

Use raw counts, not percentages. If you only have percentages, convert them back to counts using sample size first.

2) Confirm group direction

The interpretation depends on which group you define as “exposed.” If you swap groups, RR becomes its inverse.

3) Check zero cells

When any cell is zero, RR or confidence interval calculations can become unstable. The optional continuity correction helps produce finite estimates for small samples.

Interpreting Results in Practice

Suppose RR = 1.50. That means the exposed group has 50% higher risk than the control group. If RR = 0.70, the exposed group has 30% lower risk.

Always read RR together with:

  • Absolute risk difference (how much risk changes in percentage points)
  • Confidence interval (precision and uncertainty)
  • Study quality (randomization, confounding, sample size, bias)

Relative Risk vs. Odds Ratio

Relative risk is intuitive because it uses probabilities directly. Odds ratio is common in case-control studies and logistic regression, but can overstate effect size when outcomes are common. For prospective cohorts and randomized trials, RR is often easier to explain.

Common Mistakes to Avoid

  • Mixing up percentages and counts
  • Interpreting association as causation without considering confounders
  • Ignoring baseline risk (a large RR can still reflect a small absolute change)
  • Over-interpreting results from small sample sizes

Quick Example

Imagine a trial where 30 of 200 exposed participants have the event, and 20 of 250 control participants have the event.

  • Exposed risk = 30/200 = 15%
  • Control risk = 20/250 = 8%
  • RR = 15% / 8% = 1.875

Interpretation: the exposed group has about 87.5% higher risk than the control group.

Final Note

This tool is for educational and analytical use. For clinical or policy decisions, combine RR with full statistical context, study design details, and expert interpretation.

🔗 Related Calculators