Confidence intervals: choose the method and interpret the bounds
Choose the method first. Known population σ uses z; an estimated sample s uses Student’s t with n≥2. Both standard deviations must be positive. For a proportion, enter the integer successes k and sample size n. Confidence C is a percentage, such as 95; t mode supports 90, 95 or 99, while z and Wilson support 50 to 99.9999.
Choose z, Student’s t or a proportion interval
A mean interval needs a sample mean x̄, sample size n and an appropriate spread. If the population standard deviation σ is known, use x̄±z*σ/√n. If σ is unknown and the spread is estimated by the sample standard deviation s, use x̄±t*s/√n with n−1 degrees of freedom. A large sample does not make σ known. For binary successes out of n trials, the Wilson mode estimates a population proportion rather than a mean of arbitrary measurements.
Understand standard error and margin of error
The standard error for the mean is σ/√n or s/√n under the stated independent-sample model. It describes variability of the sample mean, rather than variability of individual observations. Multiply it by the appropriate critical value to get the two-sided margin E. The mean interval is [x̄−E, x̄+E], with width 2E. For x̄=22.8, σ=2.7, n=100 and C=95%, z*≈1.959964, E≈0.52919028 and the bounds are about 22.27080972 and 23.32919028.
Know what a confidence level means
Under repeated independent sampling and the method’s assumptions, a 95% confidence procedure produces intervals that cover the fixed true parameter about 95% of the time. Once a particular frequentist interval has been observed, it either contains that parameter or it does not; the confidence level is not a posterior probability assigned to it. Higher confidence generally produces a wider interval with the same data. Choosing the level after seeing a preferred conclusion undermines its intended interpretation.
Use Wilson intervals for binary proportions
With k successes in n independent Bernoulli trials, p̂=k/n. Wilson uses an adjusted centre m=(p̂+z²/(2n))/(1+z²/n) and half-width h=z√[p̂(1−p̂)/n+z²/(4n²)]/(1+z²/n). The limits are m−h and m+h. They remain in [0,1] and are generally asymmetric around p̂, so the reported half-width is around m. At k=0 or k=n the interval does not collapse to an unjustified zero width. Wilson is a score approximation, not an exact binomial interval.
Check the sampling and distribution assumptions
The textbook normal z interval is exact for independent normal observations with known σ; the textbook t interval is exact for independent normal observations with unknown positive σ and the usual sample s. Other settings need justified approximations or different methods. A small, highly skewed sample, severe outliers, clusters, dependence, weights or selection bias can make these intervals unsuitable. Wilson assumes independent binary trials with a common success probability. No finite-population correction, weighting, clustering adjustment or automatic data-quality assessment is applied.
Limits, display precision and saving the report
Sample sizes are integers up to 1,000,000; t requires at least two observations. Numeric coefficients and fraction components support up to 50 digits, with scientific exponents from −40 to +40. The supported t confidence levels are explicitly 90%, 95% and 99%; unsupported levels return an error rather than silently using z. Mean bounds retain enough decimal places to show small margins at large offsets, using the chosen margin precision. Review the inputs, method and assumptions, then copy, download CSV or print the complete report.
Use Standard Deviation Calculator to calculate a sample or population spread and Statistics Calculator to review the data’s centre and distribution. Z-score Calculator explains normal critical values and tail areas. Sample Size Calculator supports planning a target margin, while Percentage Calculator helps interpret proportion results and Probability Calculator covers other probability models.
ISO 3534-1:2006 supplies statistical terminology, not certification. NIST/SEMATECH — Confidence Limits for the Mean gives the Student-t mean interval and repeated-sampling interpretation. NIST/SEMATECH — Wilson Score Intervals documents the Wilson score interval and distinguishes it from exact binomial methods. NIST/SEMATECH — Normal Distribution provides the normal-model context. These references do not validate an unsuitable sampling design.
Common questions
Should I choose z or t?
Use z when the population standard deviation is known. Use t when it is estimated by sample s and the model is suitable. A sample size above 30 does not make population σ known.
Does 95% confidence mean this interval has a 95% chance of containing the mean?
In the frequentist interpretation, 95% refers to the long-run coverage of the procedure under its assumptions. It is not a posterior probability for the fixed parameter in this observed interval.
Why is the Wilson interval not centred on my observed percentage?
Wilson uses an adjusted centre. Its limits are symmetric around that adjusted centre, but generally asymmetric around the observed proportion k/n.
What happens with zero successes or all successes?
Wilson returns a nonzero interval with an exact lower boundary 0 or upper boundary 1. Observing no successes or all successes does not prove a population probability of exactly 0 or 1.
Which confidence levels can I enter?
Enter a percentage such as 95. Known-σ z and Wilson support 50 through 99.9999; Student’s t supports 90, 95 or 99. All intervals here are two-sided.
Are inputs uploaded, and can I keep the results?
The calculation runs in your browser. Copy, CSV and print preserve the inputs, method, limits and calculation steps. This tool does not automatically establish that your sample or model is suitable.
Explore related tools
- Right Triangle Calculator
- Pythagorean Theorem Calculator
- Surface Area Calculator
- Circle Calculator
- Distance Calculator
- Area Calculator
- Slope Calculator
- Volume Calculator
- Triangle Calculator
- Z-score Calculator
- Permutation and Combination Calculator
- Mean, Median, Mode & Range Calculator
- Statistics Calculator
- Probability Calculator
- Sample Size Calculator
- Number Sequence Calculator
- Standard Deviation Calculator
- Random Number Generator
- Scientific Notation Calculator
- Big Number Calculator
- Root Calculator
- Log Calculator
- Matrix Calculator
- Rounding Calculator
- Exponent Calculator
- Fraction Calculator
- Scientific Calculator
- Percentage Calculator
- Percent Error Calculator
- Quadratic Formula Calculator
- Least Common Multiple Calculator
- Greatest Common Factor Calculator
- Factor Calculator
- Ratio Calculator