Incidence Rate Ratio Calculator

Inputs

Incidence rate ratio1.875
Rate in exposed (per 1,000)3.75
Rate in unexposed (per 1,000)2.00
95% CI, lower1.107
95% CI, upper3.175
Rate difference (per 1,000)1.75
How this was calculated
  1. Inputs: 45 cases in 12,000 person-time exposed; 20 cases in 10,000 person-time unexposed.
  2. Incidence rates per 1,000 person-time: exposed 45 / 12,000 x 1,000 = 3.75; unexposed 20 / 10,000 x 1,000 = 2.00.
  3. The rate ratio divides them: 3.75 / 2.00 = 1.875. Its 95% confidence interval comes from the log scale, ln(IRR) +/- 1.96 x sqrt(1/a + 1/c) with standard error 0.2687, giving 1.107 to 3.175.
  4. Incidence rate ratio: 1.875 (95% CI 1.107-3.175) - the exposed group's incidence is 1.875 times the unexposed group's.

Risks compare people; rates compare person-time. When follow-up differs between groups - patients observed for different lengths of time - the honest comparison is events per unit of person-time, and its ratio is the incidence rate ratio. Enter cases and person-time for exposed and unexposed groups, and the calculator returns both rates, their ratio, a 95% confidence interval and the rate difference.

The IRR is the cohort-study workhorse: it is what Poisson regression estimates, what vaccine and occupational studies report, and what a risk ratio becomes when observation time cannot be ignored.

Worked examples

Rate close to doubled in the exposed

(45 · 12000 · 20 · 10000)

Incidence rate ratio1.875
Rate in exposed (per 1,000)3.75
Rate in unexposed (per 1,000)2.00
95% CI, lower1.107
95% CI, upper3.175
Rate difference (per 1,000)1.75

Protective exposure

(12 · 5400 · 30 · 6000)

Incidence rate ratio0.444
Rate in exposed (per 1,000)2.22
Rate in unexposed (per 1,000)5.00
95% CI, lower0.228
95% CI, upper0.868
Rate difference (per 1,000)-2.78

Small effect, many cases

(150 · 48000 · 140 · 50000)

Incidence rate ratio1.116
Rate in exposed (per 1,000)3.13
Rate in unexposed (per 1,000)2.80
95% CI, lower0.886
95% CI, upper1.405
Rate difference (per 1,000)0.33

Rates need person-time, not just people

The first worked example counts 45 cases over 12,000 units of person-time in the exposed group - a rate of 3.75 per 1,000 - against 20 cases over 10,000 in the unexposed, a rate of 2.00 per 1,000. The ratio is 1.875: the exposed group's event rate is close to double.

Person-time is the denominator that respects reality. A study that follows 1,000 people for a decade and one that follows 10,000 for a year can accumulate the same person-time with very different case counts per person; the rate, unlike the risk, puts them on a common footing.

The units of person-time cancel in the ratio - years, months or days give the same IRR - but they must be the same units in both groups, and the printed rates inherit them: per 1,000 person-years if the inputs were person-years.

  • Rate = cases / person-time; IRR = exposed rate / unexposed rate.
  • The confidence interval is built on the log scale with standard error sqrt(1/a + 1/c).
  • The interval's width is driven by case counts, not by person-time.

The log-scale confidence interval

Ratios live on a multiplicative scale, so their intervals are built on logarithms and exponentiated back: symmetric on the log scale, asymmetric on the natural scale. The first example's interval runs from 1.107 to 3.175 around the estimate 1.875 - it excludes 1, so the elevation is statistically supported at the 5% level, but the true ratio could plausibly be anywhere from 'barely raised' to 'tripled'.

The second example is a protective association: 12 cases in 5,400 person-time against 30 in 6,000 gives an IRR of 0.444 with an interval of 0.228 to 0.868 - again excluding 1, this time below it. The rate difference of -2.78 per 1,000 states the same finding in absolute terms.

The third example teaches the precision lesson: 150 and 140 cases produce an IRR of 1.116 with an interval of 0.886 to 1.405. Ten times the cases of the second example, and the interval still straddles 1 - because the effect is small, and precision cannot rescue a small effect from ambiguity at these counts.

ExampleIRRExposed rateUnexposed rate95% CI
First1.8753.752.001.107 to 3.175
Second0.4442.225.000.228 to 0.868
Third1.1163.132.800.886 to 1.405

Worked examples

Example 1: Cases, exposed 45; Person-time, exposed 12000; Cases, unexposed 20; Person-time, unexposed 10000. Incidence rate ratio = 1.875. Supporting values: Rate in exposed (per 1,000) 3.75; Rate in unexposed (per 1,000) 2.00; 95% CI, lower 1.107; 95% CI, upper 3.175; Rate difference (per 1,000) 1.75. Inputs: 45 cases in 12,000 person-time exposed; 20 cases in 10,000 person-time unexposed. Incidence rates per 1,000 person-time: exposed 45 / 12,000 x 1,000 = 3.75; unexposed 20 / 10,000 x 1,000 = 2.00. The rate ratio divides them: 3.75 / 2.00 = 1.875. Its 95% confidence interval comes from the log scale, ln(IRR) +/- 1.96 x sqrt(1/a + 1/c) with standard error 0.2687, giving 1.107 to 3.175. Incidence rate ratio: 1.875 (95% CI 1.107-3.175) - the exposed group's incidence is 1.875 times the unexposed group's.

Example 2: Cases, exposed 12; Person-time, exposed 5400; Cases, unexposed 30; Person-time, unexposed 6000. Incidence rate ratio = 0.444. Supporting values: Rate in exposed (per 1,000) 2.22; Rate in unexposed (per 1,000) 5.00; 95% CI, lower 0.228; 95% CI, upper 0.868; Rate difference (per 1,000) -2.78. Inputs: 12 cases in 5,400 person-time exposed; 30 cases in 6,000 person-time unexposed. Incidence rates per 1,000 person-time: exposed 12 / 5,400 x 1,000 = 2.22; unexposed 30 / 6,000 x 1,000 = 5.00. The rate ratio divides them: 2.22 / 5.00 = 0.444. Its 95% confidence interval comes from the log scale, ln(IRR) +/- 1.96 x sqrt(1/a + 1/c) with standard error 0.3416, giving 0.228 to 0.868. Incidence rate ratio: 0.444 (95% CI 0.228-0.868) - the exposed group's incidence is 0.444 times the unexposed group's.

Example 3: Cases, exposed 150; Person-time, exposed 48000; Cases, unexposed 140; Person-time, unexposed 50000. Incidence rate ratio = 1.116. Supporting values: Rate in exposed (per 1,000) 3.13; Rate in unexposed (per 1,000) 2.80; 95% CI, lower 0.886; 95% CI, upper 1.405; Rate difference (per 1,000) 0.33. Inputs: 150 cases in 48,000 person-time exposed; 140 cases in 50,000 person-time unexposed. Incidence rates per 1,000 person-time: exposed 150 / 48,000 x 1,000 = 3.13; unexposed 140 / 50,000 x 1,000 = 2.80. The rate ratio divides them: 3.13 / 2.80 = 1.116. Its 95% confidence interval comes from the log scale, ln(IRR) +/- 1.96 x sqrt(1/a + 1/c) with standard error 0.1175, giving 0.886 to 1.405. Incidence rate ratio: 1.116 (95% CI 0.886-1.405) - the exposed group's incidence is 1.116 times the unexposed group's.

Rate ratio against rate difference

The ratio and the difference answer different questions. The IRR of 1.875 in the first example is the etiological statement - how strongly exposure multiplies the rate. The difference of 1.75 per 1,000 is the public-health statement - how many extra cases per unit of person-time the exposure accounts for, which is what intervention planning spends.

A huge ratio on a tiny base rate can matter less than a modest ratio on a common outcome. Report both, as this calculator does: readers who need only one will take it, and readers who need the other will not be misled by its absence.

An IRR is not a risk ratio. With long follow-up or common outcomes the two diverge, because rates count events per time at risk while risks count people affected. Match the measure to the design.

Reading cohort results honestly

The crude IRR assumes the groups are comparable. Age is the usual confounder - it drives most event rates and sorts unevenly into exposure groups - which is why published studies report adjusted ratios from Poisson or Cox models. The crude figure from this calculator is the starting point and the sanity check on the adjusted one: if adjustment moves the estimate dramatically, the confounding story should be visible in the data.

Person-time accounting has its own traps: time during which a participant could not have had the event (already having it, or not yet under observation) must not be counted, and immortal time bias - crediting exposure with survival time - is the classic error in pharmacoepidemiology. The arithmetic here is exact; the denominators it is fed decide whether it means anything.

Entering your study's numbers

Cases are event counts, and person-time is the sum of observation time across the group, in one consistent unit. If your source reports rates and totals instead, recover the counts before using the calculator - the confidence interval depends on the case counts themselves, and no manipulation of rates alone can reconstruct them.

For rare events with zero cases in a group, the log-scale interval breaks down (the standard error involves 1 over the case count). Exact Poisson methods or a continuity correction are the right tools there; this calculator assumes at least one case in each group.

One applied reading deserves emphasis because it fills the news: vaccine effectiveness against an outcome is routinely reported as 1 minus the incidence rate ratio between vaccinated and unvaccinated groups. The protective second example's structure - an IRR of 0.444 - is exactly the shape of such a study, and its interval of 0.228 to 0.868 is the honest version of the headline: the point estimate suggests strong protection, while the interval admits everything from modest to very strong. Reading the interval rather than the point is the whole skill this calculator is built to teach.

One design note completes the picture: person-time should stop accruing when a participant has the event, leaves the study, or dies of a competing cause, because from that moment they are no longer at risk of a first event in the way the rate presumes. Studies differ in how they handle recurrent events - some count every event against continuing person-time - and the choice changes the estimand, not just the arithmetic. When you enter numbers here, you are implicitly choosing the first-event convention; if your source counted recurrences, its published ratio answers a slightly different question from the one this page computes.

FAQs

What IRR does the first example give?

The first example gives an incidence rate ratio of 1.875: a rate of 3.75 per 1,000 person-time in the exposed group against 2.00 in the unexposed. The exposed rate is close to double.

What is the interval's lower bound in the first example?

The lower bound is 1.107 in the first example. The whole 95% interval sits above 1, so the elevation is statistically supported, though the true ratio may be only slightly raised.

What is the interval's upper bound in the first example?

The upper bound is 3.175 in the first example. The data are also compatible with the exposed rate being more than triple the unexposed rate - the interval, not the point estimate, is the honest summary.

What IRR does the protective example give?

The protective example gives an IRR of 0.444: the exposed group's rate (2.22 per 1,000) is under half the unexposed rate (5.00 per 1,000), with an interval entirely below 1.

What is the protective example's upper bound?

The protective example's upper bound is 0.868. Even the least protective end of the interval represents a rate reduction, which is what makes the finding reportable.

What IRR does the large third example give?

The large third example gives an IRR of 1.116, with an interval of 0.886 to 1.405. Despite 150 and 140 cases in the two groups, the small effect size leaves the result statistically ambiguous.

Sources

Related calculators

Relative Risk Calculator
Relative risk from a two-by-two table with the risks in both groups and a 95 percent confidence interval by the log method.
Standardized Mortality Ratio (SMR) Calculator
Standardized mortality ratio SMR = observed / expected deaths x 100, with Byar 95% confidence limits and the excess death count.
Diagnostic Odds Ratio Calculator
The diagnostic odds ratio from sensitivity and specificity - the single-number accuracy measure meta-analyses pool - with both likelihood ratios.