Menu
PDF Tools
Image Tools
Converters & Utilities
Seller & Print Tools
Accounting & Business
Calculators
Text & Writing Tools
Developer & Web Tools
Creator & Social Tools
Browser Utilities & Games
Document & Design Makers
Text & Developer Tools
Exam & Form Tools

Sample Size Calculator

This calculator finds the sample size you need to estimate a proportion or a mean within a margin of error at a confidence level you choose. An optional population size adjusts the result.

How to use Sample Size Calculator online

  1. Choose what you estimate. Pick a proportion or a mean.
  2. Set the confidence and the margin. Choose the level and type the margin of error.
  3. Add the expected spread. Type the expected proportion, or the expected standard deviation for a mean.
  4. Read the sample size. The size needed appears, with the size before any population correction.

Why use this free Sample Size Calculator

  • Proportions and means
  • 90, 95 and 99 percent levels
  • Finite population correction
  • Rounded up result
  • Critical z value shown
  • Share by link

How big a sample

Before a survey or a measurement you need to know how many answers or items to collect. The answer depends on how precise you want to be, how sure you want to be and how much the data vary. This page works it out for a proportion, such as the share of people who agree, or for a mean.

The formulas

For a proportion the sample size is z² × p × (1 − p) divided by the margin squared. For a mean it is (z × standard deviation ÷ margin) squared. The value z comes from the confidence level. The result is rounded up to a whole number.

A worked example

To estimate a proportion within 5 percentage points at 95 percent confidence, with the most cautious expected share of 0.5, you need 385 responses. To estimate a mean within 2 units when the standard deviation is about 10 at 95 percent, you need 97.

A finite population

If you sample a large share of a small population, you need fewer answers. Type the population size and the page applies the finite population correction: n = n₀ ÷ (1 + (n₀ − 1) ÷ N). Leave it at 0 for a very large population.

Limits

The formulas assume a random sample with no non-response bias. Real surveys lose responses and may be uneven, so plan for a larger sample than the minimum shown here.

Using the calculator

As you type in the Sample Size Calculator, the results below update at once. Drag the what-if sliders to see how each number moves the answer.

Sample Size Calculator: frequently asked questions

Why use 0.5 for the expected proportion?
Because it gives the largest sample size, so it is the cautious choice when you have no idea of the real share.
What is the margin of error?
How far the estimate may be from the true value, in the units of the data or as a share.
Does the population size matter?
Only when the sample is a large share of it. For large populations it makes almost no difference.
What does the confidence level change?
A higher level asks for more certainty and needs a larger sample.
Why round up?
You cannot survey part of a person, and rounding down would fall short of the precision you asked for.
Does the Sample Size Calculator store my numbers?
The Sample Size Calculator calculates locally, and clearing the site data removes anything it saved.
Is there a way to keep the Sample Size Calculator result?
Download a CSV for a spreadsheet or a PDF to print; both carry the Sample Size Calculator inputs and results.

Related searches for Sample Size Calculator

  • Sample Size Calculator online
  • free Sample Size Calculator
  • Sample Size Calculator online free
  • Sample Size Calculator for mobile
  • Sample Size Calculator without sign up
  • sample size formula
  • sample size calculator with table
  • Sample Size Calculator – Math, Stats & Charts

Sample Size Calculator is a free online tool on MAITBOX, in the Math, Stats & Charts group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.

More tools in Math, Stats & Charts →

Search tools