Calculate the standard error of a proportion from the sample proportion or successes and sample size, plus confidence intervals and margin of error.
Related Calculators
- Cluster Sample Size Calculator
- Twoโs Complement Calculator
- Cohort Study Sample Size Calculator
- Coverage Factor Calculator
- Pass Rate Calculator
- All Statistics Calculators
Calculator Functions
| Function | What it does | What it requires |
|---|---|---|
| Standard error | Finds the standard error of one sample proportion | Requires the sample size and either the sample proportion or the number of successes |
| Confidence interval and margin of error | Finds the normal-approximation confidence interval and margin of error for one proportion | Requires the sample size, the proportion or number of successes, and a confidence level |
| Difference of two independent proportions | Finds the standard error of the difference between two sample proportions, unpooled or pooled | Requires the sample size and number of successes for each group, the type of standard error and a confidence level |
| Required sample size | Finds the sample size needed to reach a target margin of error | Requires the target margin of error in percentage points and a confidence level |
A proportion can be entered as a decimal or a percentage. Confidence levels run from 80% to 99%, and a custom z value replaces the level when one is entered. A finite population size is optional in the one-sample and sample-size functions, and an expected proportion is optional in the sample-size function.
Standard Error of Proportion Formulas
| SE | Standard error of the sample proportion |
| p | Sample proportion: successes รท sample size, between 0 and 1 |
| n | Sample size |
Standard error
The main formula applies directly. With p = 0.5 and n = 100, SE = โ(0.25 รท 100) = 0.05, or 5 percentage points. With 45 successes in 150, p = 0.3 and SE = 0.0374.
โ((N โ n) รท (N โ 1))
When a finite population size N is entered, the standard error is multiplied by this correction for sampling without replacement. A sample of 100 from a population of 500 has SE = 0.05 ร โ(400 รท 499) = 0.0448. The correction is always below 1, reaches 0 when the whole population is sampled, and barely matters once the population is much larger than the sample [3]. Some texts write it as โ(1 โ n รท N), which is nearly the same number [3].
Confidence interval and margin of error
The margin of error is z ร SE. The z values are 1.2816 for 80%, 1.4395 for 85%, 1.6449 for 90%, 1.9600 for 95%, 2.3263 for 98% and 2.5758 for 99%. With 45 successes in 150 at 95%, the margin is 1.96 ร 0.0374 = 7.33 percentage points and the interval is 0.2267 to 0.3733.
Difference of two independent proportions
pโ(1 โ pโ) รท nโ) [2]
This unpooled standard error is the one used for a confidence interval on pโ โ pโ [2]. With 90 of 200 in group 1 and 95 of 250 in group 2, the proportions are 0.45 and 0.38, the difference is 0.07 and the unpooled SE is 0.0467. The 95% interval is โ0.0215 to 0.1615.
(1 รท nโ + 1 รท nโ)) [4]
The pooled standard error uses pฬ = (xโ + xโ) รท (nโ + nโ), the combined share of successes. It belongs to the test of whether the two proportions are equal, because that test assumes one common proportion [4]. For the same data pฬ = 185 รท 450 = 0.4111 and the pooled SE is 0.0467.
Required sample size
m is the target margin of error as a decimal and p is the expected proportion. Leaving p blank uses 0.5, the value that makes p(1 โ p) largest and so gives the largest sample [1]. The result is always rounded up [1]. A 5-point margin at 95% needs 1.96ยฒ ร 0.25 รท 0.05ยฒ = 385 observations, and a 1-point margin needs 9,604.
With a finite population N, the sample size is reduced by solving the corrected standard error for n. A 3-point margin at 95% with p = 0.72 needs 861 observations from a very large population and 735 from a population of 5,000.
Limits of This Estimate
- The interval is a normal approximation. It is not accurate when the sample is very small or when successes or failures are very few, and its limits can fall below 0 or above 1 [5]. The calculator warns below 10 successes or failures and does not give an interval at p = 0 or p = 1.
- For small counts, a Wilson interval or an exact binomial interval is the better choice [5]. Neither is calculated here.
- All formulas assume a simple random sample. Clustered, stratified or weighted samples need a different variance formula, and the sample-size result does not allow for nonresponse.
- A standard error of 0 at p = 0 or p = 1 comes from the formula. It does not mean the population proportion is known exactly.
Sources
- Penn State, STAT 500 Applied Statistics, Lesson 5: Confidence Intervals, Section 5.3: standard error of a proportion, the normal interval and the sample-size formula
- Penn State, STAT 500 Applied Statistics, Lesson 7: Comparing Two Population Parameters, Section 7.2: unpooled standard error for the interval and pooled proportion for the test
- Jerry Brunner, University of Toronto, Sampling from a Finite Population: finite population correction for a sample proportion
- NIST/SEMATECH e-Handbook of Statistical Methods, Section 7.3.3: pooled proportion and test statistic for two proportions
- NIST/SEMATECH e-Handbook of Statistical Methods, Section 7.2.4.1, Confidence intervals: limits of the normal interval, the Wilson method and the exact method
