Single proportion confidence interval calculator

Enter a count of events and a sample size to get the proportion with three confidence intervals: Wilson score, normal approximation, and the Clopper-Pearson exact interval.

A single proportion confidence interval gives the plausible range for the true proportion or prevalence behind an observed count, such as the share of patients who responded or the fraction of records that met an inclusion rule. This calculator reports three intervals: the Wilson score interval, which is the recommended choice; the normal approximation (Wald) interval; and the Clopper-Pearson exact interval, which guarantees the stated coverage. The Wilson interval is generally preferred for proportion and prevalence meta-analysis.

Proportion (Wilson score interval)

15.00%

95% CI 8.79% to 24.41% (recommended)

All five methods

Wilson scoreRecommended default for most sample sizes8.79% to 24.41%
Clopper-Pearson exactGuaranteed coverage; preferred for tiny samples and regulatory work8.00% to 24.74%
JeffreysBayesian interval from the Beta(x + 0.5, n - x + 0.5) posterior8.47% to 24.01%
Agresti-CoullAdds pseudo-observations; simple and teaching friendly8.64% to 24.57%
Normal approximation (Wald)Only for large samples with proportions away from 0 and 17.18% to 22.82%

Inputs

Events of sample12 of 80
Critical value (z)1.9600

Meta-analysis ready

Logit-transformed proportion ln(p / (1 - p))-1.7346
Standard error of the logit0.3131

Paste the logit and its standard error into a proportion meta-analysis on the logit scale; the standard error is sqrt(1 / x + 1 / (n - x)).

Report-ready text

The proportion was 15.0% (95% CI 8.8% to 24.4%, Wilson score method; 12 of 80).

One proportion, three ways to draw the interval

A single proportion confidence interval answers a simple question with a surprisingly subtle method: given that you saw x events in n observations, what is the plausible range for the true proportion or prevalence behind that count? It is the right tool whenever your statistic is a share of a single group: the proportion of patients who responded, the fraction of records that met an inclusion rule, the prevalence of a condition in one cohort. It is the wrong tool when you are comparing two groups, where you want a difference, a risk ratio, or an odds ratio instead, a choice our odds ratio and risk ratio calculator handles directly.

The reason this calculator offers three intervals is that the obvious method is the weakest. The normal approximation, or Wald interval, centres a symmetric margin on the observed proportion. It is fine with a large sample and a proportion well away from the extremes, but near 0 or 1, or with a small sample, it produces limits that are too narrow, undercover the true value, and can even fall below 0 or above 1. The Wilson score interval is the recommended default: it recentres toward one half, never leaves the valid 0-to-1 range, and behaves well across the whole spectrum of counts. The Clopper-Pearson exact interval is built straight from the binomial distribution and guarantees that true coverage is at least the stated level, at the cost of being a little wider than necessary, which makes it the conservative choice for very small samples.

A worked example and using it in a review

Suppose 7 of 40 screened participants meet a criterion, a proportion of 0.175. The Wald interval gives roughly 0.057 to 0.293, the Wilson score interval gives roughly 0.087 to 0.323, and the Clopper-Pearson exact interval is wider still, around 0.073 to 0.336. The Wald interval looks tightest, but that tightness is false economy; its coverage is poor at this sample size, so the Wilson interval is the one to report. Push the example to an extreme, 0 events in 40, and the contrast is stark: the Wald interval collapses to a single point at 0, plainly wrong, while the Wilson and Clopper-Pearson intervals still return a sensible upper limit near 0.09, matching the rough rule of three. This is exactly why a single proportion is the building block for a prevalence meta-analysis, where each study’s proportion and its variance feed the pool; the full pooling workflow is covered in our guide to conducting a meta-analysis.

Common mistakes researchers make

The first mistake is defaulting to the Wald interval out of habit, which is the version taught first and trusted least; prefer Wilson, and reserve Clopper-Pearson for guaranteed coverage on tiny samples. The second is pooling raw proportions across studies without a variance-stabilising transformation; proportions near 0 or 1 have unstable variances, so a logit or Freeman-Tukey transformation keeps the pooled estimate inside the valid range, and ignoring that distorts the heterogeneity statistics you read afterwards. The third is reporting a proportion with no interval at all, which hides how few events the figure rests on. If you need a single-arm interval for any other measure, the general-purpose confidence interval calculator covers ratios and mean differences too, and pooling prevalence correctly across studies is part of our systematic review statistics service.

How it works

The point estimate is the count divided by the sample size. The critical value comes from the standard normal distribution for the chosen confidence level, where alpha is one minus that level expressed as a fraction.

p = x / n

z = normalQuantile(1 - alpha/2)

The Wilson score interval recentres and shrinks toward one half:

denom = 1 + z^2/n

center = (p + z^2/(2n)) / denom

half = (z/denom) × sqrt( p(1-p)/n + z^2/(4n^2) )

The normal approximation (Wald) interval is symmetric about p:

p ± z × sqrt( p(1-p)/n )

The Clopper-Pearson exact interval uses Beta quantiles, found by bisection on the regularized incomplete beta function. With x events of n, and alpha for the chosen level:

lower = Beta_quantile(alpha/2, x, n-x+1), or 0 when x = 0

upper = Beta_quantile(1-alpha/2, x+1, n-x), or 1 when x = n

Frequently asked questions

Which confidence interval should I use for a proportion?
The Wilson score interval is the recommended default for most situations, including prevalence and proportion meta-analysis. It performs well across the whole range of sample sizes and proportions and does not collapse to zero width when the count is zero or equals the sample size. The normal approximation is fine only with large samples and a proportion well away from zero and one.
What is the Clopper-Pearson exact interval?
The Clopper-Pearson interval is built directly from the binomial distribution rather than a normal approximation, using quantiles of the Beta distribution. It guarantees that the true coverage is at least the stated level, which makes it conservative: the interval is slightly wider than necessary. It is a sound choice when you need a guaranteed lower bound on coverage, for example with very small samples.
Why is the normal approximation interval discouraged for small samples?
The normal approximation, also called the Wald interval, centres the interval on the observed proportion and uses a symmetric margin. With small samples or proportions near zero or one it produces intervals that are too narrow, can fall outside the zero-to-one range, and have poor coverage. The Wilson and Clopper-Pearson intervals correct for this.
Can I use this for a prevalence meta-analysis?
Yes. A single proportion confidence interval is the building block for pooling prevalence or proportion data across studies. The Wilson interval, or a variance-stabilising transformation of the proportion, is generally preferred over the raw normal approximation when each study's proportion is combined, because it keeps estimates inside the valid range.
What happens to the interval when zero events are observed?
With zero events the observed proportion is zero, but the true proportion is almost certainly not zero, so a sensible interval must have a positive upper limit. The Wald interval collapses to zero width and is useless here, while the Wilson and Clopper-Pearson intervals still return a meaningful upper bound. A rough rule of three says the upper limit is about three divided by the sample size when no events occur.
How large a sample do I need for a precise proportion?
Precision depends on both the sample size and how close the proportion is to one half, where the interval is widest. A proportion near zero or one needs fewer observations for the same absolute width. As a guide, a few hundred observations give a margin of error of a few percentage points near the middle of the range, but a rare outcome can stay imprecise even in a large sample because so few events are seen.