Confidence interval guide

How to use the Confidence Interval Calculator

The Confidence Interval Calculator turns a sample mean or sample proportion into a z confidence interval. Use it when you need the point estimate, standard error, margin of error, lower bound, upper bound, and plain-language steps in one place.

Open the Confidence Interval Calculator
Guide image for Confidence Interval Calculator showing calculate z confidence intervals for a sample mean or sample proportion with example inputs and result notes.
Confidence Interval Calculator guide artwork sits with the walkthrough for calculate z confidence intervals for a sample mean or sample proportion, including inputs, examples, limits, and mistakes to check.View in the smoke-kawaii gallery

Quick start

  1. Choose Mean interval or Proportion interval.
  2. Choose the confidence level, such as 90%, 95%, or 99%.
  3. For mean mode, enter the sample mean, standard deviation, and sample size.
  4. For proportion mode, enter successes and the total sample size.
  5. Press Calculate interval, then read the point estimate, standard error, margin of error, lower bound, and upper bound together.

Best uses

This guide is best when you need to explain where a z confidence interval came from, not just copy the final lower and upper bounds.

  • Calculate a mean confidence interval from a sample mean, standard deviation, sample size, and confidence level.
  • Calculate a proportion confidence interval from successes, sample size, and confidence level.
  • Compare how 80%, 90%, 95%, 98%, and 99% confidence levels change the interval width.
  • Check the point estimate, standard error, margin of error, z-score, lower bound, and upper bound before copying the result.

Quick answer

A confidence interval is the estimate plus and minus a margin of error. The calculator uses a z value for the confidence level, calculates standard error from your sample, and then builds the lower and upper bounds.

For a sample mean of 68, standard deviation of 3, sample size of 36, and 95% confidence, the interval is about 67.02 to 68.98. That means the sample points to a population mean near 68, with about 0.98 units of margin on each side under the z-interval assumptions.

Choose the right mode

Use Mean interval when your sample result is an average: average score, average response time, average height, average weight, or another numeric measurement.

Use Proportion interval when your sample result is successes out of a total: yes responses, signups, defects, pass/fail outcomes, or people who chose one option.

  • Mean mode asks for sample mean, standard deviation, and sample size.
  • Proportion mode asks for successes and sample size.
  • Do not enter 52% as the number of successes. Enter 52 successes and 100 sample size if the survey had 52 yes responses out of 100.

Mean interval formula

Mean mode starts with standard error = standard deviation / sqrt(sample size). Then it uses margin of error = z x standard error.

The final interval is sample mean - margin of error to sample mean + margin of error. For the 68, 3, 36, 95% example, standard error is 3 / sqrt(36), which is 0.5. The 95% z value is about 1.96, so the margin is about 0.98.

That gives 68 - 0.98 to 68 + 0.98, or 67.02 to 68.98.

Proportion interval formula

Proportion mode first calculates p-hat = successes / sample size. Then it uses standard error = sqrt(p-hat x (1 - p-hat) / sample size).

The margin of error is still z x standard error. The lower bound is p-hat minus the margin, and the upper bound is p-hat plus the margin.

For 52 successes out of 100 at 95% confidence, p-hat is 0.52. The margin is about 0.098, so the interval is about 0.422 to 0.618, or 42.2% to 61.8%.

Example: mean score interval

Imagine a class sample has an average score of 68, standard deviation of 3, and 36 students. Choose Mean interval, enter 68, 3, 36, and select 95%.

The calculator returns about 67.02 to 68.98. The center is the sample mean, and the margin of error is about 0.98 points.

A good note for this result is: the sample supports a 95% z confidence interval from about 67.02 to 68.98 for the population mean score, assuming the z interval is appropriate for the data.

Example: survey proportion interval

Suppose 52 people out of 100 say yes in a survey. Choose Proportion interval, enter 52 successes, 100 sample size, and select 95%.

The calculator returns about 42.2% to 61.8%. The point estimate is 52%, and the margin of error is about 9.8 percentage points.

A careful interpretation is: this sample points to a population proportion near 52%, but the plausible range is wide because the sample has only 100 responses.

What confidence level changes

The confidence level changes the z value. A higher confidence level uses a larger z value, so the interval gets wider.

With the same mean example, 90% gives about 67.1775 to 68.8225, 95% gives about 67.02 to 68.98, and 99% gives about 66.7121 to 69.2879.

Use the confidence level your assignment, report, or method requires. Do not choose a lower level only because it makes the interval look tighter.

How to read the result

Read the result as a method-based range, not as a guarantee about one already-calculated interval. The confidence level describes how the interval-building method behaves across repeated samples under its assumptions.

The point estimate is the middle of the work: a mean in mean mode or p-hat in proportion mode. The standard error measures sample-to-sample uncertainty. The margin of error is how far the interval extends from the point estimate.

If the interval feels too wide, the honest fix is usually more data or a better study design, not rounding harder.

Common mistakes to avoid

The most common mistake is mixing up standard deviation and standard error. Mean mode asks for standard deviation, and the calculator turns it into standard error by dividing by sqrt(sample size).

Another mistake is treating a 95% interval as a 95% probability that the fixed population value is inside this one finished interval. Use it as a repeated-sampling confidence method instead.

  • Check that the mean and standard deviation came from the same sample.
  • Do not enter successes greater than sample size.
  • Keep percentage points separate from percent change. A margin of 9.8 percentage points around 52% is not the same thing as a 9.8% relative change.
  • Round at the end, especially when you need to show formula steps.

When the z interval is not enough

This calculator is a quick educational z-interval tool. Small mean samples often need a t interval when the population standard deviation is unknown. Very small or extreme proportion samples may need Wilson or exact intervals instead of the simple normal approximation.

Survey design can also matter. Nonrandom samples, nonresponse, clustering, weighting, repeated measures, and design effects can all make the simple interval look more certain than it really is.

Worked examples for Confidence Interval Calculator

Mean intervalMean 68, SD 3, n = 36, 95%

67.02 to 68.98 with margin about 0.98

Proportion interval52 successes, n = 100, 95%

42.2% to 61.8% with margin about 9.8 points

Narrower confidence levelMean 68, SD 3, n = 36, 90%

67.1775 to 68.8225

Wider confidence levelMean 68, SD 3, n = 36, 99%

66.7121 to 69.2879

Large survey check610 successes, n = 1000, 95%

58.0% to 64.0%

FAQ in plain language

What is the fastest way to use the Confidence Interval Calculator?

Choose mean or proportion mode, enter the sample values requested by that mode, choose the confidence level, and press Calculate interval. Then read the point estimate, standard error, margin of error, lower bound, and upper bound together.

What formula does mean mode use?

Mean mode uses standard error = standard deviation / sqrt(sample size), margin of error = z x standard error, and interval = sample mean plus or minus the margin of error.

What formula does proportion mode use?

Proportion mode uses p-hat = successes / sample size, standard error = sqrt(p-hat x (1 - p-hat) / sample size), margin of error = z x standard error, and interval = p-hat plus or minus the margin.

Why does 99% confidence make the interval wider?

A 99% confidence level uses a larger z value than 95% or 90%. The standard error stays the same, but the margin of error grows, so the lower and upper bounds move farther apart.

When should I avoid this z interval?

Avoid treating it as final when the sample is tiny, the data are strongly skewed, the sample was not random, the population standard deviation is unknown and a t interval is expected, or a proportion is very close to 0% or 100%.

Why can a proportion interval stop at 0% or 100%?

A proportion cannot be below 0% or above 100%, so the calculator clips simple z-interval bounds to that possible range. Edge cases may need Wilson or exact methods for a better statistical interval.

What should I double-check before copying the result?

Check the mode, confidence level, sample size, standard deviation, successes, units, and rounding. Also check whether your assignment or report expects a z interval, t interval, Wilson interval, or exact method.

Sources

Use these if you want to compare the formula, inputs, or limits with a trusted outside explanation.

Related tools

Keep exploring

If your problem needs a different statistics step, these nearby pages keep you in the same workflow.

Privacy and copying results

Recent answers stay visible only while you work in the current browser tab. They are not sent to a server.

Use Copy answer when you want to save the inputs and result in notes, homework, a message, or a project list. Check the units, labels, and limits before copying.