Margin of Error Calculator

Find the margin of error for a proportion or mean estimate.

Estimate a

Enter the confidence level, sample size, and the estimated proportion or standard deviation.

How this margin of error calculator works

This calculator reports the z-based margin of error for a proportion or a mean. Choose Proportion (default) or Mean, pick a confidence level, enter sample size n as an integer of at least 1, and add the estimated proportion or the standard deviation. The headline is ± the margin — a percent in Proportion mode, or the same unit as σ in Mean mode. Details always show confidence level, z-value, and sample size.

Empty on a required field is no result. n must be an integer ≥ 1. Estimated proportion is a percent from 0 to 100. In Mean mode, typed 0 for standard deviation is no result. Confidence levels match the sample-size tool: 90% (z = 1.645), 95% (1.96, default), 99% (2.576), and 99.9% (3.291). Closing Advanced options leaves population size and the confidence-interval bounds out of the result, even if they stay filled or the box stays checked.

How to use the margin of error calculator

  1. Choose Proportion (default) or Mean, then a confidence level. Default is 95%.
  2. Enter sample size as an integer of at least 1. In Proportion mode enter estimated proportion as a percent. In Mean mode enter a standard deviation greater than 0.
  3. Read ± the margin in the headline, plus confidence, z, and n in the details.
  4. Open Advanced options only for a finite population, a point estimate, or Show confidence interval bounds. Closing leaves the population out of the margin and hides the interval bounds, even if values stay typed or the box stays checked.

Advanced options, and closing them

Open this section to use Population size, a point estimate, or Show confidence interval bounds. Closing it leaves the population out of the margin, so the finite-population correction is not applied, and it hides the interval bounds, even if values stay typed or the box stays checked. While open, correction applies when N is a positive integer, n ≤ N, and N > 1. Proportion intervals use the point estimate as a percent and clamp to 0%–100%. Mean intervals are unclamped.

Margin-of-error formulas

Proportion: E = z √(p(1 − p) / n), with p as a decimal from the typed percent. Mean: E = z σ / √n. A qualifying population multiplies E by √((N − n) / (N − 1)). These are normal (z) approximations. The widget does not switch to t.

Proportion margin
E=zp(1−p)n
Mean margin
E=zσn

Worked examples

Example: n = 1000, estimated proportion 50%, 95%

z = 1.96. SE = √(0.25 ÷ 1000) ≈ 0.01581. Margin ≈ 0.03099, so the headline is about ±3.099%. Leave population empty for a large or unknown population.

Example: Mean mode, n = 40, σ = 12, 95%

The margin is in the same unit as σ, not a percent. SE = 12 ÷ √40 ≈ 1.897. Margin ≈ 3.719, so the headline is about ±3.719. Typed 0 for σ is no result. Empty n is no result.

Example: the same 50% survey in a population of 10,000, with interval bounds

Open Advanced options and enter population 10000. FPC = √((10000 − 1000) / 9999) ≈ 0.949, so the margin drops to about ±2.940%. Tick Show confidence interval bounds and enter a point estimate of 52%. Lower and upper are about 49.06% and 54.94%, clamped to 0%–100%. Closing Advanced options returns the uncorrected margin, about ±3.099%, and hides the bounds, even if 10000, 52, and the checkbox stay as they were.

Things to keep in mind

This is a z margin, not a t margin. Leave population blank if it is very large or unknown. Closing Advanced options leaves a typed population and point estimate out of the result. Completed results can be saved in this browser’s local history.

Margin of error calculator FAQ

Which fields are required?

Sample size (integer ≥ 1), a confidence level (95% default), and an estimated proportion as a percent (Proportion) or a standard deviation greater than 0 (Mean). Population and point estimate are optional Advanced inputs. Advanced options is optional.

What happens when I close Advanced options?

Closing leaves population size out of the margin and hides the interval bounds, even if they stay filled or Show confidence interval bounds stays checked. Open the section again to use them. Confidence, z, and n stay visible.

Is the Mean-mode margin a percent?

No. In Mean mode the headline is in the same unit as the standard deviation. In Proportion mode the headline is a percent.

When is finite-population correction applied?

When you type a population as a positive integer, n is at most that population, and N is greater than 1. Empty population skips FPC. Correction is √((N − n) / (N − 1)).

Why is there no result for some n or σ values?

n must be an integer of at least 1. Estimated proportion must be 0%–100%. In Mean mode, empty or typed 0 for standard deviation is no result. Empty required fields are no result.

Does this margin of error calculator store my numbers?

Completed results can be saved in this browser’s local history so you can reopen them later. They stay on your device and are not sent to our servers or to analytics.