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.
Vaccine efficacy is the percentage by which a vaccine reduces the risk of disease in the people who receive it. The vaccine efficacy calculator takes the number of people and the number of cases in a vaccinated and an unvaccinated group, and gives the efficacy, the relative risk, the attack rates, the cases prevented per 100,000 and the number needed to vaccinate.
How the calculation works
- Find the attack rate in each group: the number of cases divided by the number of people. Call them ARV for the vaccinated and ARU for the unvaccinated.
- Relative risk = ARV ÷ ARU. A value of 0.05 means the vaccinated had one twentieth of the risk of the unvaccinated.
- Vaccine efficacy = (1 − relative risk) × 100, or (ARU − ARV) ÷ ARU × 100. It is the percentage by which vaccination cut the risk among those who were vaccinated.
- Cases prevented per 100,000 = (ARU − ARV) × 100,000, and the number to vaccinate to prevent one case = 1 ÷ (ARU − ARV).
Example
A trial has 20,000 people in each group. There are 8 cases among the vaccinated and 160 cases among the unvaccinated. The attack rates are 0.40 and 8.00 per 1,000, so the relative risk is 0.050 and the efficacy is 95.0 %. The vaccine prevents 760 cases per 100,000 people vaccinated, and about 131.6 people must be vaccinated to prevent one case during the follow-up.
Why it matters
A trial result such as “95 percent” is easy to misread. Working from the raw counts shows the attack rates behind it and the number of cases that vaccination avoids, which is what matters for a person deciding or a health authority planning a campaign.
Good to know
The calculation assumes the two groups are similar, are followed for the same time and have the same exposure to the disease. In a study with few cases the result is uncertain, and the confidence interval can be wide. The efficacy depends on the outcome measured, such as any infection, symptomatic disease or hospitalization, and on the variant and the period of follow-up.
Related tools
The herd immunity calculator gives the share of people who must be immune to stop spread, and the relative risk calculator compares two risks with a confidence interval.