Calculators
Confidence Interval Calculator (Proportion)
Build a confidence interval for a proportion from successes and trials — with the Wilson interval that stays accurate for small samples and 0% or 100% results.
The Formula Behind the Result
- Enter the number of successes and the total number of trials (or a percentage with a sample size).
- The tool computes the classic Wald (normal-approximation) interval at your chosen confidence level.
- The Wilson score interval is computed alongside — it remains well-behaved when p is near 0 or 1 or n is small.
- Both intervals are shown with the margin of error, so you can quote the one that matches your methodology.
Worked Example
Common Questions
Why does the Wald interval fail for small samples?
It relies on a normal approximation that breaks down when p̂ is near 0 or 1 or when n is small: intervals can extend below 0% or above 100%. The Wilson interval inverts the score test and always lands within valid bounds, which is why statisticians recommend it by default.
What confidence level should I use?
95% is the social convention for surveys and clinical work. 90% narrows the interval at the cost of more uncertainty tolerance; 99% widens it for high-stakes claims. The level is a choice about how often you accept being wrong, not a measure of accuracy.
Does a 95% CI mean there is a 95% chance the true value is inside?
Not quite. The correct reading: if the study were repeated many times, 95% of the computed intervals would contain the true proportion. The probability statement applies to the procedure, not to the one interval you computed.
Related Calculators
Confidence Interval Calculator (Mean)
Compute a confidence interval for a population mean from raw data or summary statistics, using the t-distribution — correct for the small samples the normal formula gets wrong.
Sample Size Calculator
Find the minimum sample size for a survey or experiment: one-proportion studies with a margin of error, or two-group comparisons powered at 80% with α = 0.05.
P-Value Calculator
Convert a test statistic (z, t, or χ²) into its p-value — one- and two-sided — with plain-language guidance on what the number does and does not mean.