AP Stats Confidence Interval Calculator

Build a confidence interval for a population mean. Enter your sample mean, standard deviation, and sample size, choose 90%, 95%, or 99% confidence, and this calculator gives you the interval and the margin of error.

Calculate Your Confidence Interval

Enter your values and press Calculate Interval.

The blue band is a visual for your interval, centred on the sample mean.

Note: this calculator uses z critical values (1.645 for 90%, 1.96 for 95%, 2.576 for 99%). For small samples with an unknown population standard deviation, use a t critical value with df = n - 1 instead, which gives a slightly wider interval.

Interactive visual: Live preview

Press Show live preview to redraw this chart from your calculator inputs.

What Is a Confidence Interval?

A confidence interval is a range of plausible values for a population parameter, such as a mean or a proportion, calculated from sample data. A 95% confidence interval means that if you repeated the sampling many times, about 95% of the intervals you built would contain the true value. The interval is centered on the sample statistic, and its width is the margin of error on each side.

Interactive visual: See the idea

Example: mean 50, SD 10, n = 36 — interval (46.73, 53.27) at 95% confidence.

How to Use This Calculator

Interactive visual: Walk through it

Step 1: Open the AP Stats Confidence Interval Calculator calculator at the top and enter the values it asks for.

1) Type the sample mean. 2) Type the standard deviation, using sigma if it is known, or s if it is estimated from the sample. 3) Type the sample size, n. 4) Choose your confidence level. 5) Press Calculate Interval. Read the lower and upper bounds, and use the interpretation sentence in your answer: you are that confident the interval captures the true population mean.

How to Calculate a Confidence Interval

Interactive visual: See it on a chart

Press Update visual to redraw this chart from your calculator inputs.

The formula is: Interval = sample mean ± critical value × (standard deviation / square root of n). The part after ± is the margin of error. Critical values used here are 1.645 for 90%, 1.96 for 95%, and 2.576 for 99%.

Worked example: Sample mean = 50, standard deviation = 10, n = 36, 95% confidence. Standard error = 10 / 6 = 1.67. Margin of error = 1.96 × 1.67 = 3.27. Interval = 50 ± 3.27 = (46.73, 53.27). You are 95% confident the interval from 46.73 to 53.27 captures the true population mean.

Tips and Common Mistakes

Interactive visual: Mistake vs correct

Mistake: Saying there is a 95% chance this interval contains the mean.

Frequently Asked Questions

Interactive visual: FAQ

Tap any question below to show or hide its answer.

What does a 95% confidence interval mean?

If you repeated the sampling method many times, about 95% of the intervals built that way would capture the true population mean.

Why is a 99% interval wider than a 95% interval?

Because you need a larger critical value to be more confident, and a larger critical value makes a larger margin of error.

Should I use z or t for a confidence interval for a mean?

Use z if the population standard deviation is known or the sample is large. Use t with df = n - 1 if the population standard deviation is unknown and the sample is small.

What happens to the interval if n doubles?

The standard error shrinks by a factor of the square root of 2, so the interval gets narrower, but not by half.

Can a confidence interval include a negative number?

Yes, if the data allow it. The interval simply shows the plausible range for the population mean; it is not limited to positive values.

What is the margin of error?

The margin of error is critical value × standard error. It is half the width of the confidence interval.

Related Calculators and Guides

Keep exploring AP Statistics with calculators and guides related to this tool.

Related Calculators

Interactive visual: Tool path

Start with this tool, then follow the path through the related calculators.

Confidence Interval Calculator → Margin of Error Calculator → Proportion Confidence Interval Calculator

Related Guides

Disclaimer: AP is a trademark of the College Board, which was not involved in this site.

All AP Statistics Calculators

Use any of the 25 free calculators below, no login needed. Each calculator opens on its own page with its own formula, worked example, tips, and FAQs.

AP Statistics Score Calculator Z-Score Calculator P-Value Calculator T-Test Calculator Confidence Interval Calculator Margin of Error Calculator Standard Deviation Calculator Chi-Square Calculator Binomial Distribution Calculator Normal Distribution Calculator Expected Value Calculator Hypothesis Testing Calculator Sample Size Calculator Correlation Coefficient Calculator Residual Calculator Linear Regression Calculator Two-Sample T-Test Calculator Proportion Confidence Interval Calculator Variance Calculator Geometric Distribution Calculator Percentile Calculator Degrees of Freedom Calculator Outlier Calculator R-Squared Calculator Poisson Distribution Calculator

Read the AP Statistics guides for worked examples, TI-84 steps, and exam strategy.