What relative risk measures
Relative risk (RR), also called the risk ratio, compares how often an outcome happens in an exposed group versus an unexposed control group. It answers a simple question: does being exposed to something — a drug, a treatment, a behavior, a risk factor — make the outcome more or less likely, and by how much?
You build it from a 2×2 table of counts:
- a = events (the outcome occurred) in the exposed group
- b = non-events in the exposed group
- c = events in the control group
- d = non-events in the control group
The formula
The risk in each group is the number of events divided by the group total:
Risk in exposed = a / (a + b) · Risk in control = c / (c + d)
Relative risk is the ratio of those two risks:
RR = [a / (a + b)] / [c / (c + d)]
For example, if 30 of 100 exposed subjects have the outcome (risk = 0.30) and 15 of 100 control subjects do (risk = 0.15), then RR = 0.30 / 0.15 = 2.0 — the exposed group has twice the risk.
How to read the number
- RR = 1 — no association. The outcome is equally likely in both groups.
- RR > 1 — the exposure is associated with increased risk. RR = 2.0 means double the risk; RR = 1.5 means 50% higher risk.
- RR < 1 — the exposure is associated with reduced risk (often a protective effect). RR = 0.75 means a 25% lower risk.
The 95% confidence interval
A single RR is a point estimate from one sample. The confidence interval shows the range of values compatible with your data. This tool uses the standard log method: the standard error of ln(RR) is √(1/a − 1/(a+b) + 1/c − 1/(c+d)), and the 95% interval is exp(ln(RR) ± 1.96 × SE). If the interval does not include 1, the association is statistically significant at the 5% level; if it straddles 1, the data are also consistent with no effect.
Relative risk vs. odds ratio
Relative risk needs the total number at risk in each group, so it applies to cohort studies and randomized controlled trials. Case-control studies, which sample by outcome rather than by exposure, cannot estimate true risks and report the odds ratio instead. When the outcome is rare, the odds ratio closely approximates RR; when the outcome is common, the odds ratio overstates the effect and should not be read as a risk ratio.