Part of the Maths & Statistics suite · 235 calculators

Relative Risk Calculator

The risk ratio between two groups, with its confidence interval — plus the absolute risk difference, which is what actually tells you whether the effect matters.

Relative risk is the probability of the outcome in the exposed group divided by the probability in the unexposed.

Results update as you type
Results
Relative risk
2
CI — lower
CI — upper
Risk if exposed
Risk if unexposed
Absolute risk difference
Number needed to treat or harm
Relative risk reduction
Does the interval exclude 1?
Reviewed September 2026. Pure mathematics: the result does not depend on where you are. Terminology follows the Australian Curriculum (maths, brackets, decimal point).
No account required · Google Analytics off unless allowedCalculator arithmetic runs in your browserResults update as you type
All calculations run 100% in your browser. The calculator code does not submit your figures to GlobalCalc to obtain a result.
About relative risk

How the relative risk calculator works

Relative risk is the probability of the outcome in the exposed group divided by the probability in the unexposed. Its confidence interval is built on the log scale with standard error √(1/a − 1/(a+b) + 1/c − 1/(c+d)).

The relative figure is the headline; the absolute risk difference is the one that decides anything. A doubling of a 1-in-100,000 risk is still a 1-in-100,000 risk.

Formula: RR = [a/(a+b)] / [c/(c+d)]

Worked examples

InputsRelative riskNote
30/100 against 15/1002RR = 2.0, but only 15 points in absolute terms
No difference1RR = 1
A rare outcome doubled2RR = 2, absolute difference 0.001 points

Frequently asked questions

What is relative risk?

The probability of an outcome in one group divided by the probability in another. RR = 2 means twice as likely.

Why does the absolute difference matter more?

Because it tells you how many people are actually affected. Doubling a 0.001% risk sounds alarming and changes almost nothing.

When can I use RR?

In cohort studies and trials, where you know who was exposed and follow them forward. Case-control studies can only give odds ratios.

What is the number needed to treat?

The reciprocal of the absolute risk difference — how many people you must treat for one to benefit. It is the single most useful number in clinical reporting.

Why do headlines always use relative figures?

Because they are larger. "50% higher risk" is a better headline than "0.3 percentage points", even when they describe the same finding.

Where these figures come from

Last checked: September 2026. Formulas are fixed by mathematics and do not change with tax years or regulations.