[Durgical](https://durgical.com/en/) › [DurgiPedia](https://durgical.com/en/durgipedia/) › [Epidemiology](https://durgical.com/en/epidemiology/) › [Biostatistics](https://durgical.com/en/epidemiology/areas/stats/) › Confidence interval

# Confidence interval

- Measure

A range of values for the true value that are compatible with the data. The narrower it is, the more precise the estimate.

Updated Nov 5, 2026

## Key points

- 95% CI ≈ estimate ± 1.96 × SE (in practice, ‘plus or minus 2 standard errors’).
- For ratios (RR, OR, HR): if the 95% CI includes 1, the difference is not significant at α = 0.05.
- For differences (in means or risks): if the 95% CI includes 0, the difference is not significant.
- A wider CI means less precision: a small sample or a lot of variability.
- The CI and the p value tell the same story: a 95% CI that excludes the null value matches p

## What it is

A 95% confidence interval (CI) is a range built so that, if the study were repeated many times, 95% of those intervals would contain the true value. It is roughly the estimate ± 1.96 standard errors. It reports the size of the effect and its precision at once, and it shows whether a result is statistically significant: for ratios (RR, OR) check whether it includes 1; for differences, whether it includes 0.

## Formula and reading

- 95% CI = estimate ± 1.96 × SE. A 99% CI uses 2.58 instead of 1.96.
- For ratios the calculation is done on the log scale, so the CI is not symmetric around the RR or OR.
- Null value: 1 for ratios, 0 for differences.

## Worked example

- Data: in a survey of 400 adults in one town, 80 have hypertension.
- Proportion = 80 / 400 = 0.20 (20%).
- SE = √(0.20 × 0.80 / 400) = √0.0004 = 0.02.
- 95% CI = 0.20 ± 1.96 × 0.02 = 0.20 ± 0.039: 16.1% to 23.9% (rounded).
- Another study reports RR = 1.4 with a 95% CI of 0.9 to 2.2: it includes 1, so it is not significant at α = 0.05.
- A trial reports a risk difference of −3 percentage points, 95% CI −5 to −1: it excludes 0, so it is significant.
- Reading: the true prevalence is compatible with values between 16% and 24%; the width of the interval shows the precision.

## How to read a 95% CI by type of measure

| Measure | Null value | CI excluding the null | CI including the null |
| --- | --- | --- | --- |
| RR, OR or HR | 1 | E.g. 1.2 to 1.9: significant association | E.g. 0.8 to 1.6: not significant |
| Difference in means | 0 | E.g. 2 to 7: significant difference | E.g. −1 to 6: not significant |
| Risk difference | 0 | E.g. −6% to −2%: significant reduction | E.g. −4% to 1%: not significant |

## Markers

- 95% CI
- SE
- 1.96

## Common pitfalls

- Saying there is a 95% probability that the true value lies in this particular interval: the 95% refers to the method repeated many times.
- Concluding ‘no effect’ because the CI includes the null: a wide CI that includes 1 is also compatible with a large effect.
- Comparing two groups only by whether their CIs overlap: they can overlap slightly and still differ with p

## Memory aid

‘One for ratios, zero for differences’: if the interval touches the null, the result is not significant.

## Test yourself

Think of the answer, then tap the question to see it.

## An OR of 2.1 has a 95% CI of 0.8 to 5.4. Is it statistically significant?

Not at α = 0.05: the interval includes 1, the null value for a ratio. The result is imprecise and compatible with no effect or a large one.

## What null value applies to a difference in means?

Zero: if the 95% CI includes 0, the difference is not significant.

## What makes a confidence interval narrower?

A larger sample, less variability in the data or a lower confidence level.

## How does a 95% CI relate to the p value?

If the 95% CI excludes the null value, the two-sided p value is below 0.05; if it includes it, p is above 0.05.

[Add to my cards (4)](https://durgical.app/estudiar/?add=/en/epidemiology/confidence-interval/)

## Connections

## Related 5

- [Standard error](https://durgical.com/en/epidemiology/standard-error/)
- [P value](https://durgical.com/en/epidemiology/p-value/)
- [Hypothesis testing](https://durgical.com/en/epidemiology/hypothesis-testing/)
- [Statistical vs clinical significance](https://durgical.com/en/epidemiology/statistical-vs-clinical-significance/)
- [Relative risk](https://durgical.com/en/epidemiology/relative-risk/)

[← All of epidemiology](https://durgical.com/en/epidemiology/)

Educational content on epidemiological and statistical methods; the examples use made-up numbers to teach the calculation. Not a clinical or legal guide: current Colombian rules are in the official sources.

Sources: [What are confidence intervals?](https://www.itl.nist.gov/div898/handbook/prc/section1/prc14.htm) (NIST/SEMATECH e-Handbook of Statistical Methods, National Institute of Standards and Technology, 2012); [What is the relationship between a test and a confidence interval?](https://www.itl.nist.gov/div898/handbook/prc/section1/prc15.htm) (NIST/SEMATECH e-Handbook of Statistical Methods, National Institute of Standards and Technology, 2012); [Chapter 15: Interpreting results and drawing conclusions](https://www.cochrane.org/authors/handbooks-and-manuals/handbook/current/chapter-15) (Cochrane, 2024).

## **Spotted a mistake?** We are always improving for the community. Tell us what is wrong and our team will review it. Report a mistake

Representative model, for educational purposes only.

---
Source: https://durgical.com/en/epidemiology/confidence-interval/
License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Cite as: DurgiPedia (durgical.com), https://durgical.com/en/epidemiology/confidence-interval/
