Sampling/
Cross-Sectional Survey
Sample Size Estimation, Cross-sectional
How to Calculate Sample Size for a Cross-Sectional Survey
A cross-sectional survey measures a population at a single point in time. This guide explains the underlying statistics first, then shows how to apply them using AnalyZ Solutions.
8 min read
Sample Size Estimation
Beginner friendly
If you are running a household survey, a knowledge attitudes and practice (KAP) study, a coverage survey, or almost any one off data collection exercise, you are running a cross-sectional study. This guide first explains the general formula behind the calculation, then walks through how to apply it in AnalyZ Solutions.
01The general sample size formula
Before opening any tool, it helps to understand what is actually being calculated. For a survey estimating a proportion, the standard formula, often attributed to Cochran, is:
n = Z2 × p(1 − p) / e2
Each part of the formula plays a distinct role.
- Z (confidence level). This reflects how sure you want to be that your estimate falls within the margin of error, across repeated samples. A 95% confidence level, the most common choice in social research, corresponds to Z = 1.96.
- p (expected proportion). This is your best guess at the true value in the population, expressed as a decimal. If you truly do not know, 0.5 is used because it produces the largest possible sample size for any given precision, which makes it the safest assumption.
- e (margin of error). This is how far off your estimate is allowed to be from the true population value. A margin of error of 0.05 on an estimate of 60% means the true value plausibly lies between 55% and 65%.
If your outcome is a numeric average rather than a percentage, for example average household expenditure or average test score, the formula changes shape slightly, because it needs to account for the underlying variability of the measure rather than the variability of a proportion:
n = Z2 × σ2 / e2
Why is 384 such a common number?
If you plug the most conservative, most common assumptions into the proportion formula, 95% confidence, p = 0.5, and a 5% margin of error, the result is:
n = 1.962 × 0.5 × 0.5 / 0.052 = 384.16
Rounded up, this becomes 385, though it is frequently quoted as 384. It shows up so often in published research and survey guidance because it represents the worst case, most defensible default when nothing specific is known about the population. It is not a magic number. It is simply what falls out of the most cautious set of standard assumptions.
02Two further adjustments the basic formula does not include
The formula above assumes a simple random sample from an effectively infinite population, with perfect response. Two common adjustments extend it to more realistic conditions.
Finite population correction
If your population is small, meaning you plan to sample a meaningful share of everyone who exists, the basic formula overestimates the sample you need. The finite population correction adjusts for this:
nadjusted = (n × N) / (n + N − 1)
As N grows large relative to n, this correction has almost no effect, which is why it is usually skipped for large or unknown populations and applied only when the population is small, commonly under a few thousand.
Design effect for cluster and multi-stage sampling
If you plan to sample by group, for example by village, school, or clinic, rather than selecting individuals completely at random, people within the same group tend to be more alike than people picked at random from the whole population. The design effect (DEFF) accounts for this loss of independence:
DEFF = 1 + (m − 1)ρ
A DEFF of 1.8, for example, means the sample needs to be 80% larger than a simple random sample of equivalent precision would require. This is covered in detail in a separate guide, linked at the end of this article.
How to Calculate This in AnalyZ Solutions
AnalyZ Solutions applies all of the formulas above automatically, so there is no need to calculate them by hand. The steps below map directly onto the Cross-sectional calculator in the Sampling module.
- Choose what you are estimating. Select Proportion if your outcome is a percentage or rate, or Mean if it is a numeric average. This determines which formula is applied.
- Set your confidence level and margin of error. Enter these as numbers, not from a fixed list, so any value is possible. For a proportion, also enter the expected proportion, leaving it at 50% if you have no prior estimate. For a mean, enter the expected standard deviation instead.
- Choose how you will select participants. Pick Simple random, Stratified, or Cluster and multi-stage. If you choose Cluster, you can enter a design effect directly, or calculate one automatically from an intraclass correlation and your average cluster size.
- Enter a population size, if relevant. If your population is small enough that the finite population correction should apply, enter it here. Otherwise, leave this field blank. AnalyZ Solutions applies the correction automatically whenever a population size is entered, and skips it otherwise.
- Set your expected non-response rate. This inflates the final recruitment target so that, after accounting for people who do not respond, you still end up with enough completed responses.
- Calculate, and compare confidence levels if useful. After calculating, the interpretation panel explains the result in plain language, and a Compare confidence levels option shows the required sample at several confidence levels side by side.
VIDEO WALKTHROUGH PLACEHOLDER, 90 SECONDS
A short screen recording showing these six steps in the AnalyZ Solutions interface, from opening the Cross-sectional calculator to reading the final result, can be embedded here.
03Worked example
Suppose you are planning a household survey to estimate the percentage of households with an improved water source in a district where you expect coverage to be around 55%, based on a prior assessment. You will sample by village, visiting about 15 households per village.
Inputs
What you are measuringProportion
Confidence level95%
Margin of error5%
Expected proportion55%
Sampling approachCluster
Design effect (DEFF)1.8
Avg. cluster size15
Non-response rate10%
~683
households to recruit, about 46 villages
A simple random sample at the same precision would need only about 380 households. Clustering by village nearly doubles the requirement, which illustrates why the design effect is worth entering carefully rather than left at its default.
04Common mistakes to avoid
- Leaving the design effect at 1 when sampling by cluster. If clusters are used but DEFF is not adjusted, the survey will likely be underpowered.
- Choosing an unnecessarily precise margin of error. A margin of error of 2% sounds better than 5%, but can roughly quadruple the required sample for a level of precision the decision at hand may not need.
- Forgetting non-response until fieldwork begins. Build the inflation into the target from the start, rather than as an emergency addition mid-survey.
- Assuming a large national total covers every subgroup evenly. A proportionate stratified allocation can still leave a small stratum underpowered. If subgroup reporting is needed, use the option for precision within each stratum instead.
Frequently Asked Questions
Why is 384 such a common sample size?
It comes from the most conservative, most widely used set of assumptions: 95% confidence, an expected proportion of 50%, and a 5% margin of error. Plugging these into the standard formula gives 384.16, rounded up to 385. It appears throughout published research not because it is universally correct, but because it is the safe default when nothing specific is known about the population being studied.
What if I do not know the prevalence?
Use 50%. Because p(1 − p) is largest when p equals 0.5, this assumption produces the largest, most conservative sample size for any given confidence level and margin of error. If a prior study or pilot gives a reasonable estimate, using that figure instead can meaningfully reduce the required sample.
Should I always use 95% confidence?
No. 95% is the standard default in social research and evaluation, but it is not a rule. A 90% confidence level is sometimes used for lower stakes, exploratory work where a smaller sample is preferable, while 99% may be appropriate for high stakes decisions where being wrong is especially costly. The right choice depends on how the result will be used, not on convention alone.
What is design effect?
Design effect (DEFF) is a multiplier that accounts for people within the same cluster, such as a village or school, tending to be more alike than people selected completely at random. A DEFF of 1.5 means 50% more sample is needed than a simple random sample of the same precision would require. See the dedicated guide on
Design Effect and ICC for a full explanation.
What is finite population correction?
Finite population correction (FPC) reduces the required sample size when the population being studied is small enough that the sample represents a meaningful share of it. Without this correction, the standard formula assumes an effectively infinite population, which overstates the required sample when that assumption does not hold.
Has finite population correction been included in the AnalyZ Solutions calculation?
Yes. Whenever a population size is entered in the Cross-sectional calculator, the finite population correction is applied automatically to the result. If the population size field is left blank, the calculation proceeds without it, which is the appropriate choice for large or unknown populations.
Do I need a separate calculation for each outcome in my survey?
No. Run the calculation for the outcome that requires the largest sample, typically the one with a proportion closest to 50%, or the tightest margin of error, and that figure will cover the other outcomes measured in the same survey.
Ready to calculate your own sample size?
Open the Cross-sectional calculator in AnalyZ Solutions. Free, browser based.
Try it out
Related Guides