Statistics & probability

Relative risk from two group counts calculator

Compare event rates between two groups using a ratio and an absolute difference.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

The same risk ratio can correspond to very different absolute risk differences. Report both when the baseline rate matters.

THE FORMULARR = (eventsA/totalA)/(eventsB/totalB)

A worked example

20 out of 100 versus 10 out of 100 gives a risk ratio of 2.

Good to know

A zero comparison rate makes the ratio undefined.

Read the result

Compare event rates between two groups using a ratio and an absolute difference.

The primary result is labeled “Risk ratio”. Keep the input definitions in view when comparing this result with another method.

Try a related calculation

A zero comparison rate makes the ratio undefined.

For a related exercise, try the statistics calculator.

A few questions, answered

How can I check the default inputs by hand?

20 out of 100 versus 10 out of 100 gives a risk ratio of 2.

Which rule does this calculator apply?

RR = (eventsA/totalA)/(eventsB/totalB)

Find your calculator

Start typing to explore the library.