Home > Knowledge Base > Statistical Analysis > Confidence Intervals: What They Mean and How to Calculate Them

Confidence Intervals: What They Mean and How to Calculate Them

Published by at July 16th, 2026 , Revised On July 16, 2026

A confidence interval is a range of values, calculated from sample data, that is likely to contain a true population parameter. A 95% confidence interval means that if you repeated the sampling process many times, 95% of the intervals produced would contain that true value.

What is a Confidence Interval?

In statistics, you rarely know a population’s true mean or proportion. Instead, you take a sample and use it to estimate that unknown value. A confidence interval reports that estimate as a range, not a single figure.

Every interval has two parts: a point estimate, usually the sample mean, and a margin of error either side of it. The confidence level, commonly 90%, 95%, or 99%, describes how reliable the method is across repeated sampling.

A narrower interval signals a more precise estimate, often from a larger sample. A wider interval reflects more uncertainty, which typically comes from a smaller sample or greater variability in the data itself.

Why Confidence Intervals Matter in Research

A single average, such as a mean exam score of 68%, tells readers little about its reliability. Reporting it as 68% (95% CI: 65 to 71) shows exactly how much sampling variation to expect.

Confidence intervals appear throughout dissertations, quantitative essays, and journal articles because they connect directly to inferential statistics, the branch of statistics used to draw conclusions about a population from a limited sample.

Examiners and reviewers often expect confidence intervals alongside p-values, since a p-value only signals whether a result is statistically significant, not how large or precise the underlying effect actually is.

Including confidence intervals in a results section also makes it easier for other researchers to compare your findings with earlier studies, since a range is far more informative for meta-analysis than a single average alone.

The Confidence Interval Formula

The general formula for a confidence interval is: Point Estimate ± (Critical Value × Standard Error). The point estimate is usually a sample mean or proportion, and the critical value depends on your chosen confidence level.

For a population mean, the formula becomes: x̄ ± z × (σ ÷ √n). Here, x̄ is the sample mean, z is the critical value, σ is the standard deviation, and n is the sample size.

When the population standard deviation is unknown, which is most real research, you use the sample standard deviation and a t-distribution instead of the normal z-distribution, especially with smaller samples.

The standard error, which measures how much sample means vary from the true population mean, sits at the centre of every confidence interval calculation and drives the width of the final range.

Flowchart showing the five steps to calculate a confidence interval from sample data

How to Calculate a Confidence Interval Step by Step

Calculating a confidence interval by hand follows the same five steps whether you are working with SPSS output, Excel, or a statistics textbook example. The diagram above summarises the process; each step is explained below.

  1. Collect your sample data and confirm the sample size (n) is large enough for the test you plan to use.
  2. Calculate the sample mean and standard deviation, either by hand or using statistical software.
  3. Choose a confidence level — 95% is standard in most UK academic work, though 90% and 99% both appear.
  4. Find the critical value (a z-score for large samples, a t-score for small samples) matching your chosen confidence level.
  5. Calculate the margin of error and add or subtract it from the mean to produce the lower and upper bounds.

The critical value changes with your chosen confidence level. The table below shows the z-scores most commonly used for large-sample confidence intervals in UK statistics courses and dissertations.

Confidence Level Z-Score (Critical Value) Typical Use
90% 1.645 Exploratory research, pilot studies
95% 1.960 Standard for most dissertations and journal articles
99% 2.576 Medical, clinical, or high-stakes research
Worked Example: A 95% Confidence Interval for a Sample Mean

A researcher surveys 100 students and finds a mean revision time of 8 hours per week, with a standard deviation of 2 hours. At 95% confidence, z = 1.960.

Standard error = 2 ÷ √100 = 0.2
Margin of error = 1.960 × 0.2 = 0.392
Confidence interval = 8 ± 0.392 = 7.61 to 8.39 hours

The researcher can be 95% confident that the true average revision time across the whole student population sits between 7.61 and 8.39 hours per week.

Confidence Intervals for Proportions

Confidence intervals are not limited to means. When your data are categorical, such as the proportion of students who pass a module, you calculate a confidence interval for a proportion instead.

The formula becomes: p̂ ± z × √(p̂(1-p̂) ÷ n), where p̂ is the sample proportion, z is the critical value, and n is the sample size. This produces the same style of range around a percentage.

For example, if 42 of 150 surveyed students report using a specific revision app, p̂ = 0.28. At 95% confidence, the interval runs from roughly 0.21 to 0.35, or 21% to 35%.

How to Interpret Confidence Intervals (and Avoid Common Mistakes)

A 95% confidence interval does not mean there is a 95% chance the true value falls within your specific interval. Once calculated, the interval either contains the true value or it does not.

The correct interpretation concerns the method: if you repeated the study 100 times and built 100 intervals, roughly 95 of them would contain the true population parameter. Confidence describes the procedure, not a single result.

It also does not mean 95% of your data points fall inside the interval. A confidence interval describes an estimate of a population parameter, such as a mean, not the spread of individual observations.

How a Confidence Interval Differs From Standard Error and Margin of Error

These three terms are related but not interchangeable. Standard error measures how much a sample statistic would vary across repeated samples of the same size, and it forms the building block of the interval.

Margin of error is the standard error multiplied by the critical value; it is the ± figure added to and subtracted from your point estimate. The confidence interval is the full resulting range.

If sample-to-sample variability is still unclear, it is worth working through before tackling confidence intervals — it is the foundation every margin of error calculation depends on.

Diagram comparing confidence interval width at 90 percent, 95 percent and 99 percent confidence levels

Factors That Affect the Width of a Confidence Interval

Sample size has the biggest impact. Larger samples produce narrower, more precise intervals because standard error shrinks as n increases — quadrupling your sample size roughly halves the margin of error.

Confidence level also matters. Choosing 99% instead of 95% widens the interval, because you are demanding more certainty that the true value falls somewhere within your reported range.

Variability in the underlying data plays a role too. A population with a large standard deviation, such as widely varying exam scores, will always produce wider intervals than a more consistent dataset.

A well-calculated interval still cannot fix biased or non-random sampling. The formula accounts for random sampling error only, so a poorly designed sample can produce a confident-looking range that is still misleading.

Template You Can Copy: Reporting a Confidence Interval

Use this structure when writing up results in a dissertation, report, or statistics assignment:

  • State the point estimate: “The mean/proportion was ___.”
  • State the confidence level: “at the 95% confidence level”.
  • State the interval: “the interval ranged from ___ to ___.”
  • Add the plain-English meaning: “we can be 95% confident the true population value lies within this range.”
  • Note the sample size (n) and whether a z or t distribution was used.

Example sentence: “The mean was 8 hours, 95% CI [7.61, 8.39], n = 100.”

Common Mistakes When Reporting Confidence Intervals

Confusing significance with importance is common. A narrow confidence interval that excludes zero is statistically significant, but the actual effect size may still be too small to matter practically.

Another frequent error is treating the confidence level as a probability about one specific interval, rather than as a long-run property of the method used to generate many intervals.

Students sometimes skip stating the sample size or confidence level entirely. Both details are essential — without them, a reader cannot judge how much weight to place on your reported range.

Comparing two groups by eye, based on whether their confidence intervals overlap, is also unreliable. Overlapping intervals do not automatically mean there is no significant difference — a proper statistical test is needed.

Getting Help With Statistical Analysis

If you are working through SPSS output for a dissertation chapter, our SPSS data analysis help guide covers confidence intervals alongside t-tests and regression models.

Our dissertation writing service supports students at every stage of a quantitative project, from formulating a hypothesis to interpreting statistical output correctly.

Choosing the right test, checking assumptions, and reporting confidence intervals correctly can be time-consuming near a deadline. Our statistical analysis service offers support with test selection and results write-ups.

Get Support With Your Statistical Analysis

Frequently Asked Questions

A confidence interval is a range of values built from sample data that is likely to contain the true population value. Rather than reporting one number, such as a mean, researchers report a range plus a confidence level, most often 95%, showing how much uncertainty the estimate carries.

A 95% confidence interval means that if the same sampling process were repeated many times, about 95% of the resulting intervals would contain the true population parameter. It does not mean there is a 95% chance the true value lies in this one specific interval.

The general formula is point estimate ± (critical value × standard error). For a sample mean, this becomes x̄ ± z × (σ ÷ √n), where z is the critical value matching your chosen confidence level, such as 1.960 for a 95% confidence level.

Interpret a confidence interval as a plausible range for the true population value, given your sample. A narrow interval suggests a precise estimate; a wide one suggests more uncertainty. Always report the confidence level alongside the range, such as 95% CI: 7.61 to 8.39.

The margin of error is the ± value added to and subtracted from a point estimate; the confidence interval is the full resulting range. Margin of error equals the critical value multiplied by the standard error, and it determines how wide the confidence interval becomes.

Larger samples reduce standard error, because standard error is calculated by dividing the standard deviation by the square root of sample size. As sample size grows, this figure shrinks, which narrows the margin of error and produces a tighter, more precise confidence interval.

About Jesse Pinkman

Avatar for Jesse PinkmanJessie Pinkman has been writing since childhood when her mother gave her a book where she could write her stories. Since then Jessie has always loved to write about the topics she loves. She graduated from Birmingham University in 2012, worked as a teaching assistant, and then turned to full-time writing in 2016.

You May Also Like

WhatsApp Live Chat