Skip to content
Omnikalc

Vaccine efficacy calculator: how much does a vaccine cut the risk?

Enter the cases and the number of people in the vaccinated and unvaccinated groups to get vaccine efficacy, relative risk, attack rates and cases prevented.

Updated on

Educational tool, not medical advice: this page does not diagnose and does not replace a doctor, nurse or pharmacist. It has not been reviewed by a healthcare professional. Editorial and medical policy

Your inputs

Value out of range

Value out of range

Value out of range

Value out of range

Results

Vaccine efficacy

95.0%

Very high protection
Relative risk (vaccinated vs unvaccinated)
0.050
Attack rate, vaccinated (per 1,000)
0.40
Attack rate, unvaccinated (per 1,000)
8.00
Cases prevented per 100,000 vaccinated
760
People to vaccinate to prevent one case
131.6

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.

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.

Frequently asked questions

What is the difference between efficacy and effectiveness?

Efficacy is measured in a controlled trial, where participants are followed closely and the comparison group often gets a placebo. Effectiveness is measured in real-world use, among a more varied population, and is usually a little lower. The formula is the same, but the data and the conditions differ.

Does 95 percent efficacy mean 5 percent of vaccinated people get the disease?

No. It means that the vaccinated had 95 percent fewer cases than the unvaccinated would have had in the same conditions. If 8 in 1,000 unvaccinated people get sick, a 95 percent efficacy leaves 0.4 in 1,000 among the vaccinated, not 5 in 100.

Why do the group sizes matter?

The efficacy depends on the rate of cases in each group, so the groups must be compared fairly. If the two groups are of different sizes, the calculator uses the rate and not the raw count. Small numbers of cases give a very uncertain result, and a confidence interval should be reported.

Can the efficacy be negative?

Yes, if the vaccinated group had a higher attack rate than the unvaccinated group, the relative risk is above 1 and the efficacy is below zero. In practice it usually points to chance in a small study, to a bias in how people were chosen, or to a vaccine that does not work.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.