Risk Calculator

Risk Calculator

Turn event counts into a risk expressed every useful way (percentage, odds, "1 in N", per 1,000), or convert a yearly risk into the risk over several years without the common adding-up error.

Risk = events ÷ people at risk

Enter the number of events and people at risk

What Is Risk in Statistics?

In statistics and epidemiology, risk is the probability that an event happens to a person over a stated period: the number who experience it divided by the number who could have. A risk always needs a time frame: "a 5% risk" means nothing without "per year" or "over ten years".

The same risk can be written several ways. 0.75%, 7.5 per 1,000 and "about 1 in 133" are identical, but people understand the "1 in N" and "per 1,000" forms more reliably than percentages, especially for small risks.

Risks over longer periods don't simply add. A 2% risk each year isn't 20% over ten years, because you can only experience a one-off event once: each year applies only to those still unaffected.

Risk Formulas

As given in Rothman, Greenland & Lash, Modern Epidemiology, chapter 3. See Sources.

1. Risk (incidence proportion)

risk = events ÷ people at risk · 1 in N, where N = 1 ÷ risk

2. Odds

odds = events ÷ non-events = risk ÷ (1 − risk)

3. Over several periods

risk over t periods = 1 − (1 − p)ᵗ

This assumes the same risk each period and that the periods are independent.

Worked Example: A 2% Yearly Risk Over Ten Years

Given:
A patient has a 2% risk each year of a first heart attack. What's the risk over 10 years?
Step 1:
Chance of getting through one year:
1 − 0.02 = 0.98
Step 2:
Getting through all ten:
0.98¹⁰ = 0.8171
Step 3:
Ten-year risk:
1 − 0.8171 = 18.3%
Result:
About 18.3%, not 20%

The difference is small here but grows quickly: at 10% a year, adding gives 100% over ten years, while the true risk is 65%. Converting back, a 10-year risk of 18.3% is 2% a year.

Yearly Risk Added Up Over Time

Cumulative risk, 1 − (1 − p)ᵗ, for different yearly risks.

Cumulative risk over 5, 10 and 20 years for several yearly risks
Yearly risk5 years10 years20 years
0.5%2.5%4.9%9.5%
1%4.9%9.6%18.2%
2%9.6%18.3%33.2%
5%22.6%40.1%64.2%
10%41%65.1%87.8%

Common Risk Mistakes

  • Adding yearly risks. It overstates the total, badly so for large risks or long periods.
  • Leaving out the time frame. "A 10% risk" could be per year or per lifetime; the two differ enormously.
  • Confusing risk and odds. 20 events in 100 is a risk of 20% but odds of 0.25. They're close only for rare events.
  • Using the wrong denominator. Divide by people who could have the event: for a pregnancy complication, pregnant women, not the whole population.

Risk FAQs

What is the difference between risk and rate?

Risk is a proportion of people over a period. A rate counts events per unit of person-time, such as per 1,000 person-years, and can exceed 1.

What is the difference between risk and odds?

Risk divides events by everyone at risk; odds divide events by those without the event.

Why is “1 in N” helpful?

People picture “1 in 50” more accurately than “2%”, especially when comparing small risks.

Can I convert a 10-year risk to a yearly one?

Yes, if the risk is steady: yearly = 1 − (1 − total)^(1/10).

Does this work for repeated events?

The time formula is for the first occurrence of an event. For events that can recur, use rates instead.

Can the number of periods be a fraction?

Yes, such as 2.5 years at a yearly risk, assuming the risk is spread evenly.

How do I compare risks between groups?

Use the relative risk calculator for risk ratios, absolute differences and the number needed to treat.

What is absolute risk?

The plain risk for one group, as calculated here, as opposed to a relative risk comparing two groups.

Sources

  • K. J. Rothman, S. Greenland and T. L. Lash, Modern Epidemiology, 3rd edition (Lippincott Williams & Wilkins, 2008), chapter 3: measures of occurrence.
  • G. Gigerenzer et al., "Helping doctors and patients make sense of health statistics", Psychological Science in the Public Interest 8 (2007), doi:10.1111/j.1539-6053.2008.00033.x.

Related Tools