Calculate attack rate from cases and people at risk, get the attack rate ratio for exposed vs unexposed groups, or find the secondary attack rate.
For educational/informational use only. This calculator does not provide medical advice, diagnosis, or outbreak confirmation. Results depend on using correct case definitions, a defined time window, and appropriate study design; for suspected outbreaks or urgent health concerns, contact a clinician and your local public health authority. For official guidance, consult outbreak investigation resources from your national public health agency (e.g., CDC). This tool may save inputs in your browser (local storage) for convenience—do not enter personal or identifiable health information.
- All Health and Medical Calculators
- Prevalence Calculator
- Incidence Rate Calculator
- Cumulative Incidence Calculator
Calculator Functions
| Function | What it does | What it requires |
|---|---|---|
| Attack rate — one group | Finds the percentage of an at-risk group that became ill during an outbreak or other defined period | Requires the new cases and the group initially at risk, with the cases counted inside that group |
| Compare exposed and unexposed (attack rate ratio) | Finds the attack rate ratio (relative risk) between people who had an exposure, such as eating a food, and people who did not | Requires the new cases and the group total for the exposed group and for the unexposed group |
| Secondary attack rate (contacts) | Finds the percentage of susceptible contacts of the primary cases who became ill | Requires the new cases among contacts and the number of susceptible contacts, leaving the primary cases out of both |
Every entry is a whole number of people. The one-group and secondary results also give cases per 1,000 people and the number who stayed well, and the comparison adds each group’s attack rate and the risk difference in percentage points.
Attack Rate Formulas
| AR | Attack rate (%), also called incidence proportion or risk |
| C | New cases of the illness during the specified period |
| N | People at risk: everyone in the group at the start of the period, including those who later became cases |
Because everyone in the numerator is also in the denominator, an attack rate is a proportion and cannot exceed 100% [1]. It is not a rate per unit of time, despite the name.
Attack rate — one group
The formula above applies directly. Used on everyone in the outbreak population it gives the overall attack rate: 18 cases in a community of 1,000 is 18 ÷ 1,000 × 100 = 1.8%. Used on only the people who ate one food it gives a food-specific attack rate: 30 ill among 99 who ate potato salad is 30 ÷ 99 × 100 = 30.3% [1]. A case count larger than the group is rejected.
Compare exposed and unexposed (attack rate ratio)
ARe and ARu are the attack rates of the exposed and unexposed groups, each found with the main formula. A ratio of 1 means the same risk in both groups, above 1 means higher risk in the exposed group, and below 1 means lower risk [2]. In a prison tuberculosis outbreak, 28 of 157 inmates on one wing and 4 of 137 on the other became ill: 17.8% ÷ 2.9% = 6.1 [2].
The risk difference is given in percentage points, 14.9 in the same example. When the unexposed group has no cases the ratio would divide by zero, so the result reads “Not defined” and only the two attack rates and the risk difference are shown.
Secondary attack rate (contacts)
Cc is the number of new cases among contacts and Nc is the number of susceptible contacts. The contacts are usually the people living in the households of the primary cases, minus the primary cases themselves [1]. If 18 primary cases live in households totalling 86 people, there are 86 − 18 = 68 contacts, and 17 later cases among them give 17 ÷ 68 × 100 = 25% [1].
Limits of This Estimate
- The result is only as good as the case definition and the time window. Both need to be fixed before cases are counted, and the same ones must be used for every group being compared.
- The comparison needs cohort data, where the totals count everyone exposed and everyone unexposed. Case-control data, with cases and a sample of well people, calls for an odds ratio.
- No confidence interval or significance test is calculated, and nothing adjusts for age, other foods or other differences between the groups. A high ratio points to an exposure worth investigating and does not prove it caused the illness.
Sources
- CDC, Principles of Epidemiology in Public Health Practice, Lesson 3, Section 2: Morbidity Frequency Measures: attack rate as incidence proportion, overall, food-specific and secondary attack rates, and their worked examples
- CDC, Principles of Epidemiology in Public Health Practice, Lesson 3, Section 5: Measures of Association: risk ratio formula, its interpretation and the tuberculosis example

