Sample Size Calculator: Margin of Error & Confidence

Sample Size Calculator

Find how many survey responses you need from your target margin of error and confidence level, for both proportions and means, with an optional finite population correction and a response-rate adjustment for invitations.

🎯Real Survey Presets

📝Survey Inputs

Proportion uses p(1–p); mean uses the standard deviation.

Used only when confidence is set to Custom. Range 50 to 99.99.

Enter 5 for ±5 percentage points. Used for proportion mode.

Use 0.5 when unknown; it gives the largest, safest n.

Absolute precision in the same units as the mean.

Used for mean mode. Estimate from a pilot or prior data.

Leave 0 for an unknown or very large population.

If 40% reply, you must invite more than n to reach n.

Required sample size 0 n0 for infinite population
With finite correction 0 adjusted for population N
Invitations needed 0 at your response rate
z-value used 0 from confidence level

🔢Formula Snapshot

zConfidence score
pExpected share
eMargin of error
NPopulation size

📊Sample Size at 95% by Margin & Population

Margin of ErrorInfinite / LargeN = 100,000N = 10,000N = 1,000N = 500
±1%9,6048,7634,900906476
±2%2,4012,3451,936706415
±3%1,0681,056965517341
±4%601597566376274
±5%385383370278217
±7%196196193164141
±10%9797968881

All values use the safest assumption p = 0.5 and z = 1.96. Larger populations barely change n once N is in the tens of thousands.

📐z-Value Reference Table

Confidence LevelTwo-Tailed zAlpha (α)Common Use
80%1.2820.20Rough internal reads
85%1.4400.15Quick pilot checks
90%1.6450.10Exploratory surveys
95%1.9600.05Standard for most research
98%2.3260.02Higher-stakes decisions
99%2.5760.01Medical and safety work
99.9%3.2910.001Very high certainty

🧮Effect of Expected Proportion p on n

Proportion pp(1–p)n at 95%, ±5%n at 95%, ±3%Notes
0.10 or 0.900.09139385Skewed split needs less n
0.20 or 0.800.16246683Still below the maximum
0.30 or 0.700.21323897Rising toward the peak
0.40 or 0.600.243691,025Near the largest value
0.500.253851,068Maximum variance, safest

Variance p(1–p) peaks at p = 0.5, so using 0.5 guarantees you never undersize the study.

Full Formula Breakdown

Margin to proportionThe percentage margin becomes a proportion: e = margin / 100. A ±5% margin is e = 0.05.
Proportion samplen0 = z² × p × (1–p) / e². This is the base size for an unlimited population.
Mean samplen0 = (z × σ / e)², where σ is the standard deviation and e is the absolute margin.
Finite correctionn = n0 / (1 + (n0 – 1) / N). It shrinks n when the population N is not much larger than n0.
Response inflationInvitations = ceil(n / response rate). At a 50% reply rate you invite about twice n.
z from level90% → 1.645, 95% → 1.960, 99% → 2.576. Custom levels use an inverse-normal approximation.
Rounding ruleSample sizes are rounded up so the achieved margin is at least as tight as requested.

🗂Finite Population Correction Reference

Population Nn0 (No FPC)n With FPCSampling %ReductionWhen It Matters
1003858080%−79%Large effect
25038515261%−61%Large effect
50038521743%−44%Strong effect
1,00038527828%−28%Clear effect
5,0003853577%−7%Small effect
10,0003853704%−4%Minor effect
50,0003853821%−1%Negligible
1,000,0003853850%−0%Effectively none

Base case: 95% confidence, ±5% margin, p = 0.5 (n0 = 385). The correction only bites hard when the population is small relative to n0.

📋Confidence & Margin Comparison Grid

ScenarioConfidenceMarginp / σPopulationRequired n
Classic web survey95%±5%p = 0.5Large385
Strict national poll99%±3%p = 0.5Large1,844
Small member list95%±5%p = 0.5N = 800260
Precise brand study95%±2%p = 0.5Large2,401
Political tracking95%±3%p = 0.5Large1,068
Mean rating estimate95%±2 unitsσ = 15Large217

💡Practical Sampling Tips

Unknown split tip: When you have no prior estimate for the true proportion, keep p at 0.5. It maximizes p(1–p), so your sample can never come out too small for the margin you asked for.
Response rate tip: A required n is the number of completed responses, not invitations. If only 40% reply, divide n by 0.40 and round up to see how many people you actually need to contact.

So, how do I recruit? You want a specific answer with little means of getting it. How many response will be enough to produce valid results? This is what the calculator do: translate your statistical needs into an attainable number. Then it handles all the math while you handle recruiting.

There’s just a tradeoff between cost and precision, that means changing margin of error determines your required sample size. The larger the margin, the fewer people is needed. At the 95% confidence level most online surveys has a plus/minus five percent margin. That’s roughly 385 people for large populations. Why? Because it’s a nice mix of rigorous and realistic.

How to Choose the Right Sample Size

Shrink the margin down to one percent and suddenly you’re in the thousands. Costs scale quadratically while the gain in precision look linear on a chart. More than you’d expect, the confidence level matters. This indicates how sure you want to be that your result falls within your stated margin. At ninety-five percent confidence, this mean we have a five in one hundred chance of not hitting our mark. In medical safety situations where a decision could save your life, you might want ninety-nine percent certainty. To do so would of take an extremely large sample size. The z-value goes up from approximately two to well above two point five. At stakes like these, you need to pay the price of a higher z-score if the consequence of getting it wrong are serious.

The number of people to sample is an often-overlooked factor for many newbies. They think sampling one million people is way more harder than sampling ten thousand. But it’s not. For populations larger than 50k, the calculations don’t differ significantly. The calculator only adjusts with a finite population correction when you’re working with relatively small numbers. And if you’re surveying staff at a mid-sized company, then that adjustment will cut down your target dramatically. There’s no reason to get three hundred responses when there are only five hundred person in the building.

Another mistake people make is with the “expected proportion” setting. If you don’t have any idea what the breakdown will be (i.e., 20% say yes and 80% say no), then put in 50%. Seems weird, right? You have zero baseline info on this so why would you guess half? Statistically speaking, it’s safer. The middle ground has the most variance. Guessing low could cost you money upfront. It could also cause you to undersize your study, meaning results won’t actualy pick up on real differences. Better to err on the high side then run an underpowered survey and not see anything.

Theory meets reality in response rates. The tool prompts you for your anticipated response rate, and calculates how many invites you need to send. It is not the survey completions, but the number of people it needs to invite to reach its target sample. History shows a 40% response rate? Then you need to invite 500 people to get responses from 200. This will save you from blowing your budget and missing your deadline if you fail to account off this fact. Hope for engagement late, but plan for disengagement early on.

That’s not guaranteeing those #s, that’s telling you what sample size is required. That doesn’t tell you who to pick. Regardless of your sample size, bad data is bad data. First get focused on having a good representation in your sample. Second, apply this to figure out what sample size gives you enough confidence based off valid responses. It is better to have a small and well-selected sample than a large and biased one.

Sample Size Calculator: Margin of Error & Confidence