Skip to content
Mathematics & StatisticsLocal · Stays on device

Sample Size Calculator

Work out how many responses you need for a survey proportion or a mean at a chosen margin of error and confidence — or the margin for a given sample.

  • Numbers
  • Free to use
  • No sign-up or watermark
sample-size-calculatorOn this device

About this tool

Estimate the sample size needed to measure a proportion (such as the share of customers who agree with a statement) or a mean to within a chosen margin of error at 80–99.9% confidence. Enter a population size to apply the finite population correction for small populations, or switch to solve for the margin of error a given sample will achieve.

The working is shown — the critical value, the unrounded n₀ and the corrected n — with a table of sample sizes at other margins and confidence levels and a reminder to allow for non-response. The formulas assume a simple random sample and cover sampling error only. Everything is calculated in your browser; nothing you enter is uploaded.

  1. Input

    Your details

    Numbers

  2. Processing

    Processed in this browser

    Instant, in-browser. Nothing is uploaded.

  3. Output

    Your result

    Shown instantly, ready to copy or export

Local processing pipelineDistributions implemented in-house: normal (Hart/West), Student t (incomplete beta), chi-square (incomplete gamma), log-gamma (Lanczos)

How to use it

  1. 1

    Choose proportion or mean.

  2. 2

    Set the confidence level and the margin of error.

  3. 3

    Enter the expected proportion (50% if unsure) or an estimated standard deviation.

  4. 4

    Optionally enter the population size.

Zero-upload architecture

How to use Sample Size Calculator for free, with no upload

Free, with no sign-up or watermark · Your details stay on your device

  1. 1

    Open Sample Size Calculator

    Launch the app. There is nothing to install and no account to create.

  2. 2

    Work through it

    Set the confidence level and the margin of error.

  3. 3

    Get your result

    Optionally enter the population size.

All 31 maths tools
  • Local

    Confidence Interval Calculator

    Confidence intervals for a mean (t or z), a proportion (Wilson, Agresti–Coull or Wald) or a difference of two means, with assumptions stated.

    Open tool
  • Local

    Survey Question Builder

    Write survey questions with Likert, multiple-choice, rating and ranking formats, and get instant warnings about biased wording.

    Open tool
  • Local

    Hypothesis Test Helper

    Run one-sample, Welch, paired, proportion and chi-square tests: test statistic, p-value, decision at α, effect size and plain-language interpretation.

    Open tool
  • Local

    Descriptive Statistics Calculator

    Calculate mean, median, mode, variance, standard deviation, quartiles, outliers and skewness, with a box plot and frequency table.

    Open tool