How many people to survey for a given confidence and margin of error — finite-population correction, reverse mode, one-click copy, browser-only
- Runs locally
- Category Calculator
- Best for Getting a realistic range before a purchase, plan, workout, or schedule decision.
Two-sided z = 1.9600
Use 0.5 when unsure — it gives the largest, safest sample.
Leave blank for a very large or unknown population.
What this tool does
Free sample size calculator for surveys, polls and A/B tests. Tell it the confidence level you want (90%, 95%, 99% or any custom value), the margin of error you can tolerate (say 5%), and the proportion you expect (use 0.5 when you have no idea, because it gives the largest and safest sample), and it returns the number of responses you need. It uses the standard formula n0 = z squared times p times (1 minus p) divided by e squared, then applies the finite-population correction n = n0 / (1 + (n0 minus 1)/N) when you enter a population size, so a survey of a 1,000-person company asks for far fewer responses than an open web poll. A reverse mode works the other way: enter the sample size you already collected and it tells you the margin of error you actually achieved. The z-score for your exact confidence level is computed with an inverse-normal approximation, not a lookup table, so a custom 92.5% is just as precise as 95%. Every result is one click to copy and the inputs live in the URL, so a shared link reopens the same calculation. 100% client-side, nothing is uploaded.
Tool details
- Input
- Numbers
- The page exposes text boxes, numeric controls, file pickers, or structured inputs depending on the tool.
- Output
- Live result + Copy
- The result area focuses on usable output, with copy, download, or preview actions when supported.
- Privacy
- Browser-side processing
- The main tool logic does not call an external API, so inputs normally stay in the current tab.
- Save / share
- Shareable URL state
- Key settings are encoded in the URL so another person can reopen the same setup.
- Performance budget
- Initial JS <= 9 KB
- No WASM budget is declared, keeping the tool quick to open on mobile.
- Best fit
- Calculator · Marketer
- Category and role tags drive related tools, internal links, and quick fit checks.
How to use
-
1. Input
Paste or drop your content into the tool panel.
-
2. Process
Click the button. All processing is local in your browser.
-
3. Copy / Download
Copy the result or download to disk in one click.
How Sample Size Calculator fits into your work
Use it for fast estimates, comparisons, and planning numbers before you make the final call.
Calculation jobs
- Getting a realistic range before a purchase, plan, workout, or schedule decision.
- Comparing scenarios by changing one input at a time.
- Turning rough assumptions into a number you can discuss.
Calculation checks
- Double-check units, dates, rates, and rounding assumptions.
- Treat health, finance, tax, and legal outputs as planning aids, not professional advice.
- Save the inputs that produced an important result so you can reproduce it later.
Good next steps
These links move the current task into a more complete workflow.
- 1 Percentage Calculator 5 common percentage calculations — "x% of y", "x is what% of y", percentage change, increase/decrease — instant, browser-only Open
- 2 Statistics Basic Calculator Basic statistics calculator — mean/median/mode/variance/std-dev/quartiles/range/IQR/skewness/kurtosis + histogram + box plot, paste any numbers. Open
- 3 Scientific Calculator Scientific calculator — sin / cos / log / sqrt / power, with full keyboard input + history, deg/rad mode. Open
Real-world use cases
Plan a customer survey before you send it
You run a 4,000-customer SaaS and want to know what fraction would recommend the product, accurate to within 5 points at 95% confidence. Enter confidence 95, margin 5%, leave p at 0.5, and set population to 4,000. The tool returns 351 completed responses. Now you can work backward: if your survey completion rate is about 20%, you need to email roughly 1,755 customers to land those 351 answers, and you have a defensible number to put in front of your boss instead of a guess.
Size an A/B test conversion sample
Your landing page converts around 12% and you want to detect whether a new design moves the needle. Enter p = 0.12 and a margin tight enough to matter for your decision, and the calculator tells you how many visitors each variant needs before the result is trustworthy. Because p is well below 0.5, the required sample is smaller than the worst-case 385, which means you can call the test sooner.
Defend a poll's accuracy to a skeptical reader
A reader objects that your 600-person poll "can't possibly" represent a city of two million. Switch to reverse mode, enter sample size 600 at 95% confidence with p = 0.5, and the tool returns a margin of error of about 4%. You can now say, with the math attached, that the poll is accurate to plus or minus four points 19 times out of 20, regardless of how big the city is.
Teach the confidence-margin-sample triangle in class
Demonstrating sampling theory to students, you toggle one input at a time: raise confidence from 90% to 99% and watch the sample jump, then tighten the margin from 5% to 2.5% and watch it quadruple. The URL updates on every change, so you can paste a link in the class chat that reopens the exact scenario each student should reproduce.
Common pitfalls
Confusing the margin of error with the confidence level. The confidence level (95%) is how often the interval would contain the truth across repeated samples; the margin of error (5%) is the half-width of that interval. They are independent inputs. Bumping confidence from 95% to 99% does not shrink your margin, it grows the required sample to keep the same margin.
Forgetting to round the sample size up. n0 comes out as 384.16, and people sometimes truncate to 384. Always ceiling it to 385, because using 384 leaves your true margin of error a hair above the 5% you promised. The tool always rounds up for you, but if you compute by hand, never round down.
Entering a population for an effectively infinite group. If you are polling a national audience or an open web form, leaving the population blank is correct. Typing a huge number like 50,000,000 wastes effort because the finite-population correction changes the answer by less than one response at that scale.
Privacy
Every number you type and every result the tool produces stay inside your browser tab. The sample-size formula, the z-score lookup and the finite-population correction are all plain JavaScript running locally, with no server call and no logging of what you entered. The one thing to know: your inputs (confidence, margin, proportion, population) are encoded in the page URL so a shared link reopens the same calculation, which means those values appear in the recipient's browser history and any server log that sees the link. These are not sensitive values, but if you would rather not share them, use the copy button to paste the plain-text result instead.
FAQ
Tool combos
Folks in your role tend to reach for these alongside this tool.
- AI Model Comparison AI model comparison — 20+ models (GPT / Claude / Gemini / Llama / Qwen) across price, context, speed, capabilities (2026).
- Annuity Calculator Annuity & retirement calculator — see monthly income from your savings, accumulation + payout phases, multiple scenarios.
- Avatar Generator Generate avatars from initials, identicons, or random shapes. Download PNG/SVG.
- Barcode Generator Code 128 / EAN-13 / UPC-A / Code 39 — generate scannable 1D barcodes, export SVG or PNG, fully offline.