Free & Instant — No Signup Required

Relative Risk Calculator

Calculate relative risk (risk ratio), absolute risk reduction (ARR), relative risk reduction (RRR), and number needed to treat (NNT) from exposed and unexposed group data. Compare event rates between groups to quantify treatment effects and exposure risks — essential for clinical trials and epidemiological research.

Relative Risk Calculator — Live Preview
Relative Risk
—
A
B
⚖️
Proportion Solver
A : B = C : D — Enter any 3 values
:
=
:
📊
Results
Visual ratio breakdown
Solved Proportion
—
Simplified
—
Percentages
—
Decimal
—
Fraction
—
Visual Ratio
A
B
Part A: —
Part B: —
    ✨
    Ratio Simplifier
    Reduce any ratio to its simplest form
    :
    📊
    Simplified Result
    Reduced to lowest terms
    Simplified Ratio
    —
    GCD Used
    —
    Percentages
    —
    Decimal Ratio
    —
    Fraction
    —
    Visual Ratio
    A
    B
    Part A: —
    Part B: —
      📐
      Ratio Scaler
      Multiply a ratio by a scale factor
      :
      ×
      📊
      Scaled Result
      Ratio after scaling
      Scaled Ratio
      —
      Original
      —
      Factor
      —
      Percentages
      —
      Simplified
      —
      Visual Ratio
      A
      B

        🕐 Recent Calculations

        📭
        No calculations yet. Start computing above!

        What is Relative Risk?

        Relative risk (RR), also called the risk ratio, compares the probability of an event occurring in an exposed group to the probability in an unexposed group. An RR of 2.0 means the exposed group is twice as likely to experience the event. An RR of 0.5 means the exposed group has half the risk — indicating a protective effect. RR = 1.0 means no difference between groups.

        Relative risk is the standard effect measure for prospective cohort studies and randomized controlled trials, where participants are followed forward in time from exposure to outcome. Unlike the odds ratio (used in case-control studies), RR directly compares probabilities and is more intuitive: RR 2.0 genuinely means 'twice the risk.' This calculator also computes the absolute risk reduction and number needed to treat for clinical decision-making.

        About the Relative Risk Calculator

        Relative risk is the cornerstone measure for quantifying how much an exposure increases (or decreases) the likelihood of an outcome. In clinical trials, it answers the fundamental question: 'How many times more (or less) likely is the outcome in the treatment group compared to the control group?' Our Relative Risk Calculator provides this answer instantly from raw event counts.

        The calculator goes beyond the basic risk ratio to compute four related metrics: relative risk (RR), absolute risk reduction (ARR), relative risk reduction (RRR), and number needed to treat (NNT). While RR tells you the proportional change in risk, ARR tells you the actual percentage-point difference, and NNT tells you how many patients must be treated to prevent one event — the metric clinicians find most actionable.

        Understanding the distinction between relative and absolute risk is critical for evidence-based medicine. A drug that reduces relative risk by 50% (RR 0.50) sounds impressive, but if the baseline risk is only 2%, the absolute risk reduction is just 1 percentage point (NNT = 100). Our calculator presents both perspectives to prevent misleading interpretation.

        Whether you are analyzing a randomized controlled trial, interpreting a cohort study, reviewing drug efficacy data, or teaching epidemiology concepts, this calculator provides comprehensive risk analysis from a simple 2×2 input format.

        Formulas & Equations Used

        This Relative Risk Calculator uses the following core equations:

        1 Relative Risk ▼
        RR = (a / (a + b)) / (c / (c + d))

        Risk in exposed = a/(a+b). Risk in unexposed = c/(c+d). RR is their ratio.

        2 Absolute Risk Reduction ▼
        ARR = Risk_unexposed - Risk_exposed

        If control risk = 20% and treatment risk = 12%: ARR = 20% - 12% = 8 percentage points.

        3 Number Needed to Treat ▼
        NNT = 1 / ARR

        ARR of 8%: NNT = 1/0.08 = 12.5. You need to treat 13 patients to prevent 1 event.

        Need a refresher on ratio arithmetic, simplification steps, or cross-multiplication? Read our in-depth tutorial on How to Calculate Ratios Step by Step, or explore the full suite of interactive tools on the Ratio Calculator homepage.

        Key Features of This Relative Risk Calculator

        • Complete Risk Analysis: Calculates RR, ARR, RRR, and NNT simultaneously from event counts in exposed and unexposed groups.
        • Confidence Interval: Computes 95% CI for the relative risk to assess statistical significance.
        • Effect Direction Indicator: Clearly shows whether the exposure increases risk (RR > 1), decreases risk (RR < 1), or has no effect (RR = 1).
        • NNT Calculator: Derives the clinically actionable number needed to treat from the absolute risk difference.
        • Visual Risk Comparison: Side-by-side visual bar showing event rates in both groups for intuitive risk comparison.
        • Natural Language Output: Provides plain-English interpretation alongside statistical output for non-specialist audiences.

        Benefits of Using the Relative Risk Calculator

        • Evidence-Based Clinical Decisions: Quantify treatment benefits with both relative and absolute measures for balanced clinical interpretation.
        • Drug Efficacy Assessment: Calculate exactly how much a new treatment reduces event risk compared to standard of care or placebo.
        • Research Verification: Independently verify published relative risk calculations from raw study data.
        • Patient Communication: Translate complex risk statistics into NNT — the number of patients who need treatment to prevent one event — which patients understand intuitively.
        • Educational Support: Help epidemiology and biostatistics students master risk ratio calculations through hands-on practice.

        How to Use This Relative Risk Calculator

        Follow these 3 simple steps:

        1

        Enter Your Values

        Type the known values into the input fields above. The Relative Risk Calculator accepts any positive numbers.

        2

        Choose Calculation Mode

        Select Solve, Simplify, or Scale mode in the calculator. Each applies different equations to your inputs.

        3

        View Results

        Click Calculate to see your answer with a visual ratio bar, pie chart, and step-by-step solution breakdown.

        Real-World Use Cases

        • Clinical Trial Analysis: Calculate relative risk for primary and secondary endpoints from randomized controlled trial data.
        • Cohort Study Results: Compute risk ratios from prospective observational study data comparing exposed and unexposed groups.
        • Vaccine Efficacy: Determine vaccine efficacy as (1 - RR) × 100, showing the percentage reduction in disease risk among vaccinated individuals.
        • Occupational Health: Quantify workplace exposure risks by comparing disease rates between exposed workers and unexposed controls.
        • Public Health Policy: Evaluate the effectiveness of interventions (smoking cessation programs, screening campaigns) using population-level risk data.
        • Guideline Development: Support clinical guideline recommendations with quantified risk reduction evidence from pivotal trials.

        Example Problems & Step-by-Step Solutions

        Here are 3 worked examples using this Relative Risk Calculator:

        Example 1 Drug trial: treated group vs placebo
        1 Treated group: 10 events out of 500 patients (Risk_treated = 10 / 500 = 0.02 or 2%).
        2 Placebo group: 50 events out of 500 patients (Risk_placebo = 50 / 500 = 0.10 or 10%).
        3 Relative Risk: RR = 0.02 / 0.10 = 0.20.
        4 Relative Risk Reduction: (1 - 0.20) × 100% = 80%.
        ✓ Relative Risk is 0.20 (80% Risk Reduction)
        Example 2 Smoking and heart disease (cohort study)
        1 Smokers: 120 heart attacks per 1,000 person-years (Risk_1 = 0.12).
        2 Non-smokers: 30 heart attacks per 1,000 person-years (Risk_0 = 0.03).
        3 Relative Risk: RR = 0.12 / 0.03 = 4.00.
        ✓ Relative Risk is 4.00 (4× Higher Incidence)
        Example 3 Calculate NNT for a vaccine
        1 Absolute Risk Reduction (ARR): 0.10 - 0.02 = 0.08 (8%).
        2 Number Needed to Treat (NNT): 1 / ARR = 1 / 0.08 = 12.5.
        ✓ NNT is 13 patients to prevent one adverse event

        Expert Tips for Best Results

        1. Always report both relative risk AND absolute risk reduction — RR alone can be misleading when baseline risk is very low.
        2. NNT is most meaningful when the baseline risk is moderate to high. With very low baseline risks, NNT can be in the hundreds or thousands.
        3. Verify that your study design supports relative risk calculation — RR is valid for cohort studies and RCTs, but NOT for case-control studies (use odds ratio instead).
        4. Check whether the CI includes 1.0 before concluding an effect exists — an RR of 0.60 with CI 0.35-1.02 is not statistically significant.
        5. Consider the clinical significance alongside statistical significance — a large trial may find RR 0.95 (5% reduction) statistically significant but clinically trivial.
        6. When comparing treatments, the one with the lower NNT is more efficient at preventing events.

        Common Mistakes to Avoid

        ✗ Confusing relative risk with absolute risk ▼

        Fix: A 50% relative risk reduction (RR 0.50) from a 4% baseline risk gives only a 2% absolute reduction (NNT 50). From a 40% baseline, the same RR 0.50 gives a 20% absolute reduction (NNT 5). Always present both measures.

        ✗ Using relative risk in case-control studies ▼

        Fix: Case-control studies sample by outcome status, not exposure, so true incidence rates cannot be calculated. Use odds ratios for case-control data. Relative risk is only valid when you follow groups forward from exposure to outcome.

        ✗ Ignoring confounding variables ▼

        Fix: Crude (unadjusted) RR can be confounded by age, sex, smoking, and other factors. Adjusted RR from multivariable regression or stratified analysis provides a more accurate estimate of the true causal effect.

        ✗ Presenting NNT without a time frame ▼

        Fix: NNT is meaningless without specifying the treatment duration. An NNT of 20 over 5 years is very different from NNT 20 over 30 days. Always state the time frame with NNT.

        ✗ Assuming RR implies causation ▼

        Fix: Even in well-conducted cohort studies, an observed RR may be due to unmeasured confounding. Only randomized controlled trials can establish causal relationships with high confidence. Observational RR should be described as 'associated risk' not 'caused risk.'

        Frequently Asked Questions

        What does a relative risk of 1.0 mean? ▼

        RR = 1.0 means the event rate is identical in both groups — no association between the exposure and the outcome. The exposure neither increases nor decreases risk. Values above 1.0 indicate increased risk; values below 1.0 indicate decreased risk (protection).

        How is relative risk different from odds ratio? ▼

        RR compares probabilities (events ÷ total), while OR compares odds (events ÷ non-events). For rare outcomes (< 10% incidence), they produce similar values. For common outcomes, OR systematically overstates the association compared to RR. RR is more intuitive ('twice the risk') and preferred when calculable.

        What is a clinically significant relative risk? ▼

        This depends entirely on context. For cancer screening, RR = 0.80 (20% risk reduction) may be highly significant. For a vaccine against a lethal disease, RR = 0.05 (95% efficacy) is transformative. Always consider absolute risk reduction and NNT alongside RR for clinical significance assessment.

        Can relative risk be used in case-control studies? ▼

        No. Case-control studies select participants based on outcome (cases vs. controls), not exposure. This design does not allow calculation of incidence rates, so RR cannot be computed. Use the odds ratio instead, which is the appropriate effect measure for case-control designs.

        What is the number needed to treat (NNT)? ▼

        NNT = 1 ÷ Absolute Risk Reduction. It represents how many patients must receive the treatment to prevent one additional adverse event. Lower NNT = more effective treatment. NNT of 10 means treating 10 patients prevents 1 event; NNT of 100 means treating 100 patients prevents 1 event.

        How do I calculate vaccine efficacy from relative risk? ▼

        Vaccine Efficacy = (1 - RR) × 100%. If vaccinated group has 5 infections per 1,000 and unvaccinated has 50 per 1,000: RR = 5/50 = 0.10. Efficacy = (1 - 0.10) × 100% = 90%. The vaccine reduces infection risk by 90%.

        What is the difference between relative risk reduction and absolute risk reduction? ▼

        RRR = (1 - RR) × 100%. ARR = Risk(control) - Risk(treatment). If control risk is 20% and treatment risk is 12%: RR = 0.60, RRR = 40%, ARR = 8 percentage points, NNT = 13. RRR sounds more impressive but ARR and NNT are more clinically informative.

        How do I interpret a relative risk less than 1? ▼

        RR < 1 indicates the exposure or treatment is protective — it reduces the risk of the outcome. RR 0.70 means a 30% lower risk in the exposed/treated group. RR 0.50 means half the risk. The closer to 0, the stronger the protective effect.

        When should I use relative risk vs. hazard ratio? ▼

        Use RR for fixed-time comparisons (what percentage had the event by time X). Use HR for time-to-event analysis where follow-up varies and you need to account for censoring. HR from Cox regression is preferred for survival analysis; RR from simple proportion comparison is used for fixed-duration studies.

        How does sample size affect relative risk precision? ▼

        Larger samples produce narrower confidence intervals around the RR estimate. A small study might produce RR = 0.60 with CI 0.20-1.80 (non-significant), while a larger study with the same effect produces RR = 0.60 with CI 0.45-0.80 (significant). Sample size does not change the point estimate but affects the precision.

        Learn About Ratios

        What is a ratio?

        A ratio is a comparison between two or more quantities showing the relative size of one to another. Written as A : B, it means 'for every A units of the first quantity, there are B units of the second.' For example, a ratio of 3 : 4 means for every 3 parts of A, there are 4 parts of B. Ratios are used in cooking, construction, finance, science, and everyday life.

        How do I solve a proportion?

        A proportion is an equation that says two ratios are equal: A : B = C : D. To solve for a missing value, use cross-multiplication. If D is unknown: D = (B × C) / A. This works because in equal ratios, the cross products are always equal: A × D = B × C. Our Proportion Solver does this automatically — just enter any 3 values and it finds the 4th.

        How do I simplify a ratio?

        To simplify a ratio, find the Greatest Common Divisor (GCD) of both numbers and divide each by it. For example, 24 : 36 — the GCD of 24 and 36 is 12. So 24 ÷ 12 = 2 and 36 ÷ 12 = 3, giving the simplified ratio 2 : 3. Our Simplifier automatically finds the GCD and reduces your ratio to its lowest terms.

        What is ratio scaling and when is it useful?

        Scaling a ratio means multiplying both parts by the same factor to create an equivalent, larger (or smaller) ratio. For instance, scaling 2 : 5 by a factor of 3 gives 6 : 15. This is extremely useful for recipes (tripling a recipe), construction (scaling blueprints), mixing solutions, or any scenario where you need to maintain the same proportion at a different magnitude.

        What's the difference between a ratio and a fraction?

        A ratio A : B compares two quantities to each other (part-to-part), while a fraction A/B typically represents a part-to-whole relationship. However, any ratio can be expressed as a fraction: 3 : 4 is equivalent to 3/4 = 0.75. The key difference is context — ratios compare quantities side-by-side, while fractions represent a portion of a total.