This calculator computes the standard error of a proportion (also called the standard error of a percentage) from the sample proportion and sample size. You enter the observed proportion (as a decimal or percentage) and the number of observations, and you get back the standard error, which tells you how much the sample proportion is expected to vary from the true population proportion due to random sampling.
Formula
The standard error of a proportion is calculated using the formula:
SE = √(p(1 − p) / n)
Where:
- p = sample proportion (as a decimal, e.g., 0.50 for 50%)
- n = sample size (number of observations)
- SE = standard error of the proportion
If you work with percentages, the same formula applies but you multiply the result by 100 to express the standard error as a percentage point. For example, if p = 0.50 and n = 100, SE = √(0.50 × 0.50 / 100) = 0.05, or 5 percentage points.
Worked Example
Using the default values from the calculator above: sample proportion = 50% (0.50 as decimal) and sample size = 100.
- Convert 50% to a decimal: p = 0.50
- Compute p(1 − p) = 0.50 × 0.50 = 0.25
- Divide by n: 0.25 / 100 = 0.0025
- Take the square root: √0.0025 = 0.05
- Convert to percentage: 0.05 × 100 = 5%
So the standard error is 5 percentage points. The 95% margin of error is 1.96 × 5 = 9.8 percentage points, which matches the calculator’s second output.
When to Use This Calculator
Use the standard error of a proportion whenever you have a sample and want to quantify the uncertainty in a percentage estimate. Common situations include:
- Polling: you survey 500 people and 60% say they support a policy. The standard error tells you how close that 60% is likely to be to the true population support.
- Quality control: you inspect 200 items and find 5% defective. The standard error helps you decide if the defect rate is within acceptable limits.
- A/B testing: you measure a conversion rate of 12% from 1,000 visitors. The standard error gives a sense of the variability of that conversion rate.
- Medical studies: you observe a side effect in 3% of 400 patients. The standard error helps interpret the precision of that estimate.
The standard error is the building block for confidence intervals. A 95% confidence interval for a proportion is approximately the sample proportion ± 1.96 × SE. For example, with a sample proportion of 50% and SE of 5%, the 95% confidence interval is 50% ± 9.8%, or roughly 40.2% to 59.8%.
How to Choose the Right Sample Size
Often you want to know how large a sample you need to achieve a certain standard error. Rearranging the formula gives:
n = p(1 − p) / SE²
For example, if you want a standard error of 3 percentage points (0.03) and you expect the proportion to be around 50% (0.50), then:
n = 0.50 × 0.50 / 0.03² = 0.25 / 0.0009 ≈ 278
So you would need a sample of about 278 people. If you don’t know the proportion, using p = 0.50 gives the largest possible sample size (most conservative estimate).
Note that the sample size formula uses the desired standard error, not the margin of error. If you want a 95% margin of error of ±3 points, you need SE = 3/1.96 ≈ 1.53 points, so n = 0.25 / (0.0153)² ≈ 1,068.
Common Mistakes and Misconceptions
One common mistake is using the population proportion instead of the sample proportion. The standard error formula uses the sample proportion (p̂), not the true population proportion (π). In practice, you use the best estimate you have, which is usually the sample proportion.
Another mistake is confusing standard error with standard deviation. The standard deviation of a proportion is √(p(1−p)) and describes the variability in the population. The standard error divides that by √n and describes the variability of the sample proportion across repeated samples. As n increases, the standard error shrinks, but the standard deviation does not.
Also, the formula assumes the sample is drawn randomly and independently. If the sample is biased or clustered, the standard error may be misleading. For very small samples (n < 30) or proportions near 0 or 1, the normal approximation may be poor, and you might need exact binomial methods or an adjustment like the Wilson score interval.
Finally, rounding too early can cause errors. Always keep the proportion as a decimal (not a percentage) when computing the standard error, then convert at the end. For example, 50% should be entered as 0.50 in the formula, not 50.
Comparison with Other Measures
The standard error of a proportion is one of several measures of uncertainty. Here’s how it compares:
- Standard deviation (SD): describes variability in the data itself. For a proportion, SD = √(p(1−p)). It does not change with sample size.
- Standard error (SE): describes variability of the sample estimate. SE = SD / √n. It decreases as n increases.
- Margin of error (MOE): usually the half-width of a confidence interval. For 95% confidence, MOE ≈ 1.96 × SE.
- Confidence interval: a range of plausible values for the true proportion. Typically p̂ ± 1.96 × SE for 95% confidence.
For example, with p = 0.30 and n = 200: SD = √(0.30×0.70) ≈ 0.458, SE = 0.458/√200 ≈ 0.0324 (3.24 points), MOE = 1.96 × 0.0324 ≈ 0.0635 (6.35 points), and the 95% CI is 30% ± 6.35%, or 23.65% to 36.35%.
If you have two proportions and want to compare them, you would compute the standard error of the difference between two proportions, which is √(SE₁² + SE₂²) for independent samples. That is not covered by this calculator, but it follows the same logic.
Limitations and When to Be Cautious
The standard error formula assumes a simple random sample from a large (or infinite) population. If the population is small and you sample a large fraction of it, you should apply a finite population correction: FPC = √((N−n)/(N−1)), where N is the population size. Multiply the SE by FPC to get a smaller standard error.
Also, the normal approximation works best when both np and n(1−p) are at least 5. If your sample proportion is very close to 0 or 1, or your sample size is small, the standard error may underestimate uncertainty. In such cases, consider using an exact binomial confidence interval or an adjusted method like the Wilson score interval.
Finally, the standard error only accounts for random sampling error. It does not cover non-response bias, measurement error, or other systematic errors. A small standard error does not guarantee accuracy if the sample is not representative.
Frequently Asked Questions
What is the difference between standard error and margin of error?
The standard error is the standard deviation of the sampling distribution of the proportion. The margin of error is the amount added and subtracted from the sample proportion to create a confidence interval. For 95% confidence, the margin of error is approximately 1.96 times the standard error. So if SE = 4%, the 95% margin of error is 7.84%.
Can I use this calculator for percentages that are not 50%?
Yes, the formula works for any proportion between 0% and 100%. The standard error is largest when p = 50% and smallest when p is near 0% or 100%. For example, with n = 100, SE at p = 50% is 5%, but at p = 10% it is √(0.1×0.9/100) = 3%.
What sample size do I need for a 5% margin of error?
For a 95% confidence level and a 5% margin of error, you need SE = 5/1.96 ≈ 2.55%. Using p = 0.50 (worst case), n = 0.25 / (0.0255)² ≈ 384. So a sample of about 385 is typically sufficient for a 5% margin of error at 95% confidence.
Why is the standard error smaller with a larger sample size?
Because the formula divides by √n, as n increases, the standard error decreases. This reflects the fact that larger samples provide more information about the population, so the sample proportion tends to be closer to the true proportion. However, the decrease is not linear: quadrupling the sample size halves the standard error.
Does the standard error change if I use a percentage instead of a decimal?
No, the result is the same as long as you are consistent. If you use the percentage form, you must multiply the final standard error by 100 to get the answer in percentage points. The calculator here does that automatically.
Can I use this for small samples like n = 10?
Technically yes, but the normal approximation may be poor. For small samples, the sampling distribution of the proportion is not well approximated by a normal curve, especially if p is extreme. In such cases, consider using exact binomial methods or a continuity correction. The standard error formula still gives a rough estimate, but confidence intervals based on it may not have the stated coverage.
Related
Formula used
in p | Sample proportion (%) | % | 50 | 0 | 100 in n | Sample size | - | 100 | 1 | 1000000 out se | Standard error | % | sqrt((p/100 * (1 - p/100)) / n) * 100 | 2 out margin95 | 95% margin of error | % | 1.96 * (sqrt((p/100 * (1 - p/100)) / n) * 100) | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Measuring Light Speed & Wavelength: How It Works
- Draco Race Blox Fruits: How to Get It
- ES File Explorer Tips & Tricks That Actually Work
- Remove Google FRP Lock on Oppo: Step-by-Step
- Forza Horizon 6: Unlock Legend Island & Earn Horizon Legend
- Clean Hair Dryer Filter: Improve Airflow