šŸ“Š FormStat
FormStat Guides Ā· By Abdul Hannan

How to Calculate Sample Size for a Cross-Sectional Study (With Free Calculator)

If you are planning a cross-sectional study — for example, a survey on dengue awareness in your city — the first question your supervisor or ethics committee will ask is: "What is your sample size, and how did you calculate it?" This article shows you exactly how to answer, step by step, with a worked example and a free calculator. No laptop or SPSS needed.

Why Sample Size Matters

Sample size is simply the number of people (or households, or patients) you need to include in your study. Getting it right matters for three reasons:

Every cross-sectional study should report how its sample size was calculated. It usually goes in the methodology section in one or two lines — and this article gives you everything you need to write those lines.

The Formula, in Simple Words

The standard formula used for a cross-sectional study (the same one the well-known OpenEpi calculator uses) is:

n = [DEFF Ɨ N Ɨ p(1āˆ’p)] / [(d²/Z²)(Nāˆ’1) + p(1āˆ’p)]

It looks scary, but each letter has a simple meaning:

Worked Example: n = 384

Let us calculate the sample size for a dengue awareness survey in a city:

Plugging into the formula:

n = [1.0 Ɨ 1,000,000 Ɨ 0.50 Ɨ 0.50] / [(0.05² / 1.959964²) Ɨ 999,999 + 0.50 Ɨ 0.50]
n = 250,000 / 651.02 = 384

So you need 384 participants. In your methodology section you would write: "The sample size of 384 was calculated using the single-population proportion formula with 95% confidence level, 5% margin of error, 50% anticipated frequency, and design effect of 1.0."

Sample Size at Different Confidence Levels

Using the same inputs, here is what the required sample size looks like if you change the confidence level:

Confidence levelRequired sample size (n)
80%165
90%271
95%384
97%471
99%664
99.9%1082
99.99%1512

Higher confidence demands a bigger sample. For most student research, 95% is the standard.

What If Your Population Is Small?

The formula above already includes the finite population correction — that is the (Nāˆ’1) part. Its job is simple: if your total population is small, you do not need as big a sample. Watch what happens with the same p = 50%, d = 5%, DEFF = 1:

Population size (N)Required sample size (n)
1,000,000384
10,000370
1,000278
500218

For example, if you are studying all 500 households in a small town, you only need 218 of them — not 384. Rule of thumb: if your population is under a few thousand, always enter the real N instead of leaving it at 1,000,000.

Adjusting for Non-Response

In real life, some people refuse to answer or leave questions blank. If you expect a 10% non-response rate, inflate your sample size like this:

Final n = calculated n Ć· (1 āˆ’ non-response rate)

Example: 384 Ć· (1 āˆ’ 0.10) = 384 Ć· 0.90 = 427. So you would approach 427 people, expecting about 384 complete responses. Always round up, never down.

Quick Checklist Before You Start Collecting Data

  1. Write down your N, p, d, DEFF, and confidence level — and why you chose each value.
  2. Calculate n with the formula (or the free calculator below).
  3. Add your non-response adjustment.
  4. Write the one-line justification for your methodology section.
  5. Only then start collecting data — never the other way round.

Try the Free Calculator

Doing this by hand is good practice once, but you do not need to do it every time. Try the free FormStat sample-size calculator — enter your N, p, d, and DEFF, and get the sample size for every confidence level instantly, right on your phone. No laptop needed.

Try it yourself — free.
Run this analysis in seconds with the FormStat app. No signup, no laptop, works offline.

← All guides