Calculate the standard error of a proportion from the sample proportion or successes and sample size, plus confidence intervals and margin of error.

Optional settings
Blank uses the uncorrected model; otherwise sample without replacement.


Related Calculators

Calculator Functions

FunctionWhat it doesWhat it requires
Standard errorFinds the standard error of one sample proportionRequires the sample size and either the sample proportion or the number of successes
Confidence interval and margin of errorFinds the normal-approximation confidence interval and margin of error for one proportionRequires the sample size, the proportion or number of successes, and a confidence level
Difference of two independent proportionsFinds the standard error of the difference between two sample proportions, unpooled or pooledRequires the sample size and number of successes for each group, the type of standard error and a confidence level
Required sample sizeFinds the sample size needed to reach a target margin of errorRequires 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 = โˆš(p ร— (1 โˆ’ p) รท n) [1]
SEStandard error of the sample proportion
pSample proportion: successes รท sample size, between 0 and 1
nSample 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.

SEN = SE ร—
โˆš((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

CI = p ยฑ z ร— SE [1]

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

SE = โˆš(pโ‚(1 โˆ’ pโ‚) รท nโ‚ +
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.

SE = โˆš(pฬ‚(1 โˆ’ pฬ‚) ร—
(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

nโ‚€ = zยฒ ร— p(1 โˆ’ p) รท mยฒ [1]

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.

n = N ร— nโ‚€ รท (N โˆ’ 1 + nโ‚€)

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

  1. 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
  2. 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
  3. Jerry Brunner, University of Toronto, Sampling from a Finite Population: finite population correction for a sample proportion
  4. NIST/SEMATECH e-Handbook of Statistical Methods, Section 7.3.3: pooled proportion and test statistic for two proportions
  5. 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