Home › Calculators › Margin of Error Calculator

Margin of Error Calculator

Find the ± margin of error of a survey or poll result. Enter the sample size, confidence level and observed percentage (and the population size for small populations) to get the margin, the confidence interval and how the margin changes with more respondents.

Last updated:

Estimate
%

Use 50% if unknown (worst case)

For small populations; leave empty if very large

In % for proportions, in data units for means: shows the sample size needed

Enter your values to see the result.
Advertisement
Advertisement

How to use the Margin of Error Calculator

  1. Enter the sample size: how many people answered.
  2. Choose the confidence level (95% is standard for polls).
  3. Enter the observed percentage, or 50% for the most cautious margin.
  4. Add the population size if you surveyed a sizeable share of a small group, such as a company's staff.
  5. Read the ± margin and the interval; optionally enter a target margin to see the sample size required.

Margin of error formula

MOE = z × √(p(1 − p) ÷ n) × √((N − n) ÷ (N − 1))

  • z: critical value for the confidence level (see the table).
  • p: observed proportion as a decimal (0.5 if unknown).
  • n: sample size; N: population size. Leave out the last factor for a large population.

Example: 1,000 respondents, 50%, 95% confidence: 1.96 × √(0.25 ÷ 1000) = 1.96 × 0.01581 = 0.031, so ±3.1 percentage points.

Confidence levelz
80%1.282
90%1.645
95%1.960
98%2.326
99%2.576
99.9%3.291

Margin of error at 95% confidence (p = 50%)

Sample sizeLarge populationPopulation 5,000Population 1,000
100±9.80%±9.70%±9.30%
200±6.93%±6.79%±6.20%
400±4.90%±4.70%±3.80%
1,000±3.10%±2.77%—
2,000±2.19%±1.70%—

Frequently asked questions

How is the margin of error calculated?

For a proportion, MOE = z × √(p(1 − p) ÷ n), where z is the critical value for the confidence level (1.96 for 95%), p the observed proportion and n the sample size. For a mean it is z × σ ÷ √n.

What is the margin of error for 1,000 respondents?

About ±3.1 percentage points at 95% confidence when the result is near 50%. With 400 respondents it is about ±4.9 points and with 2,000 about ±2.2 points.

Why use 50% for the proportion?

p(1 − p) is largest at p = 0.5, so 50% gives the widest, most conservative margin. Polls usually quote this worst-case figure so it applies to every question in the survey.

What is the finite population correction?

When the sample is a large share of the population (roughly more than 5%), the margin shrinks by √((N − n) ÷ (N − 1)). For 300 responses from 1,200 employees the factor is about 0.87, so ±5.4% becomes ±4.7%.

Does a bigger population need a bigger sample?

Barely. Without the correction, the margin depends on the sample size, not the population size. A sample of 1,000 is about as precise for a city as for a whole country, provided it is random.

What does the margin of error not cover?

Only random sampling error. It does not account for biased samples, non-response, badly worded questions or people answering untruthfully, which can be larger than the margin itself.

How does the confidence level change the margin?

Higher confidence needs a wider margin. With n = 1,000 and p = 50%, the margin is ±2.6% at 90%, ±3.1% at 95% and ±4.1% at 99% confidence.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Sample Size CalculatorHow many survey responses you need for a given confidence level and margin of error.Standard Error CalculatorStandard error of the mean from data or SD and n, plus SE of a proportion, with CIs.Confidence Interval CalculatorConfidence interval and margin of error for a mean or a proportion, with steps.Critical Value CalculatorCritical values of z, t, chi-square and F for any alpha, tails and degrees of freedom.Weighted Average CalculatorCalculate a weighted mean from values and weights, step by step.Average CalculatorMean, weighted average, median, sum, min and max of any list.Standard Deviation CalculatorStandard deviation, variance, mean, median, mode and quartiles.A/B Test Significance CalculatorCheck if your A/B test result is statistically significant.Z-Score CalculatorZ-score from a value, mean and SD, plus percentile and p-value; or the value from z.Probability CalculatorFind and, or, not, conditional and at-least-once probabilities from P(A) and P(B).Permutation and Combination CalculatorCalculate nPr and nCr, with or without repetition, as exact big numbers.Mean Median Mode CalculatorFind the mean, median, mode, range, min, max, sum and count of a list of numbers.Percentile CalculatorValue at any percentile, percentile rank of a score, quartiles, IQR and outliers.Correlation Coefficient CalculatorPearson r and Spearman rank correlation with significance and interpretation.Average Order Value CalculatorAverage order value from revenue and orders, plus the revenue impact of raising AOV.Binomial Distribution CalculatorBinomial probabilities P(X = k), at most, at least or between, with mean, variance and chart.Normal Distribution CalculatorNormal probabilities P(X < x), between two values and inverse percentiles, on a shaded bell curve.Poisson Distribution CalculatorPoisson probabilities for a rate λ: exactly k, at most, at least or between, with a chart.T-Test CalculatorOne-sample, two-sample (Welch/pooled) and paired t-tests with p-value and CI.Chi-Square CalculatorChi-square goodness-of-fit and independence tests with p-value and expected counts.P-Value CalculatorOne- or two-tailed p-values from z, t, chi-square or F statistics, with critical values.Variance CalculatorSample and population variance and standard deviation with a step-by-step deviations table.Five Number Summary CalculatorMin, Q1, median, Q3, max, IQR and fences of a data set, with a box plot.Outlier CalculatorFind outliers with 1.5×/3× IQR fences, z-scores or modified z-scores; get the cleaned data.Geometric Mean CalculatorGeometric, harmonic, arithmetic and quadratic means compared, or average growth from % changes.Expected Value CalculatorExpected value, variance and standard deviation from outcomes and their probabilities.One-Way ANOVA CalculatorOne-way ANOVA for 2-10 groups: SS, df, MS, F statistic, p-value, effect size and full table.Bayes Theorem CalculatorPosterior P(A|B) from P(A), P(B|A) and P(B|not A), with a probability tree and table.Box Plot MakerPaste data to draw box-and-whisker plots with quartiles, IQR and outliers. Download PNG or SVG.Coefficient of Variation CalculatorCV % from a dataset (sample or population) with mean, SD and a two-dataset comparison.Dice Probability CalculatorOdds of rolling a sum (exactly, at least, at most) with any dice, plus the full distribution.Effect Size Calculator (Cohen's d)Cohen's d, Hedges' g and Glass's delta from two means, SDs and sample sizes, with CI.Frequency Table GeneratorMake a frequency, relative and cumulative frequency table from numbers or categories.Histogram MakerPaste numbers, choose bins and get a histogram, frequency table and PNG download.Moving Average CalculatorSimple, exponential and weighted moving averages of a data series, with table and line chart.Odds Ratio and Relative Risk CalculatorOdds ratio, relative risk, risk difference, 95% CIs and p-values from a 2x2 table.Descriptive Statistics CalculatorPaste data and get mean, median, mode, quartiles, SD, skewness, kurtosis and a histogram.Empirical Rule Calculator68-95-99.7 rule ranges from a mean and standard deviation, with a shaded bell curve.T-Table (Student's t Distribution)Interactive t-table: critical t-values for any df and α, p-values, and a printable full table.Z-Test CalculatorOne-sample, two-sample and proportion z-tests with z, p-value, decision and shaded curve.Shannon Entropy CalculatorEntropy of text, data or probabilities in bits, nats or hartleys with a frequency table.Z-Table (Standard Normal Table)Interactive z-table: find the area for any z-score, or the z-score for a probability.Average Rate of Change CalculatorAverage rate of change of f(x), two points or a data table over [a, b], with the secant line.Binomial Expansion CalculatorExpand (a + b)^n with the binomial theorem: every term, Pascal coefficients and any specific term.Combinations GeneratorList every k-combination of your items, with or without repetition, and copy or export them.Covariance CalculatorSample and population covariance of paired X and Y data, with a step table and scatter plot.Grouped Data CalculatorMean, median, mode, variance and standard deviation from class intervals and frequencies.Inverse Normal Distribution CalculatorinvNorm: find the x or z value for a left, right, central or two-tail area, with a shaded curve.Permutations GeneratorList all permutations of letters, words or items, with k-permutations and repeats, and export them.Statistical Power CalculatorPower or required sample size for t-tests, proportions and correlations, with a power curve.T Distribution CalculatorStudent's t probabilities and critical values for any df, with the area shaded on the curve.
See all 52 Statistics & Probability Calculators →