Works on this device
Population Proportion Calculator
Estimate the share of a population from a sample, with a confidence interval by a named method. You can also test a claimed proportion, compare two proportions, and find the chance that a sample proportion falls in a range.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Calculate.
Your result
How it was worked out
How to use this calculator
- Choose a task: an estimate with an interval, a test of a claimed proportion, a comparison of two proportions, or a probability for a sample proportion.
- Enter the count with the feature (x) and the sample size (n). For an estimate you may type a percentage instead.
- Choose the confidence level, the interval method or the alternative hypothesis.
- Choose Calculate. The result shows the working, and the estimate shows all three intervals side by side.
The methods
- Point estimate: p̂ = x ÷ n. It is the best single estimate of the population proportion.
- Wilson score interval (Wilson, 1927): centre (x + z²/2) ÷ (n + z²), half-width z × √(x(n − x)/n + z²/4) ÷ (n + z²). It is the recommended choice for most samples.
- Clopper-Pearson exact interval (Clopper and Pearson, 1934): from the beta distribution. It never covers less than the stated level, so it is the widest.
- Wald interval: p̂ ± z × √(p̂(1 − p̂)/n). Simple, and it is the margin that polls report, but it is poor for small samples and for proportions near 0% or 100%.
- Test of a claimed proportion p₀: z = (p̂ − p₀) ÷ √(p₀(1 − p₀)/n), and the exact binomial test.
- Two proportions: the difference p̂₁ − p̂₂ with Newcombe's interval (method 10 of Newcombe, 1998) and the Wald interval, and the pooled z test.
- Sampling distribution: p̂ has mean p and standard error √(p(1 − p)/n). The page gives the normal approximation and the exact binomial answer.
Worked example
In a sample of 120 people, 42 have the feature. The point estimate is 42 ÷ 120 = 35%. At 95% the Wilson interval is 27.05% to 43.88%, the Clopper-Pearson interval is 26.52% to 44.24%, and the Wald interval is 35% ± 8.53 percentage points, which is 26.47% to 43.53%.
To test the claim that the population proportion is 30%: z = (0.35 − 0.30) ÷ √(0.3 × 0.7 ÷ 120) = 1.195, and the two-sided p-value is 0.232. At the 5% level the claim is not rejected.
Related calculators
To plan how many people to ask for a target margin of error, use the Margin of Error Calculator. It uses the same Wald margin as this page. When the sample is a large part of a small population, the Finite Population Correction Calculator corrects the standard error.
Limits you should know
- All methods assume a simple random sample. They do not correct for people who did not answer or for a biased sample.
- The intervals here do not use the finite population correction.
- The exact test works for samples of up to 1,000,000. The z test and the normal approximation are poor when n × p or n × (1 − p) is below about 10; the page says so.
- A test that does not reject the claim does not show that the claim is true.