Clinical 2×2 Table Statistics Calculator

Calculates diagnostic-test performance and treatment-effect measures from 2×2 event counts

  • Enter non-negative whole-number counts, not percentages or rates. The page calculates after all eight fields are completed; if using only one table, enter 0 in all four cells of the unused table.

    Confirm the table orientation before entering data: define the positive test state and disease state, or the treatment groups and event direction.

    Undefined measures are left blank when a required denominator is zero. This calculator provides descriptive point estimates only; it does not calculate confidence intervals, p values or adjusted effects.

  • Positive and negative predictive values change with disease prevalence. Likelihood ratios are more useful when converting a patient's pre-test probability to post-test probability.
  • An odds ratio can overstate the risk ratio when the outcome is common. Report the underlying event rates and an absolute effect alongside relative measures.
  • NNT depends on baseline risk, outcome definition and follow-up period. If the absolute risk reduction is negative, interpret it as absolute risk increase and report NNH rather than a negative NNT. This calculator leaves NNT blank.

Diagnostic test 2×2 table

Disease present & test positive (TP)
Disease present & test negative (FN)
Disease absent & test positive (FP)
Disease absent & test negative (TN)

Treatment 2×2 table

Treated group with event
Treated group without event
Control group with event
Control group without event