Risk Difference & NNT Calculator

Calculate Risk Difference and Number Needed to Treat/Harm

CasesControls
Exposed
Unexposed
Total00

Limits: max 2 rows, 2 columns, values up to 999,999,999

Results will appear here

Enter values to calculate Risk Difference and NNT/NNH

Formula

Risk Difference (Attributable Risk)

The risk difference (RD) measures the absolute difference in risk between exposed and unexposed groups:

RD=p1βˆ’p2=aa+bβˆ’cc+dRD = p_1 - p_2 = \frac{a}{a+b} - \frac{c}{c+d}

Where:

  • p1=a/(a+b)p_1 = a/(a+b) = risk in exposed group
  • p2=c/(c+d)p_2 = c/(c+d) = risk in unexposed group

95% Confidence Interval:

CI95%=RDΒ±1.96Γ—SERDCI_{95\%} = RD \pm 1.96 \times SE_{RD}

Where:

SERD=p1(1βˆ’p1)n1+p2(1βˆ’p2)n2SE_{RD} = \sqrt{\frac{p_1(1-p_1)}{n_1} + \frac{p_2(1-p_2)}{n_2}}
  • n1=a+bn_1 = a+b = total in exposed group
  • n2=c+dn_2 = c+d = total in unexposed group