無料&即時 — 登録不要でご利用いただけます

Odds Ratio Calculator

Calculate odds ratios from 2×2 contingency table data for case-control studies and cross-sectional research. Enter exposed and unexposed event counts for case and control groups to determine the strength of association between an exposure and an outcome — essential for epidemiology and clinical research.

Odds Ratio Calculator — リアルタイム比率プレビュー
Odds 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 an Odds Ratio?

        The odds ratio (OR) measures the association between an exposure and an outcome by comparing the odds of exposure among cases to the odds of exposure among controls. An OR of 2.5 means the odds of having been exposed are 2.5 times higher among people with the disease compared to those without it — suggesting the exposure may be a risk factor.

        Odds ratios are the primary measure of association in case-control studies, where you start with known outcomes (cases and controls) and look backward at exposures. They are also produced by logistic regression models. For rare outcomes (prevalence below 10%), the odds ratio closely approximates the relative risk, making it interpretable as a risk multiplier. For common outcomes, the OR exaggerates the effect compared to relative risk.

        使用される計算公式・方程式

        この計算ツールは5つの主要な公式を使用しています:

        1 Odds Ratio (2×2 Table) ▼
        OR = (a × d) / (b × c)

        Where a = exposed cases, b = exposed controls, c = unexposed cases, d = unexposed controls.

        2 Confidence Interval (95%) ▼
        95% CI = exp(ln(OR) ± 1.96 × √(1/a + 1/b + 1/c + 1/d))

        If the 95% CI includes 1.0, the association is not statistically significant.

        3 Odds from Probability ▼
        Odds = Probability / (1 - Probability)

        A 25% probability = 0.25 / 0.75 = 0.333 odds (or 1:3 against).

        Explore all calculation options on the 比率計算ツール home page.

        比率計算ツールの使い方

        この比率計算ツールは、以下の3ステップで簡単にご利用いただけます:

        1

        数値を入力

        入力欄に既知の比率の値を入力します。求めたい未知数の入力欄は空欄のままにしておきます。

        2

        モードを選択

        比率モード(解く、簡素化、スケーリング)を選択します。各モードで異なる計算式が適用されます。

        3

        結果を確認

        計算するボタンを押します。結果画面に答えと、視覚的な比率バー、円グラフ、詳細なステップバイステップの解決プロセスが表示されます。

        実例問題と段階的な解説

        本比率計算ツールを使って、以下の3つの例題をステップバイステップで解決するプロセスです:

        入力 1 Case-control: Smoking and lung cancer
        1 Contingency Table: Cases exposed (a=650), Cases unexposed (b=50), Controls exposed (c=400), Controls unexposed (d=600).
        2 Apply formula: OR = (a × d) / (b × c) = (650 × 600) / (50 × 400).
        3 Compute: 390,000 ÷ 20,000 = 19.5.
        ✓ Odds Ratio (OR) is 19.50 (19.5× Higher Odds)
        入力 2 Vaccine effectiveness study
        1 Table: Infected vaccinated (a=10), Infected unvaccinated (b=90), Healthy vaccinated (c=190), Healthy unvaccinated (d=110).
        2 Apply formula: OR = (10 × 110) / (90 × 190) = 1,100 / 17,100 = 0.0643.
        3 Vaccine Effectiveness: (1 - OR) × 100% = 93.57%.
        ✓ OR is 0.064 (Vaccine Effectiveness ≈ 93.6%)
        入力 3 Check if OR is significant
        1 Compute 95% Confidence Interval: ln(OR) ± 1.96 × √(1/a + 1/b + 1/c + 1/d).
        2 If 95% CI does not span 1.0, the association is statistically significant at p < 0.05.
        ✓ Statistically Significant Association

        よくある質問 (FAQ)

        What does an odds ratio of 2.0 mean? ▼

        An OR of 2.0 means the odds of exposure are twice as high in the case group compared to the control group. Equivalently, people with the exposure have twice the odds of the outcome compared to those without the exposure. For rare diseases, this approximately means the risk is doubled.

        What is the difference between odds ratio and relative risk? ▼

        Relative risk (RR) compares probabilities: P(disease|exposed) / P(disease|unexposed). Odds ratio compares odds: [P/(1-P)]. For rare outcomes, OR ≈ RR. For common outcomes, OR overestimates the effect. RR can be calculated from cohort studies and RCTs; OR is used in case-control studies and logistic regression.

        When is an odds ratio statistically significant? ▼

        An OR is statistically significant at the 0.05 level when its 95% confidence interval does not include 1.0. OR 2.5 (CI: 1.3-4.8) is significant because the entire CI is above 1.0. OR 2.5 (CI: 0.7-8.9) is not significant because the CI crosses 1.0.

        What is a 2×2 contingency table? ▼

        A 2×2 table cross-classifies two binary variables: exposure (yes/no) and outcome (case/control). It has four cells: a (exposed cases), b (exposed controls), c (unexposed cases), d (unexposed controls). The odds ratio = (a × d) / (b × c).

        Can the odds ratio be less than 1? ▼

        Yes. An OR < 1 indicates a protective association — the exposure reduces the odds of the outcome. OR 0.5 means the odds of the outcome are halved among exposed individuals. This might indicate a treatment benefit or a protective factor.

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

        OR = (a × d) / (b × c), where a = exposed cases, b = exposed controls, c = unexposed cases, d = unexposed controls. Example: a=30, b=20, c=10, d=40: OR = (30×40)/(20×10) = 1200/200 = 6.0.

        What is an adjusted odds ratio? ▼

        An adjusted OR comes from logistic regression that includes confounding variables (age, sex, etc.) as covariates. It estimates the exposure-outcome association while holding confounders constant. Adjusted ORs are more reliable than crude ORs for establishing independent associations.

        Why do logistic regression models produce odds ratios? ▼

        Logistic regression models the log-odds of a binary outcome as a linear function of predictors. The exponential of each regression coefficient (e^β) is the OR for a one-unit change in that predictor. This mathematical relationship makes OR the natural effect measure for logistic regression.

        What is the null value for an odds ratio? ▼

        The null value is 1.0, meaning no association between exposure and outcome (equal odds in both groups). OR > 1 suggests the exposure increases odds. OR < 1 suggests it decreases odds. Statistical tests evaluate whether the observed OR differs significantly from 1.0.

        How do I interpret an odds ratio in a meta-analysis? ▼

        In meta-analysis forest plots, each study's OR is shown with its CI. The pooled (summary) OR combines all studies. If the pooled OR and its CI exclude 1.0, there is a statistically significant overall association. Heterogeneity statistics (I², Q-test) indicate whether ORs are consistent across studies.

        Can I convert an odds ratio to relative risk? ▼

        Yes, approximately: RR = OR / (1 - P₀ + (P₀ × OR)), where P₀ is the baseline risk in the unexposed group. For OR = 2.0 with baseline risk 10%: RR = 2.0 / (1 - 0.10 + 0.10 × 2.0) = 2.0/1.10 = 1.82. For rare outcomes (P₀ < 10%), RR ≈ OR.

        比率の理論を学ぶ

        比率とは具体的に何ですか?

        比率とは、2つ以上の数量の大きさを互いに比較して相対的な割合を表した数値です。記号では A : B のように表し、「Aの量に対してBの量が対応する」という相互関係を意味します。例えば、3 : 4 の比率は、Aが3つ分配されるときBは4つマッチするという正比例関係を持ちます。料理、工学設計、財務分析など日常のあらゆる場面で使われます。

        比例式はどのように解きますか?

        比例式は、2つの比率の値が等しいことを表す等式です(A : B = C : D)。外項の積(A × D)と内項 of 積(B × C)は常に等しくなります。未知数 D を求めるには、内項の積を求め、それをもう一方の外項 A で割ります: D = (B × C) / A。当ツールの比例式解決モードに既知の3つの数値を入力すれば、未知数を即座に算出できます。

        比率はどのように簡単に整理しますか?

        2つの数値の最大公約数(GCD)を求めた後、両方の数値をその最大公約数で割って約分します。例えば 24 : 36 の場合、24と36の最大公約数が 12 なので、両方を 12 で割ると最も簡単な自然数の比である 2 : 3 になります。比率計算ツールがGCDの算出と約分を自動的に処理します。

        比率のスケーリングはいつ使用しますか?

        比率の関係を崩さずに全体の分量を増やしたり減らしたりするときに使用します。例えば、2 : 5 の割合の材料があるとき、両方に 3 を掛ければ 6 : 15 になり、同じ比重を保ったまま3倍の量の配合物を準備することができます。パン生地の容量変更や、図面の縮尺変更に欠かせません。

        比率と分数の違いは何ですか?

        比率(A : B)は同等の要素同士の大きさの比較(部分対部分)に適しており、分数(A/B)は全体の中である要素が占める割合(部分対全体)を表現することが多いです。ただし、比率 3 : 4 も分数 3/4(小数で0.75)として表現できます。使われる文脈や意味合いにおいてニュアンスの違いがあります。