Work out how many responses your survey needs. Set the confidence level and margin of error, and get the sample size instantly — no sign-up, no download.

Sample Size Calculator

Tell it your confidence level and margin — it tells you exactly how many responses you need.

Free to use Finite population correction Conservative p = 50% default Save PDF · PNG · Share

Enter your values

Fill in the fields below — the result appears with every step shown.

Shown on the printed, PDF and PNG copies of your result. Leave blank to stay anonymous.

Enter a valid value for confidence level.

95% is the standard choice.

%

Enter a valid value for margin of error.

How far the estimate may sit from the true value, e.g. 5 means plus or minus 5 points.

%

Enter a valid value for expected proportion.

Use 50 if unsure — it gives the largest, safest sample size.

Enter a valid value for population size (optional).

Leave 0 for a very large population; enter N to apply the finite population correction.

Local browser calculation

Review your inputs and the tool’s supported scope before using the result.

Calculator loading… If this message stays, this view is not running the calculator's script — open this file in a full browser tab, then press Calculate.

Your result will appear here

Enter your values above, then press Calculate — or press Enter in any field.
TinyExe Sample Size Calculator tinyexe.comFree online calculators

TinyExe · Sample Size Result

Calculated locally in your browser

Calculated on
—

–
—

Name

—

Confidence level

—

Margin of error

—

Expected proportion

—

How this was calculated

    What to do next

      TinyExe · tinyexe.com — Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.

      Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      Embed this tool

      Add this Sample Size Calculator to your own page — copy the code below and paste it where you want the tool to appear.

      The embed loads the live calculator in a frame, so it stays up to date automatically. Choose a width, check the code, then copy it. When you publish on WordPress, keep the src pointing at your live tool URL.

      Works in WordPress (Custom HTML block), HTML pages, and most site builders.

      The short answer

      To find a survey sample size for a proportion, use n equals z squared times p times one minus p, divided by the margin squared. At ninety five percent confidence, a five point margin and p of fifty percent, you need three hundred eighty five respondents, rounded up, or fewer with a finite population correction.

      • 95% confidence uses z = 1.96; 99% uses z = 2.576
      • p = 50% is the conservative default that maximises n
      • Sample sizes are always rounded UP to the next person

      Required sample at p = 50% (large population)

      Reference values for this calculator.

      ConfidenceMargin ±3%Margin ±5%Margin ±10%
      90%75227168
      95%1,06838597
      99%1,843664166

      The formula

      The exact formula this calculator uses — every variable in it is explained in the card below.

      The formula

      n0 = z^2 x p(1-p) / E^2 ; with finite population: n = n0 / (1 + (n0 - 1) / N) ; always round UP

      Ideas enhancement: applies the finite population correction automatically when a population size is given and defaults p to 50% (the worst case) so an unsure user still gets a safe sample size.

      Worked examples

      Worked examples with the full working shown — try them in the calculator to check.

      Example 1

      Standard poll

      95% confidence, margin 5, p = 50, no population limit

      CalculationSteps
      n0 = 1.96^2 x 0.5 x 0.5 / 0.05^2 = 3.8416 x 0.25 / 0.0025 = 384.16, rounded up to 385.385 respondents needed.

      Result

      Example 2

      High confidence

      99% confidence, margin 5, p = 50

      CalculationSteps
      n0 = 2.576^2 x 0.25 / 0.0025 = 6.6358 x 0.25 / 0.0025 = 663.58, rounded up to 664.664 respondents needed.

      Result

      Example 3

      Small organisation survey

      95% confidence, margin 5, p = 50, population 1,000

      CalculationSteps
      n0 = 384.16. Corrected n = 384.16 / (1 + 383.16 / 1000) = 277.66, rounded up to 278.278 of the 1,000 members needed — the correction saves 107 surveys.

      Result

      How to use this calculator

      Step 1

      Decide how confident you must be — 95% is the research standard.

      Step 2

      Choose the margin of error you can accept, in percentage points.

      Step 3

      Enter the expected proportion; use 50% if you have no prior estimate, because it maximises the required sample.

      Step 4

      If the total population is small and known, enter it for the finite population correction.

      Step 5

      Round the result up — that is the minimum number of completed responses to collect.

      In short: Sample size is the number of completed responses needed so that a sample proportion estimates the population proportion within a chosen margin at a chosen confidence level.

      Frequently asked questions

      Why use 50% for the expected proportion?

      The product p(1-p) is largest at p = 0.5, so 50% gives the biggest sample size and guarantees your margin whatever the true proportion turns out to be.

      Why must I round up, not to the nearest whole number?

      Rounding down would leave you fractionally short of the precision you specified. Sample sizes are always rounded up to the next whole respondent.

      What does the finite population correction do?

      When your sample is a noticeable share of a small population, each response carries more information, so the correction reduces the required n. It matters most when n0 exceeds about 5% of N.

      What margin should I choose?

      Plus or minus 5 points at 95% confidence is the common survey default (n = 385). Halving the margin roughly quadruples the sample, so tighter margins get expensive fast.

      Does this work for estimating a mean, like average spend?

      This tool is for proportions (shares, percentages, yes/no answers). Estimating a mean needs the population standard deviation as an extra input, which this proportion formula does not use.

      About this calculator

      A sample size calculator works out how many people (or items) you must survey so that a percentage you measure — for example the share who support a policy — lands within a stated margin of error of the true population value, at a stated confidence level.

      The formula balances three things. A tighter margin (smaller E) demands a much larger sample because n grows with 1/E squared. Higher confidence demands a larger z-value and therefore a larger sample. And proportions near 50% are the hardest to pin down, because p(1-p) peaks there — which is why 50% is the safe default when you have no pilot data.

      The finite population correction recognises that sampling 300 people from a town of 1,000 tells you far more than sampling 300 from a country of millions. When the uncorrected sample is a meaningful fraction of the population, the correction shrinks the required number — sometimes dramatically for small organisations surveying their own members.

      Use it before any survey, poll, A/B test measured as a rate, quality inspection or market-research study: it stops you fielding a survey that is too small to trust, and stops you paying to interview far more people than the precision you need requires.

      How to calculate it yourself

      Step 1

      Pick the confidence level: z = 1.645 for 90%, 1.96 for 95%, 2.576 for 99%.

      Step 2

      Square z and multiply by p x (1 - p), using proportions as decimals.

      Step 3

      Divide by the margin of error squared (as a decimal) to get n0.

      Step 4

      If you gave a population N, apply n = n0 / (1 + (n0 - 1) / N).

      Step 5

      Round up to the next whole number — that is your minimum completed sample.

      Real-life examples

      Student union election poll

      A student union with 1,000 members wants to poll voting intention within plus or minus 5 points at 95% confidence before an election.

      Uncorrected n0 = 384.16; with N = 1,000 the corrected n = 277.66, rounded up to 278.

      They need 278 completed responses — achievable with one email round instead of the 385 a national-poll rule of thumb suggested.

      Product team's pricing survey

      A software team surveys its large user base about a price rise, accepting a plus or minus 3 point margin at 95% confidence with no prior estimate of support.

      n0 = 1.96^2 x 0.25 / 0.03^2 = 0.9604 / 0.0009 = 1,067.11, rounded up to 1,068.

      They need 1,068 responses — the tighter 3-point margin nearly triples the standard 385.

      Ideas & use cases

      • Non-response inflation: if you expect only a 40% response rate, divide the required completed sample by 0.4 to get how many invitations to send.
      • Margin trade-off check: run the same study at margins of 3, 5 and 10 points to show a manager exactly how precision drives fieldwork cost.
      • Pilot-first approach: run a small pilot, use its observed proportion instead of 50%, and re-run this calculator — a proportion near 20% or 80% cuts the required sample noticeably.

      Limitations & sources

      • For proportions only — it does not size a sample for estimating a mean (which needs a standard deviation), nor adjust for expected non-response; inflate the target by your expected response rate yourself.

      Sources: Cochran (1977) Sampling Techniques sample-size formula for proportions; standard z-values from the normal distribution

      Sample Size Calculator · TinyExe calculator suite Free to use · No sign-up · Instant results