TimerHubs logoTimerHubs
Home Games

Calculator guide

How to Use a Sample Size Calculator (With a Worked Example)

Compiled by J. Clint · 3 min read

Find how many responses a survey needs for a given margin of error.

This guide is for students, teachers, and anyone who needs the working shown, not just the answer. It explains what the sample size calculation actually measures, what each input means, how to read the result, and where people most often get it wrong — then walks a complete worked example you can follow along with in the free Sample Size Calculator on TimerHubs.

Open the free Sample Size Calculator

What a sample size calculator tells you

Sample size depends far more on the margin of error you want than on how big the population is. Above roughly 20,000 people, the population barely changes the answer at all.

Getting the right answer matters less than being able to reproduce it. This guide walks the formula step by step so you can redo the work on paper, in an exam, or in a spreadsheet later.

It is also a fast way to check homework. Solve it yourself first, then run the numbers here — if the two disagree, the difference usually points straight at the step you rushed.

What you need before you start

The Sample Size Calculator asks for 3 inputs. Gather them first — every one of them changes the answer, and guessing at one makes the rest of the precision meaningless.

  • Population size — use the same units you measured in.
  • Margin of error — Enter it in %.
  • Confidence level — use the same units you measured in.

Step by step

Open the Sample Size Calculator, then work through it in this order. The calculator updates as you type, so you can leave one field selected and nudge it to see how sensitive the result is.

  • Step 1: fill in population size.
  • Step 2: fill in margin of error in %.
  • Step 3: fill in confidence level.
  • Step 4: read the results panel and note every line, not just the headline number — the supporting figures are usually what you actually need to act on.
  • Step 5: change one input and re-read. If a small change swings the answer hard, that input is the one worth measuring carefully.

A worked example

Here are the example values the calculator loads by default, and the answer it produces from them. Reset the calculator at any time to get back to exactly these numbers and check your own working against them.

Inputs

Population size
100000
Margin of error (%)
5
Confidence level
95%

Result

Required sample size
383
Unadjusted (infinite population)
385

Common mistakes to avoid

Most wrong answers from a sample size calculation are not arithmetic errors — they are input errors. These are the three that come up most.

  • Rounding early. Carry full precision through the working and round only the final answer.
  • Losing track of units or sign. A negative that should be positive quietly flips the whole result.
  • Reading the question as a different question — check that the value you are solving for is the value being asked for.

How to make it a habit

A single calculation is a snapshot. The value comes from re-running it on a schedule — monthly for money, every few weeks for health and training, and every time the inputs change for everything else.

Pair it with a timer if the task itself needs a boundary: set a 25-minute Pomodoro to gather your figures, run the numbers, and write down the result before you move on. That is the whole reason a calculator collection lives on a timer site — the two habits reinforce each other.

Privacy and accuracy

Every calculation runs entirely in your browser. Nothing you type — salary, measurements, health numbers — is sent to a server, stored, or shared. There is no account and no tracking of your inputs.

Use this to check and understand your working, not to skip it. The steps below exist so you can reproduce the answer without the tool.

Keep going