Sample Size and Power Calculator

Choose a confidence level and enter the expected proportion, margin, population, SD and power to get survey sample sizes, two-group sizes and the margin of error you have.

Berjalan dalam pelayar anda. Fail anda tidak pernah meninggalkan peranti. Lihat cara menyemaknya

…

Cara melakukannya

  1. 1
    Choose confidence

    90, 95 or 99 %.

  2. 2
    Enter proportion and margin

    Expected p and E.

  3. 3
    Enter population

    If small.

  4. 4
    Enter SD, margin and power

    For means and two groups.

  5. 5
    Read sample sizes

    And the margin of error.

Tentang alat ini

How many people do you need to survey, or how many participants per group to detect a difference? Too few and results are uncertain or miss real effects; too many wastes time and money. This calculator applies the standard formulas: for estimating a proportion or a mean to a given margin of error, with a correction for small populations, and for comparing two groups with a chosen power.

Who this is for

Students planning theses, survey researchers, market researchers, clinicians and quality engineers.

Estimating a proportion

n = z² p(1 − p) / E², with z = 1.96 for 95 % confidence and E the margin of error. Without prior information, use p = 0.5, which gives the largest n: 385 for ±5 %, 1068 for ±3 %, 9604 for ±1 %.

Finite populations

When sampling a large share of a small population, apply n' = n / (1 + (n − 1)/N). For a population of 1000, ±5 % needs 278 instead of 385.

Estimating a mean

n = (z σ / E)², with σ the expected SD from a pilot study or literature.

Comparing two means

To detect a difference Δ with SD σ, significance α and power 1 − β, each group needs n = 2(z₁₋α/₂ + z₁₋β)² σ² / Δ². With α = 0.05, power 80 %, σ = 10 and Δ = 5, that is 63 per group.

Comparing two proportions

The calculator uses the Fleiss formula without continuity correction. Detecting 30 % against 45 % with 80 % power needs 163 per group.

Margin of error you have

For an existing sample n, E = z √(p(1 − p)/n): 400 respondents give about ±4.9 % at 95 %.

Power

Power is the probability of detecting an effect if it exists. 80 % is common; 90 % for confirmatory studies.

Good practice

Plan for non-response and dropouts by inflating n. Sample size depends on the smallest effect worth detecting, decided before the study.

Why bigger is not always better

Halving the margin of error requires four times the sample, so precision becomes expensive quickly. A well-chosen sample of 1000 represents a country of millions as well as a city, if it is random; size cannot fix a biased sampling method.

Response rates

If you expect 40 % of people to respond, divide the needed sample by 0.4 to find how many to contact: 385 completed surveys need about 963 invitations.

Pilot studies or earlier published studies help estimate σ realistically.

Worked example

At 95 % confidence with p = 0.5 and E = 5 %, n = 385. A study comparing means with σ = 10 and Δ = 5 at 80 % power needs 63 per group; comparing 30 % with 45 % needs 163 per group. A sample of 400 has a margin of error of ±4.9 %.

Limits

Simple random sampling; cluster or stratified designs need design effects. Not a substitute for professional statistical advice.

Contoh berselesaian

385 respondents give ±5 % at 95 % confidence.

Ringkasnya

Soalan lazim

How many people do I need for a survey?

About 385 for ±5 % at 95 % confidence, fewer for small populations.

Why use p = 0.5?

It gives the largest, safest sample size.

What is the finite population correction?

It reduces n when the sample is a large share of the population.

What power should I use?

Usually 80 % or 90 %.

What margin of error does my sample have?

z√(p(1 − p)/n); 400 respondents give about ±4.9 %.

Is my data stored?

No. Everything is calculated in your browser.

Percuma sepenuhnyaTiada bayaran, tiada pendaftaran
Fail kekal peribadiSemuanya berjalan dalam pelayar anda
Mudah dalam bahasa andaTersedia dalam banyak bahasa