Confidence Interval Calculator
Calculate confidence interval bounds and margin of error at 90%, 95%, or 99% confidence.
By Konstantin Iakovlev · Updated April 2026 · Source: Khan Academy
Lower Bound
48.040
Upper Bound
51.960
Margin of Error
±1.960
Details
| CI (95%) | [48.040, 51.960] |
| Standard Error | 1.0000 |
| Z-value | 1.960 |
| Margin of Error | 1.960 |
Use the Confidence Interval Calculator above to calculate your results. Enter your values and see instant results — all calculations run in your browser.
Disclaimer: This calculator is for informational purposes only and does not constitute tax, financial, or legal advice. Results are estimates based on the information you provide and current rates. Always consult a qualified tax professional or financial advisor for advice specific to your situation.
How It Works
When you measure a sample instead of an entire population, the number you get is only an estimate. A confidence interval wraps that estimate in a range of plausible values for the true population parameter, such as a mean or a proportion. Reporting the interval rather than a single point tells your audience how precise the estimate actually is and how much sampling variation it carries.
The math behind the interval follows a simple structure: take your estimate and add and subtract a margin of error, written as Estimate ± (Critical Value × Standard Error). The estimate is the figure straight from your sample, such as the sample mean. The critical value is pulled from a t-distribution or z-distribution table according to the confidence level you choose. The standard error measures how much the sample estimate would bounce around from one sample to the next.
The confidence level is the part people most often read wrong. A 95% confidence interval does not say there is a 95% chance the true value sits inside your particular interval. It says that if you drew sample after sample and built an interval each time, 95% of those intervals would capture the true population parameter. The interpretation only holds when the sample is drawn randomly and represents the population, so a biased sampling method quietly breaks the whole result.
Example: Estimating Average Customer Spend
- 1 A coffee shop wants to estimate the average amount customers spend. They randomly sample 50 customers and find the average spend to be $5.25 with a standard deviation of $1.50. They want a 95% confidence interval.
- 2 Inputting these values: Sample Mean = $5.25, Sample Standard Deviation = $1.50, Sample Size = 50, Confidence Level = 95%. The calculator will determine the standard error and the appropriate critical t-value (since the population standard deviation is unknown and sample size is relatively small).
- 3 The calculator outputs a 95% confidence interval of [$4.83, $5.67].
- 4 Based on this sample, we are 95% confident that the true average spending of all customers at the coffee shop is between $4.83 and $5.67. This interval provides a more informative estimate than just the sample mean of $5.25.
Source: Khan Academy · Last updated: April 2026
Frequently Asked Questions
What does a 95% confidence interval mean?
How do you calculate a confidence interval?
When should I use 90% vs 95% vs 99% confidence?
You might also need
Percentage Calculator
Calculate percentages three ways: what is X% of Y, X is what % of Y, and percentage change from X to Y.
Fraction Calculator
Add, subtract, multiply, and divide fractions. Results shown as fraction, mixed number, and decimal.
Standard Deviation Calculator
Calculate mean, variance, and standard deviation (population and sample) from a data set.