Slovin's Formula Calculator

Use this for finite populations with a known total number of individuals.

Compute Your Sample Size
Fill in your population size and desired margin of error below.
The total number of people or items in your study population.
0.05 is the most accepted standard in social science research.
Required Sample Size

Stratified Sampling Calculator

Distribute your total sample proportionally across population subgroups (e.g., grade levels, departments, sections).

Proportional Stratified Allocation
Enter each stratum name and its population count. The calculator will distribute your total sample proportionally.
Use Slovin's Calculator first to get this number.
Add one row per stratum (subgroup).
Stratum Name Sub-population
Stratum Sub-population (Ni) Proportion (Ni / N) Sample (ni)

What is Sample Size?

Everything a student needs to know before computing their sample — explained clearly.

Definition

The sample size is the number of individuals or units selected from a total population to participate in a study. Rather than surveying everyone (which is costly and time-consuming), researchers use a representative sample to draw conclusions about the whole population.

Why It Matters

An undersized sample produces unreliable, misleading results. An oversized sample wastes time and resources. A properly computed sample size balances statistical rigor with practical feasibility.

Population vs. Sample

Population (N): The entire group you want to study (e.g., all 800 students in a school).

Sample (n): The subset you actually survey (e.g., 267 students selected from those 800).

Margin of Error

The margin of error (e) tells you how much your sample result might differ from the true population value. A 5% margin (e = 0.05) means your findings could vary by plus or minus 5%. A smaller margin requires a larger sample.

Slovin's Formula — The Standard for Finite Populations
n = N / (1 + N * e²)
n = the required sample size (what you are solving for)
N = total population size (known value)
e = margin of error, expressed as a decimal (e.g., 0.05 for 5%)
= e multiplied by itself (e.g., 0.05 x 0.05 = 0.0025)

Confidence Level & Margin of Error

The two are directly linked — choose based on your study's required precision.

Margin of Error (e) Confidence Level Common Usage Sample Tendency
0.01 (1%)99%Medical / High-stakes researchVery large sample required
0.02 (2%)98%Policy research, Demographic studiesLarge sample required
0.05 (5%)95%Social science, Thesis, SurveysModerate — most common
0.10 (10%)90%Exploratory or pilot studiesSmaller sample acceptable
Standard recommendation for student researchers: Use e = 0.05 (5% margin of error, 95% confidence level) unless your research adviser or discipline specifies otherwise. This is universally accepted in thesis, dissertations, and academic surveys.

Types of Sampling

Simple Random Sampling

Every member of the population has an equal chance of being selected. Used when the population is homogeneous. Slovin's formula directly gives you n for this method.

Stratified Proportional Sampling

The population is divided into subgroups (strata) such as year level, department, or gender. The total sample n is distributed proportionally so that each stratum is fairly represented.

Systematic Sampling

Every k-th person from a list is selected, where k = N / n. For example, if N = 800 and n = 267, select every 3rd person from a numbered list of the population.

Purposive Sampling

Respondents are chosen deliberately based on specific criteria relevant to the research. Common in qualitative research. Slovin's formula does NOT apply here.

Step-by-Step Guide

Follow this walkthrough to understand exactly how the calculation is done by hand.

Example 1: Using Slovin's Formula — N = 800, e = 0.05
1
Identify your values.
Population N = 800. Margin of error e = 0.05 (standard 5%).
2
Square the margin of error.
e² = 0.05 x 0.05 = 0.0025
3
Multiply N by e².
N x e² = 800 x 0.0025 = 2.0
4
Add 1 to that product.
1 + 2.0 = 3.0
5
Divide N by the denominator.
n = 800 / 3.0 = 266.67
6
Round UP to the nearest whole number.
n = 267 respondents — Always round up to ensure sufficient sample coverage.
Example 2: Stratified Proportional Allocation — n = 267, N = 800

Suppose your 800-person population is composed of 3 departments. You need to fairly distribute the 267 respondents.

1
List each stratum and its population size.
Department A: 300  |  Department B: 250  |  Department C: 250  →  Total: 800
2
Compute each stratum's proportion.
Dept A: 300 / 800 = 0.375   Dept B: 250 / 800 = 0.3125   Dept C: 250 / 800 = 0.3125
3
Multiply each proportion by the total n = 267.
Dept A: 0.375 x 267 = 100.13 ≈ 101
Dept B: 0.3125 x 267 = 83.44 ≈ 83
Dept C: 0.3125 x 267 = 83.44 ≈ 83
4
Verify the sum equals total n.
101 + 83 + 83 = 267 — Confirmed. Minor rounding adjustments are acceptable.
Important Rounding Rule: In Slovin's formula, always round up (ceiling), never round down. If your result is 266.1, your sample is 267 — not 266. Rounding down reduces precision below your stated margin of error. In stratified sampling, individual strata may be rounded normally, but ensure the total matches or exceeds the computed n.

Common Mistakes to Avoid

Rounding Down

Never round down your final sample size. A result of 266.2 becomes 267, not 266. Rounding down invalidates your margin of error.

Using % Instead of Decimal

The formula requires a decimal for e. Write 0.05, not 5. Using e = 5 instead of 0.05 will produce a wildly incorrect result.

Wrong Population Count

Use the TOTAL accessible population, not an estimate or a subset. If your population is all enrolled students, count all of them as N.

Stratified Total Mismatch

After distributing proportionally, the sum of all strata samples must equal your total n. Always check this. Adjust the largest stratum by +1 or -1 if rounding causes a discrepancy.