Sample Size Calculator

Sample Size Calculator — How many people to survey — for your confidence level and Free to use online, no sign-up; runs 100% in your browser on ScopeTreasure.

In short: How many people to survey — for your confidence level and margin of error. Free to use in your browser — no sign-up.

What is Sample Size Calculator?

Sample Size Calculator works out how many people you need to survey so your result is trustworthy: pick a confidence level and a margin of error, and it gives the number, with the correction for a known population size.

How to use this tool

  1. Pick a confidence level — 95% is the usual choice for surveys.
  2. Set the margin of error with the slider: 5% is common, smaller means a bigger sample.
  3. Set the expected proportion; leave it at 50% if you do not know it, for the safe, largest sample.
  4. Type the population size if you know it, or leave it blank for a very large group.
  5. Read the number of people to survey, with the formula shown underneath.

About this tool

A survey of 50 people cannot speak for a whole university, and a survey of 50,000 people costs far more than it needs to. The sample size calculator finds the middle: the smallest number of people that still gives a result you can trust, for the confidence level and margin of error you choose.

The formula is n = Z² × p × (1 − p) ÷ e². Z comes from the confidence level: 1.645 for 90%, 1.96 for 95% and 2.576 for 99%. The letter p is the proportion you expect, and e is the margin of error as a decimal. With 95% confidence, a 5% margin and p = 50%, the sum is 1.96² × 0.5 × 0.5 ÷ 0.05², which is about 384.16, rounded up to 385 people.

The margin of error is the wobble around your result. A 5% margin means that if 60% of your sample says yes, the true figure for the whole group is probably between 55% and 65%. Halving the margin to 2.5% needs about four times as many people, because the margin sits squared in the formula. That is why most surveys settle for 5%.

The confidence level is how sure you want to be. At 95%, 19 out of 20 surveys done the same way would land inside the margin of error. At 99% you are surer, but the sample grows: the same survey needs about 664 people instead of 385. At 90% it needs only about 271. Higher confidence always costs more people.

When you know the size of the whole group, the finite-population correction shrinks the sample. For a population of 10,000, the 385 becomes 370, because you are sampling a real share of the group. For a population of 500, it falls to about 218. For a huge or unknown population the correction changes almost nothing, so leaving the box blank is fine.

The proportion p is the share you expect to answer yes. Using 50% gives the biggest sample, because p × (1 − p) is largest at 50%, so it is the safe choice when you do not know. If you already know the answer is near 10% or 90%, the sample can be smaller — but only use that if you are sure, or your survey may end up too small.

Example — a survey of university students at 95% confidence and a 5% margin:

With Z = 1.96, p = 50% and e = 5%, the formula gives about 384.16, rounded up to 385 people. If the university has 10,000 students, the correction gives 385 ÷ (1 + 384 ÷ 10,000), which is about 370 people. These are the same figures the tool shows with its starting values.

Frequently asked questions

How many people do I need to survey?
Pick a confidence level and a margin of error and the tool tells you. At 95% confidence with a 5% margin and a 50% expected proportion, you need 385 people. Add your population size if you know it, and the number may fall a little.
What is margin of error?
It is the wobble around your survey result. With a 5% margin, a result of 60% really means the true figure is probably between 55% and 65%. A smaller margin needs a much bigger sample, because the margin is squared in the formula.
What confidence level should I pick?
95% is the usual choice for student surveys and class projects. 90% needs fewer people but is less sure; 99% is surer but needs far more people — about 664 instead of 385 for the same 5% margin.
What should I put for the expected proportion?
Leave it at 50% if you do not know. That gives the largest sample, which is the safe choice. If you already know the answer is near 10% or 90%, a smaller sample works — but only if you are sure.
Why does the population size change the answer?
When you survey a real share of a small group, each answer tells you more, so you need fewer people. For 10,000 students the 385 becomes 370; for 500 students it becomes about 218. For a huge or unknown population it barely changes.
Does a bigger sample always help?
Up to a point. Doubling the sample shrinks the margin of error, but only by about a third, while the cost doubles. The calculator finds the smallest sample that still meets your margin, so you do not pay for answers you do not need.
Can I use this for a class project?
Yes. It is the standard formula taught in statistics classes, and the tool shows the formula and the Z value so you can show your working. It does not replace your teacher’s guidance on how to pick the people you survey.
Is this calculator free, and is my data stored?
Yes, it is free, with no sign-up and no account. The calculation runs in your browser and nothing you type is saved or sent anywhere.

Related Calculators tools