A confidence interval (CI) is a range around an estimate, such as a treatment difference, built by a method that captures the true value in a stated share of repeated studies, usually 95%. Narrow intervals mean precise estimates; wide ones mean the trial cannot pin the effect down.
Free sandbox · No credit card · 21 CFR Part 11 compliant
Confidence interval
noun · clinical research
An interval calculated from the data that, under the model assumptions, would contain the true parameter value in a stated proportion (the confidence level, often 95%) of identically repeated studies.
Related terms
In short
Explained
A trial never measures the true treatment effect directly. It measures a sample and produces a point estimate, for example a mean difference or a hazard ratio. Repeat the same trial with different participants and the estimate would change. The standard error describes how much it would typically vary. The confidence interval turns that into a range: roughly, the values of the true effect that are reasonably compatible with what was observed.
The confidence level is chosen in advance. A 95% interval is standard and corresponds to the two-sided 5% significance level used for p-values. A 90% interval is narrower and corresponds to a one-sided 5% test, and is often reported in bioequivalence work, where the pharmacokinetics and bioequivalence acceptance range is judged against a 90% CI for the ratio of means. A 99% interval is wider.
ICH E9 asks that trial reports present estimates of treatment effect together with confidence intervals, and the estimand framework in ICH E9(R1) makes the same point from another angle: decide precisely what effect is being estimated, then report its estimate and the uncertainty around it.
For differences (mean difference, risk difference) the "no effect" value is 0 and intervals are usually symmetric around the estimate. For ratios (hazard ratio, odds ratio, relative risk) the "no effect" value is 1, and intervals are calculated on the log scale, so they look lopsided on the original scale. A hazard ratio of 0.78 with a 95% CI of 0.64 to 0.95 is symmetric in log terms. See hazard ratio and Kaplan-Meier and the relative risk and odds ratio calculator.
For a response rate or adverse event rate in one group, the simple Wald formula behaves badly with small samples or rates near 0% or 100%. Score-based intervals are preferred: 18 responders out of 60 (30%) gives a Wilson 95% CI of about 19.9% to 42.5%. The confidence interval calculator for a proportion compares the methods and handles zero-event cases.
Worked example
A demo rehabilitation trial reports a mean difference in 6-minute walk distance at week 12 of 28 m in favour of the intervention, with a standard error of 11 m. The team pre-specified 25 m as the smallest difference that matters to patients. Demo numbers only; normal approximation.
| Interval | Calculation | Range | Excludes 0? | Rules out effects below 25 m? |
|---|---|---|---|---|
| 90% CI | 28 ± 1.645 × 11 | 9.9 to 46.1 m | Yes | No |
| 95% CI | 28 ± 1.96 × 11 | 6.4 to 49.6 m | Yes (p about 0.011) | No |
| 99% CI | 28 ± 2.576 × 11 | -0.3 to 56.3 m | No | No |
| 95% CI, trial four times larger (SE 5.5 m) | 28 ± 1.96 × 5.5 | 17.2 to 38.8 m | Yes | No, but much closer |
The 95% interval shows the effect is probably real but could be as small as 6 m, well below the 25 m that matters. A significant p-value alone would hide that.
Interpreting
The most useful way to read a CI is to place it on a line next to the values that would change a decision: zero (no effect), the smallest important benefit, and, in non-inferiority trials, the margin of acceptable loss. Where the interval falls relative to those lines tells you more than any single p-value.
A non-inferiority trial succeeds when the whole confidence interval for the difference lies on the acceptable side of the margin; an equivalence trial needs it inside both margins. Here the CI is the decision tool, not an add-on. See the non-inferiority sample size calculator and the equivalence trial sample size calculator.
Some studies, especially pilots and single-arm studies, are sized to estimate an effect with a given precision rather than to test a hypothesis. Then you choose a target half-width and work backwards. The pilot study sample size calculator and the prevalence sample size calculator do this.
| 95% CI | Effect shown? | Important effect shown? | Reading | |
|---|---|---|---|---|
| Result 1 | 30 to 45 m | Clear, clinically important benefit | ||
| Result 2 | 6 to 50 m | Real effect, size uncertain | ||
| Result 3 | -4 to 52 m | Inconclusive: too imprecise | ||
| Result 4 | -5 to 8 m | Any important benefit is unlikely |
Common mistakes
| Misreading | What is actually true |
|---|---|
| "There is a 95% probability the true effect lies in this interval" | The 95% describes the long-run behaviour of the method. A probability statement about the parameter needs a Bayesian credible interval. |
| "Values in the middle of the interval are no more likely than those at the edges" | Values near the point estimate are more compatible with the data than values near the limits. |
| "Overlapping intervals for two arms mean no significant difference" | Two separate group intervals can overlap even when the CI for the difference excludes zero. Compare the interval for the difference. |
| Reporting a CI for each arm but not for the difference | The difference between arms is the treatment effect; it needs its own interval. |
| Ignoring adjustment when many intervals are shown | With many endpoints, some intervals will exclude zero by chance; see multiplicity adjustment. |
Every missing outcome widens your interval. Try missing-form tracking and data review in the free sandbox. No credit card, no time limit.
In Capture
A confidence interval is only as precise as the number of participants with usable outcomes. Capture helps keep that number up during the trial. The Status overview shows every form for every participant and visit, colour-coded, with a filter for overdue forms and a CSV to send each site its list. Data review lists values by form, flags out-of-range, implausible or inconsistent values, and opens the form at the field so a query can be raised. When it is time to analyse, exports give raw or decoded data with a data dictionary, or CDISC SDTM datasets, and lock runs can be exported as SAS XPT or CSV.
If the same trial were repeated many times and an interval calculated each time, about 95% of those intervals would contain the true effect. It gives the range of effects reasonably compatible with the data.
For the same analysis, a 95% CI that excludes the no-effect value (0 for differences, 1 for ratios) corresponds to a two-sided p-value below 0.05. The CI adds information about the size of the effect.
A larger sample, less variable outcomes, fewer missing data and a lower confidence level. Width scales roughly with one over the square root of the sample size.
For a ratio such as a hazard ratio or odds ratio, 1 means no difference. An interval that includes 1 means the data are compatible with no effect at that confidence level.
Bioequivalence is shown with two one-sided tests at 5% each, which is equivalent to checking that a 90% CI for the ratio of means lies inside the acceptance range.
Keep exploring
P-value
The test that pairs with the interval.
CI calculator for a proportion
Wilson, exact and Wald intervals.
Non-inferiority trial
Where the interval is the decision.
Hazard ratio and Kaplan-Meier
Intervals on the ratio scale.
Minimal clinically important difference
The threshold to compare against.
Missing data in clinical trials
Why gaps widen intervals.
Build your study in the free sandbox and test missing-data views, edit checks and exports with dummy participants. No credit card, no time limit.