What vaccine efficacy measures
Vaccine efficacy is the proportional reduction in disease among vaccinated people compared with unvaccinated people under the conditions of a study, usually a randomized trial. It is calculated from two attack rates: the attack rate in the unvaccinated group (ARU) and the attack rate in the vaccinated group (ARV). Efficacy is the share of the unvaccinated attack rate that vaccination removes: VE = (ARU − ARV) / ARU, which equals 1 − ARV/ARU, or 1 minus the risk ratio.
The calculator takes the group sizes and the case counts, works out both attack rates, and reports efficacy, the risk ratio, the absolute risk reduction (ARU − ARV), the number needed to vaccinate, and an approximate 95% confidence interval for efficacy. If you only have attack rates, enter 100 as each group size and the rate per 100 people as the case count (decimals are accepted for cases).
The equations
- ARV = vaccinated cases / vaccinated group size. ARU = unvaccinated cases / unvaccinated group size.
- Risk ratio RR = ARV / ARU. VE = 1 − RR.
- Absolute risk reduction = ARU − ARV. Number needed to vaccinate = 1 / (ARU − ARV).
- 95% interval: the standard error of ln(RR) is √(1/a − 1/nV + 1/c − 1/nU), where a and c are the vaccinated and unvaccinated case counts. The interval for RR is RR × e±1.96 × SE, and the efficacy interval is 1 minus each end. If the vaccinated group has zero cases, 0.5 is added to the cases in the interval calculation only.
Worked example
Suppose 20,000 vaccinated people had 8 cases and 20,000 unvaccinated people had 160 cases, which are the default inputs. ARV = 8 / 20,000 = 0.04% and ARU = 160 / 20,000 = 0.80%.
VE = (0.0080 − 0.0004) / 0.0080 = 0.95, or 95.0%. The risk ratio is 0.05. The absolute risk reduction is 0.76 percentage points, so the number needed to vaccinate is 1 / 0.0076 ≈ 131.6 people. The standard error of ln(RR) is √(1/8 − 1/20,000 + 1/160 − 1/20,000) ≈ 0.362, so RR ranges from 0.05 × e−0.710 ≈ 0.025 to 0.05 × e0.710 ≈ 0.102, giving an efficacy interval of about 89.8% to 97.5%.
Efficacy versus effectiveness, and common mistakes
- Efficacy is not effectiveness. Efficacy comes from controlled trials. Effectiveness is the protection observed in routine use, which can differ because of the population, variants, timing and how the outcome is measured.
- Efficacy is a relative figure. 95% efficacy does not mean 5% of vaccinated people get the disease. It means the vaccinated attack rate is 5% of the unvaccinated attack rate. Use the absolute risk reduction alongside it.
- Comparing groups that differ. Observational comparisons of vaccinated and unvaccinated people can be confounded by age, exposure and health behaviour. Randomized trials avoid most of this.
- Different follow-up or case definitions. Both groups must be followed for the same time and counted with the same rules, otherwise the attack rates are not comparable.
- Small counts. With few cases the interval is wide, so a high point estimate can still be uncertain. This tool uses a simple large-sample approximation, not the exact methods used in formal trial analyses.
This is an educational calculator. It does not replace the analysis of a trial statistician or public health guidance from your health authority.