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.
- Free, no sign-up
- Nothing is sent to a server
- Worldwide
How to use Sample Size Calculator online
- Choose what you estimate. Pick a proportion or a mean.
- Set the confidence and the margin. Choose the level and type the margin of error.
- Add the expected spread. Type the expected proportion, or the expected standard deviation for a mean.
- 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?
What is the margin of error?
Does the population size matter?
What does the confidence level change?
Why round up?
Does the Sample Size Calculator store my numbers?
Is there a way to keep the Sample Size Calculator result?
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.