Convert between p-values and confidence intervals

Turn a reported confidence interval into a p-value, or a p-value and estimate into a CI — for differences or ratios (OR, RR, HR). Uses the Altman–Bland method.

Result

Get the free Statistics toolkit

Reporting, confidence-interval, and test-selection templates & worked examples from the Statistical Test Selection Workbook. We’ll email you the download link.

One email with your download, then occasional research tips. One-click unsubscribe, anytime. We never sell your data.

Get the Statistical Test Selection Workbook

How the conversion works

A confidence interval and a p-value carry the same information about precision — they’re two views of an estimate and its standard error. The Altman–Bland method moves between them:

Assumes a normal (Wald) approximation and an interval that’s symmetric on the appropriate scale — true of most reported intervals. Not for proportions near 0/1 or very small samples.

Frequently asked questions

How do I get a p-value from a 95% CI?

SE = (upper − lower)/(2 × 1.96), then z = estimate/SE and p = 2 × (1 − Φ(|z|)). For ratios, use the log of each value first.

How do I get a CI from a p-value?

Recover z = Φ⁻¹(1 − p/2), set SE = |estimate|/z, then form estimate ± zconf × SE (or exponentiate for a ratio).

Does it handle odds/hazard ratios?

Yes — pick “Ratio” and the tool works on the log scale, which is correct for OR, RR, and HR.

Why does p → CI need the estimate?

The p-value fixes the ratio estimate/SE but not the scale; the estimate pins down SE so the interval can be placed.

Does it store anything?

No. Everything runs in your browser; nothing is uploaded or saved.

Which statistical test? → Effect size converter →