Free & Instant — No Signup Required

Risk Ratio Calculator

Calculate risk ratios from event counts in exposed and control populations. Determine the attributable risk, attributable fraction, and population attributable fraction — key measures for understanding how much disease burden an exposure explains in epidemiological research.

Risk Ratio Calculator — Live Preview
Risk Ratio
—
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 a Risk Ratio?

        The risk ratio (also called the relative risk) is the ratio of the event probability in the exposed group to the event probability in the unexposed group. It is the most direct measure of how much an exposure multiplies (or reduces) the risk of an outcome. An RR of 3.0 means exposed individuals have three times the risk of the outcome compared to unexposed individuals.

        Beyond the basic risk ratio, epidemiologists use attributable risk (AR) — the absolute difference in event rates between groups — and the attributable fraction (AF) — the proportion of cases in the exposed group that can be attributed to the exposure. The population attributable fraction (PAF) extends this to the entire population, estimating how much disease would be prevented if the exposure were eliminated entirely.

        About the Risk Ratio Calculator

        The risk ratio is the primary measure epidemiologists use to quantify the impact of an exposure on disease risk. Our Risk Ratio Calculator computes this essential statistic along with the attributable risk, attributable fraction, and population attributable fraction — the complete suite of risk measures needed for comprehensive epidemiological analysis.

        While the risk ratio tells you how many times more likely the outcome is among exposed individuals, the attributable risk tells you the actual excess event rate caused by the exposure, and the attributable fraction tells you what proportion of cases among the exposed can be attributed to the exposure. These complementary measures provide a complete picture of exposure impact.

        The population attributable fraction (PAF) is particularly valuable for public health policy. It estimates the proportion of all cases in the entire population that would be prevented if the exposure were eliminated. A PAF of 30% for smoking and lung cancer means eliminating smoking would prevent 30% of all lung cancer cases — a powerful tool for prioritizing public health interventions.

        This calculator accepts simple event count inputs and produces all four risk measures simultaneously, making it an efficient tool for researchers, public health professionals, epidemiology students, and clinicians interpreting exposure-outcome data.

        Formulas & Equations Used

        This Risk Ratio Calculator uses the following core equations:

        1 Risk Ratio ▼
        RR = Incidence_exposed / Incidence_unexposed

        Exposed rate: 15 per 1000. Unexposed rate: 5 per 1000. RR = 15/5 = 3.0.

        2 Attributable Risk ▼
        AR = Incidence_exposed - Incidence_unexposed

        AR = 15/1000 - 5/1000 = 10/1000. The exposure accounts for 10 extra cases per 1000.

        3 Population Attributable Fraction ▼
        PAF = P_exposed × (RR - 1) / (1 + P_exposed × (RR - 1))

        If 30% of population exposed and RR = 3: PAF = 0.3×2 / (1+0.3×2) = 0.375 = 37.5%.

        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 Risk Ratio Calculator

        • Complete Risk Suite: Calculates risk ratio, attributable risk, attributable fraction, and population attributable fraction from a single input.
        • Event Rate Display: Shows the event rate (incidence) in both exposed and unexposed groups for direct comparison.
        • Significance Assessment: Indicates whether the risk ratio is statistically significant based on the 95% confidence interval.
        • Visual Risk Bar: Real-time comparison bar showing event rates in both groups for intuitive understanding.
        • PAF Calculator: Computes the population attributable fraction to estimate the public health impact of eliminating an exposure.
        • Plain Language Interpretation: Provides clear, non-technical interpretation of results for communication with diverse audiences.

        Benefits of Using the Risk Ratio Calculator

        • Comprehensive Risk Assessment: Get the full picture of exposure impact with relative and absolute measures in a single calculation.
        • Public Health Planning: Use PAF to prioritize interventions by identifying exposures that account for the largest disease burden.
        • Research Efficiency: Calculate all standard risk measures simultaneously without separate computations for each metric.
        • Evidence Communication: Present exposure risks in multiple formats to help different audiences understand the findings.
        • Study Design Support: Estimate expected risk ratios for sample size calculations during study planning.

        How to Use This Risk Ratio Calculator

        Follow these 3 simple steps:

        1

        Enter Your Values

        Type the known values into the input fields above. The Risk Ratio 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

        • Occupational Epidemiology: Quantify the increased risk of disease among workers exposed to hazardous substances compared to unexposed populations.
        • Environmental Health Assessment: Calculate risk ratios for populations exposed to environmental contaminants (air pollution, water contamination, radiation).
        • Infectious Disease Surveillance: Compare infection rates between vaccinated and unvaccinated populations during disease outbreaks.
        • Lifestyle Risk Factor Analysis: Quantify the risk increase associated with behavioral factors like smoking, alcohol use, sedentary lifestyle, and diet.
        • Public Health Policy: Estimate the disease burden attributable to modifiable risk factors to guide resource allocation and intervention priorities.
        • Meta-Analysis Input: Extract study-level risk ratios from individual studies for pooling in systematic reviews.

        Example Problems & Step-by-Step Solutions

        Here are 3 worked examples using this Risk Ratio Calculator:

        Example 1 Disease rates: 20/1000 exposed vs 5/1000 unexposed
        1 Exposed risk (R_e) = 20 ÷ 1,000 = 0.020 (2.0%).
        2 Unexposed risk (R_u) = 5 ÷ 1,000 = 0.005 (0.5%).
        3 Risk Ratio = R_e / R_u = 0.020 / 0.005 = 4.00.
        ✓ Risk Ratio is 4.00
        Example 2 Calculate PAF: 40% exposed, RR = 2.5
        1 Population Attributable Fraction formula: PAF = [P_e × (RR - 1)] / [1 + P_e × (RR - 1)].
        2 Numerator: 0.40 × (2.5 - 1) = 0.40 × 1.5 = 0.60.
        3 Denominator: 1 + 0.60 = 1.60.
        4 PAF: 0.60 / 1.60 = 0.375 (37.5%).
        ✓ PAF is 37.5% of cases attributable to exposure
        Example 3 Protective factor: vaccinated risk 3%, unvaccinated 12%
        1 Vaccinated Risk (R_v) = 0.03.
        2 Unvaccinated Risk (R_u) = 0.12.
        3 Risk Ratio = 0.03 ÷ 0.12 = 0.25 (75% efficacy).
        ✓ Risk Ratio is 0.25 (75% Protection)

        Expert Tips for Best Results

        1. Distinguish between incidence rate ratio (person-time denominators) and cumulative incidence ratio (person denominators) — they answer slightly different questions.
        2. The attributable fraction is only meaningful for causal exposures. For non-causal associations, it overestimates the impact of removing the exposure.
        3. PAF accounts for exposure prevalence — a modest RR for a very common exposure (like obesity) can have a larger PAF than a high RR for a rare exposure.
        4. Confidence intervals for risk ratios are asymmetric because the ratio scale is bounded at zero. Report the exact CI rather than using ± notation.
        5. When multiple risk factors contribute to a disease, individual PAFs can sum to more than 100% because removing one factor may not prevent cases caused by multiple factors.
        6. For protective exposures (RR < 1), the prevented fraction replaces the attributable fraction in the calculations.

        Common Mistakes to Avoid

        ✗ Using risk ratio for case-control studies ▼

        Fix: Case-control studies cannot yield incidence rates (only exposure prevalences among cases/controls). Use odds ratios for case-control data. Risk ratios require cohort or trial data where both groups are followed prospectively.

        ✗ Interpreting RR 2.0 as doubling the probability ▼

        Fix: RR 2.0 means twice the risk, but the absolute increase depends on baseline risk. If baseline is 1%, RR 2.0 means 2% (a 1% absolute increase). If baseline is 30%, RR 2.0 means 60% (a 30% absolute increase).

        ✗ Assuming PAF means eliminating the disease ▼

        Fix: PAF estimates the proportion of cases attributable to the exposure in the population. It does not account for other causes — even if smoking were eliminated, non-smoking-related lung cancers would still occur.

        ✗ Ignoring competing risks ▼

        Fix: In populations where multiple outcomes are possible (e.g., death from heart disease vs. cancer), removing one exposure may increase the person-time at risk for other outcomes. Standard risk ratios do not account for competing risks.

        ✗ Applying crude PAF without age-sex standardization ▼

        Fix: Exposure prevalence and disease rates vary by age and sex. Crude PAF may be misleading if the exposed population has a different age-sex distribution. Use stratified or adjusted PAF for accurate population-level estimates.

        Frequently Asked Questions

        What is the difference between risk ratio and rate ratio? ▼

        Risk ratio compares cumulative incidence proportions (events ÷ population at risk). Rate ratio compares incidence rates (events ÷ person-time at risk). Risk ratios work for fixed-period studies; rate ratios handle variable follow-up. For short studies with little loss to follow-up, they are approximately equal.

        What is attributable risk? ▼

        Attributable risk (AR) = Risk in exposed − Risk in unexposed. It measures the absolute excess risk due to the exposure. If exposed risk is 15% and unexposed risk is 5%, AR = 10 percentage points. This means 10 extra cases per 100 exposed individuals are attributable to the exposure.

        What is the attributable fraction? ▼

        Attributable fraction (AF) = (Risk_exposed − Risk_unexposed) ÷ Risk_exposed = (RR − 1) ÷ RR. It represents the proportion of cases among the exposed that can be attributed to the exposure. AF of 0.75 means 75% of cases in the exposed group would not have occurred without the exposure.

        What is population attributable fraction (PAF)? ▼

        PAF estimates the proportion of all cases in the entire population attributable to the exposure: PAF = P_e × (RR − 1) ÷ [P_e × (RR − 1) + 1], where P_e is the prevalence of exposure. A PAF of 25% means eliminating the exposure would prevent 25% of all cases in the population.

        Can risk ratio be negative? ▼

        No. Risk ratio is a ratio of two non-negative probabilities and ranges from 0 to infinity. RR = 0 would mean zero events in the exposed group. RR < 1 indicates reduced risk (protective effect). The concept of 'negative risk' does not apply to ratios.

        How do I calculate risk ratio from a 2×2 table? ▼

        RR = (a/(a+b)) ÷ (c/(c+d)), where a = exposed events, b = exposed non-events, c = unexposed events, d = unexposed non-events. Example: a=30, b=470, c=10, d=490: RR = (30/500) ÷ (10/500) = 0.06/0.02 = 3.0.

        Is a higher risk ratio always worse? ▼

        It depends on the outcome. RR = 3.0 for disease risk means the exposure triples disease risk (bad). RR = 3.0 for treatment success means the treatment triples the chance of success (good). The interpretation depends on whether the outcome is desirable or undesirable.

        How does confounding affect the risk ratio? ▼

        Confounders can inflate or deflate the observed RR. For example, if smokers also drink more alcohol, the crude RR for smoking and liver disease will be confounded by alcohol use. Adjusted RR (from stratification or regression) removes confounding to estimate the independent effect of the exposure.

        What is the prevented fraction? ▼

        When an exposure is protective (RR < 1), the prevented fraction = 1 − RR. It represents the proportion of potential cases prevented by the exposure. For a vaccine with RR = 0.10, the prevented fraction is 90% — the vaccine prevents 90% of cases that would have otherwise occurred.

        Can I calculate risk ratio for continuous outcomes? ▼

        No. Risk ratio is defined for binary (yes/no) outcomes. For continuous outcomes (blood pressure, weight, test scores), use mean difference, standardized mean difference, or ratio of means. Risk ratio specifically compares the probability of a dichotomous event between groups.

        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.