Opens in a new tab

CALCULATOR · SAMPLE SIZE & POWER

Design Effect Calculator and Cluster Sample Size

Enter the intracluster correlation, the average cluster size and the sample size you would need without clustering. The design effect, the inflated sample and the number of clusters per arm update as you type. Nothing you enter leaves your browser.

Runs in your browser. No data is sent or stored.

Method reviewed by an in-house statistician · Last checked November 2026

In Short

A design effect calculator shows how much a clustered design inflates the sample size you would need if every participant were independent. Participants in the same clinic, classroom or household resemble each other, measured by the intracluster correlation (ICC), and the more of them share a cluster, the less each one adds. The calculator multiplies your individual-level sample size per arm by the design effect, converts the result into the number of clusters per arm and reports the participants actually enrolled. The result is an approximate first estimate, not a final plan.

How It Is Calculated

With equal cluster sizes, the design effect depends on the ICC and the average cluster size (Kish, 1965; Donner & Klar, 2000):

FORMULA

DEFF = 1 + (m − 1) · ρ

ρ = intracluster correlation (ICC) · m = average cluster size.

When the clusters differ in size, the coefficient of variation of cluster size (cv) enters (Eldridge et al., 2006):

FORMULA

DEFF = 1 + [ (cv² + 1) · m − 1 ] · ρ

The inflated sample, the clusters per arm and the participants actually enrolled follow:

FORMULA

n_cluster = n_ind · DEFF k = n_cluster / m enrolled = k · m each rounded up

n_ind = individual-level sample size per arm (for example from the sample size calculator) · n_cluster = inflated sample per arm · k = clusters per arm. If dropout is entered, it inflates n_cluster before the division by m, since attrition is assumed at the participant level.

Multiplying the individual sample size by the design effect is an approximate first estimate. With few clusters (fewer than about 15 per arm) the analysis loses degrees of freedom and the power falls below the nominal value. Definitive planning uses a small-sample correction, the analysis-specific method, or simulation.

Assumptions and When Not to Use It

  • Equal cluster sizes unless you enter cv. Unequal cluster sizes raise the design effect, and the calculator uses the coefficient of variation when you give it.
  • A two-arm parallel design. The calculation inflates the sample per arm. Stepped-wedge, crossover and multi-arm cluster designs need their own methods.
  • An ICC with a source. The ICC comes from the literature or a pilot study, and the page asks you to name it. A small ICC still matters when clusters are large.
  • An individual-level n from the right calculation. The starting n_ind is the sample size per arm for an independent design; use the Sample Size Calculator for Research Studies.
  • Few clusters. With fewer than 4 clusters per arm the calculator warns that the analysis is fragile. See Linear Mixed Models (Multilevel Modeling).
  • Valid inputs. The average cluster size must be above zero. Otherwise the calculator returns a message, not a number.

Worked Example (Hypothetical Values)

A cluster-randomized trial would need 128 participants per arm if participants were independent. The team expects an ICC of 0.05 and clusters of about 20 participants.

Input or result Value
Intracluster correlation, ρ 0.05
Average cluster size, m 20
Individual-level n per arm 128
Design effect 1.95
Inflated sample per arm 250
Clusters per arm 13
Participants actually enrolled 260

Clustering raises the requirement from 128 to 250 participants per arm, and rounding to whole clusters brings the enrolled number to 260. Press “Load the worked example” under the calculator and these values fill the fields. HYPOTHETICAL VALUES.

What the Result Still Needs

  1. 1
    A sourced ICC. From a published study with the same outcome and kind of cluster, or from a pilot, cited in the protocol.
  2. 2
    A realistic cluster size. The average number of participants who will actually be analyzed per cluster, with its variation if the sizes differ.
  3. 3
    Enough clusters. The number of clusters per arm judged against the fragility warning, with a small-sample correction or simulation when it is low.
  4. 4
    The analysis planned for the clustering. The analysis model, which accounts for clusters, is named in the protocol and matches the assumptions behind the sample size.
  5. 5
    A justification paragraph for the protocol. The design effect, the inputs with their sources and the final number of clusters and participants.
Have the inputs confirmed

A statistician checks the ICC and the cluster size against your sources, plans the number of clusters for your exact design and returns the justification paragraph you can paste.

Research Planning & Study Design
Already have a calculation?

Independent Statistical Review confirms a sample size calculation prepared by you, a colleague or an AI tool before it goes to a committee.

Independent Statistical Review

Frequently Asked Questions

From the literature for the same outcome and type of cluster, or from a pilot study, and the page asks you for the source. An ICC taken from a different outcome or setting can mislead the design effect. Cite it in the protocol, and show how the result changes if it is larger.

The clusters per arm are rounded up to whole clusters, and the enrolled number is the number of clusters times the cluster size. In the worked example, 250 becomes 13 clusters and 260 participants. Report the enrolled number in the protocol.

With fewer than 4 clusters per arm, the calculator warns that the analysis is fragile. With fewer than about 15 per arm, the analysis loses degrees of freedom and power falls below the nominal value. Definitive planning then uses a small-sample correction, the analysis-specific method, or simulation.

Dropout, if you enter it, inflates the clustered sample before the division by the cluster size, because attrition is assumed at the participant level. The enrolled number then reflects both the clustering and the attrition.

The design effect grows with the cluster size as well as the ICC. In the worked example, an ICC of 0.05 with clusters of 20 gives a design effect of 1.95, nearly doubling the sample. Do not ignore a small ICC when clusters are large.

References

  1. Donner, A., & Klar, N. (2000). Design and analysis of cluster randomization trials in health research. Arnold.
  2. Eldridge, S. M., Ashby, D., & Kerry, S. (2006). Sample size for cluster randomized trials: Effect of coefficient of variation of cluster size and analysis method. International Journal of Epidemiology, 35(5), 1292-1300. https://doi.org/10.1093/ije/dyl129
  3. Kish, L. (1965). Survey sampling. Wiley.
i

Method reviewed by an in-house statistician · Last checked November 2026 · Test cases and boundary cases verified before release

Found an error or have a suggestion? Write to info@onlinespss.com with the calculator name and the inputs you used. Every report is checked by a statistician.

Have a Statistician Confirm Your Cluster Sample Size

Share the study aim, the outcome and the sources for your ICC and cluster size. A statistically trained Research Coordinator reviews the request, and the scope and one fixed project fee are confirmed before work begins.

No Commitment Required

Strictly Confidential

Fixed Project Fee

In-House PhD-Level Statisticians

Same-Day Response