This calculator is for general information and education. It is not medical advice and does not replace the advice of your doctor or a registered dietitian.
Attributable risk tells how much of the risk of an outcome can be linked to an exposure, such as smoking or a workplace hazard. The attributable risk calculator takes the risk in an exposed group, the risk in an unexposed group and the share of the population exposed and gives the risk difference, the relative risk, the attributable fraction among the exposed, the population attributable fraction and the number needed to harm.
How the calculation works
- Attributable risk = risk in the exposed group − risk in the unexposed group. It is the excess risk linked to the exposure, in percentage points.
- Relative risk = risk in the exposed ÷ risk in the unexposed.
- Attributable fraction among the exposed = (risk exposed − risk unexposed) ÷ risk exposed, the share of the cases in the exposed group that would not occur without the exposure.
- Population attributable fraction = p × (RR − 1) ÷ (1 + p × (RR − 1)), where p is the share of the population exposed. The number needed to harm is 100 ÷ attributable risk (in points).
Example
If 12% of an exposed group and 4% of an unexposed group develop a condition, the attributable risk is 12 − 4 = 8 percentage points and the relative risk is 12 ÷ 4 = 3.00. Among the exposed, (12 − 4) ÷ 12 = 66.7% of the cases are attributable to the exposure. If 30% of the population is exposed, the population attributable fraction is 0.3 × 2 ÷ (1 + 0.3 × 2) = 37.5%, and one extra case occurs for every 12.5 people exposed.
Why it matters
Relative risk alone can mislead, since a high ratio on a rare outcome means few extra cases. The attributable measures turn a study result into a count of cases and a share of the burden, which is what public health decisions need.
Good to know
The calculation is simple arithmetic and assumes that the numbers come from a sound study and that the exposure causes the outcome. It does not account for confounding, follow-up time or the precision of the estimates. Confidence intervals are not given. Take medical decisions with a professional.
Related tools
The relative risk calculator gives the ratio of two risks and the number needed to treat calculator translates a risk reduction into people treated.