Statistical Sampling Calculator

This statistical sampling calculator selects a simple random, systematic or stratified sample from a population and reports the sampling fraction and margin of error.

Checks on your data

  • Random selection protects against bias only if the sampling list covers the whole population and people chosen actually respond.
  • Systematic sampling can mislead if the list has a repeating pattern that matches the interval.
  • To choose n, use the sample size calculator. Find the sample size →

Results

Method
Simple random sample (without replacement)
Selected IDs (25)
3, 7, 44, 80, 81, 142, 181, 221, 231, 235, 240, 260, 292, 326, 329, 333, 343, 352, 356, 399, 406, 449, 454, 464, 500
Sampling fraction n/N
5 %
Margin of error for a proportion (95 %, p = 0.5)
±19.12 percentage points
includes the finite population correction
Finite population correction
0.975656
Where the selected IDs fall across the population list
012340 – 50: 3350 – 100: 22100 – 150: 11150 – 200: 11200 – 250: 44250 – 300: 22300 – 350: 44350 – 400: 33400 – 450: 22450 – 500: 33050100150200250300350400450500
Selected IDs (sorted)
#ID
13
27
344
480
581
6142
7181
8221
9231
10235
11240
12260
13292
14326
15329
16333
17343
18352
19356
20399
21406
22449
23454
24464
25500
Show step-by-step solution
  1. Each of the 500 units has the same chance n/N = 0.05 of being chosen.
  2. 25 distinct random numbers between 1 and 500 were drawn using seed 2024, so the same seed reproduces the same sample.
  3. Margin of error (worst case, p = 0.5) = 1.96 × √(0.25 ÷ n) × √((N − n) ÷ (N − 1)) = 19.12 percentage points.
Simple randomEvery unit equal chance
SystematicEvery kth unit
StratifiedSample each subgroup
Intervalk = N / n

What Is Statistical Sampling?

Statistical sampling means choosing a subset of a population so you can learn about the whole group. The main probability methods are simple random sampling, systematic sampling, which takes every kth unit, and stratified sampling, which samples each subgroup.

Enter the population size and the sample size. For a random sample the calculator draws distinct ID numbers using a seed so the draw can be repeated; for a systematic sample it gives the interval and a random start; for a stratified sample it allocates the sample to each stratum in proportion to its size. It also reports the sampling fraction and the worst-case margin of error for a proportion with the finite population correction.

Below you will find the formulas, variables, a worked example and answers to common sampling questions.

How to Use the Statistical Sampling Calculator

  1. Choose a sampling method.
  2. Enter the population size N and the sample size n.
  3. For random and systematic samples, keep or change the seed.
  4. For stratified samples, list each stratum and its size.

Statistical Sampling Formula

Sampling fraction

f=nNf=\frac nN

Systematic interval

k=⌊Nn⌋k=\left\lfloor\frac Nn\right\rfloor

Proportionate allocation

nh=n⋅NhNn_h=n\cdot\frac{N_h}{N}

Margin of error with finite population correction

E=zp(1−p)nN−nN−1E=z\sqrt{\frac{p(1-p)}{n}}\sqrt{\frac{N-n}{N-1}}

Statistical Sampling Variables Explained

SymbolMeaningNotes
NPopulation size
nSample size
kSystematic sampling interval⌊N ÷ n⌋
NₕSize of stratum hallocation nₕ = n·Nₕ/N

Statistical Sampling Worked Example

A school of 500 students needs a sample of 25. For systematic sampling k = 500 ÷ 25 = 20; with a random start of 7 you select students 7, 27, 47, and so on. For stratified sampling with year groups of 220, 150 and 130, the proportionate allocation is 11, 7.5 and 6.5, rounded with largest remainders to 11, 8 and 6.

With the example values loaded in the calculator above, the steps are:

  1. Each of the 500 units has the same chance n/N = 0.05 of being chosen.
  2. 25 distinct random numbers between 1 and 500 were drawn using seed 2024, so the same seed reproduces the same sample.
  3. Margin of error (worst case, p = 0.5) = 1.96 × √(0.25 ÷ n) × √((N − n) ÷ (N − 1)) = 19.12 percentage points.

Result: Method = Simple random sample (without replacement); Selected IDs (25) = 3, 7, 44, 80, 81, 142, 181, 221, 231, 235, 240, 260, 292, 326, 329, 333, 343, 352, 356, 399, 406, 449, 454, 464, 500.

How to Read the Sample

The calculator picks IDs using your chosen method and a seed, so the same seed gives the same sample. For a school of 500 students and a sample of 25, the sampling fraction is 25 ÷ 500 = 5%, and systematic sampling uses every 20th student after a random start such as 7.

The margin of error shown assumes a proportion of 0.5, the worst case, and a 95% confidence level. The finite population correction reduces it when the sample is a large share of the population.

Where Statistical Sampling Is Used

Survey planning

Draw a random sample of IDs from a list before you start fieldwork.

Systematic sampling

Find the sampling interval and see which IDs are chosen.

Stratified samples

Split the sample across groups in proportion to their size.

Teaching

Show how different methods pick different samples from the same population.

Common Statistical Sampling Mistakes to Avoid

  • A random sample needs a complete list of the population. If the list misses people, the sample is biased.
  • Systematic sampling can go wrong if the list has a repeating pattern that matches the interval.
  • Stratified sampling works best when the groups differ from each other and are similar inside.
  • Record the seed so you can reproduce the sample later.

Statistical Sampling Terms and Definitions

Sampling frame
The list of units from which the sample is drawn.
Stratum
A subgroup of the population sampled separately.

Statistical Sampling FAQs

What is a simple random sample?

It is a sample in which every member of the population, and every possible group of that size, has the same chance of being chosen.

How do I calculate the sampling interval?

Divide the population size by the sample size. For 500 students and a sample of 25, the interval is 20.

What is stratified sampling?

You split the population into groups, called strata, and sample from each one. Proportional allocation takes a share of each stratum equal to its share of the population.

What is the sampling fraction?

It is the sample size divided by the population size, n ÷ N. A sample of 25 from 500 has a fraction of 0.05, or 5%.

Related calculators

Last updated 2026-11-09. See our disclaimer.