Compute how many classrooms per arm your educational intervention needs: expected effect, class size and ICC with typical education values. With design effect and a methods sentence.
When you assign whole classrooms, what drives power is the number of CLASSES, not pupils. Compute how many classes per arm you need given the expected effect, class size and how alike classmates are (ICC), with typical education values.
All values as proportions (0.10, not 10%). Decimal commas are accepted.
Every step, with its formula and its figures. This is what you will be asked to justify.
The result is classrooms per arm and total classrooms (intervention and control), with the data-contributing pupils they imply: assigning whole classrooms always over-recruits a little. If it comes out at 1-2 classrooms per arm, the calculator warns you: no analysis can separate the intervention from the classroom effect, and the design is confounded from the start. Below it gives the paragraph for your Methods section, with every parameter declared and its references.
The ICC is rarely known precisely, so the committee will want to see how much the study hinges on it. All other parameters stay fixed; pasted into Word, the table keeps its APA rules. For the worked example (d = 0.35, m = 22, power .80, no losses):
| ICC | DE | Pupils/arm | Classrooms/arm | Total classrooms | Total pupils |
|---|---|---|---|---|---|
| .05 | 2.05 | 265 | 13 | 26 | 572 |
| .10 | 3.1 | 400 | 19 | 38 | 836 |
| .15 | 4.15 | 536 | 25 | 50 | 1,100 |
| .20 | 5.2 | 671 | 31 | 62 | 1,364 |
| .25 | 6.25 | 807 | 37 | 74 | 1,628 |
The design effect grows with every pupil you add to an already-recruited classroom, so the new information each extra pupil brings tends to zero. The arithmetic has a ceiling: however many pupils it holds, a classroom never contributes more information than 1/ICC independent pupils. With an ICC of .15, that ceiling is about 7 "effective" pupils per classroom — a class of 22 already contributes about 5, and doubling it to 44 barely lifts that to 6. Going from 22 to 30 pupils per class changes the answer by a classroom or two; going from 20 to 30 classrooms changes the study.
And the limiting case is lethal: with 1 or 2 classrooms per arm, no analysis can separate the intervention from the classroom effect. If class A improves more than class B, you will never know whether it was your program or that teacher, that group, that time slot: intervention and classroom are confounded by design, and no later statistical model fixes it. If your study is heading there, rethink the design rather than forcing the analysis: it is exactly the kind of problem we solve in the education research consulting service.
You want to evaluate a reading-comprehension program in fifth grade against usual teaching. You expect a d of 0.35 — a large effect for education (Kraft, 2020) —, each classroom contributes about 22 pupils with consent and completed measures, and you take the medium academic-achievement ICC, .15 (Hedges & Hedberg, 2007). Two-tailed test with α = .05 and 80% power.
The contrast that explains everything: if classmates did not resemble each other at all (ICC = 0), the design effect would be 1 and 129 / 22 = 5.86 → 6 classrooms per arm would do. From 6 to 25 classrooms, neither d, nor power, nor pupils per classroom changed: only the fact that pupils come in groups that are alike on the inside. Ignoring the ICC does not make the study cheaper; it makes an underpowered study look sufficient on paper.
Individual n per arm n = 2·((z₁₋α/₂ + z_power) / d)², rounded up (Cohen, 1988). This is the classic normal approximation, without the t correction: the planning standard, which with very small samples understates n by 1-2 participants — irrelevant once inflated for clustering.
Design effect DE = 1 + (m − 1)·ICC, where m is the number of data-contributing pupils per classroom (Donner & Klar, 2000). The inflated n is ceil(n × DE); losses are applied next, n/(1 − rate), and only then is it divided by m: classrooms per arm = ceil(n/m).
ICC presets The 0.10, 0.15 and 0.20 values come from Hedges and Hedberg (2007), who document academic-achievement ICCs typically between 0.10 and 0.25 in US data. For attitudinal outcomes (motivation, climate, well-being) the ICC is usually lower, 0.05-0.10, worth saying when justifying the chosen value.
Normal quantiles come from Acklam's rational algorithm (relative error < 1.15e-9), equivalent to R's qnorm(). The implementation is verified against the cases d = 0.35, α = .05, power = .80 → 129 per arm (and, with m = 22 and ICC = .15, 536 pupils and 25 classrooms per arm) and d = 0.5, power = .90 → 85 per arm.
A published one, declared, and on the high side. For academic achievement, Hedges and Hedberg (2007) document typical values between 0.10 and 0.25: the medium preset (0.15) is a defensible starting point, and the high one (0.20) the prudent choice. For attitudinal outcomes 0.05-0.10 usually suffices. And since you will never know it precisely, attach this page’s sensitivity table: it shows the committee what would happen under every plausible ICC, which is exactly what they will ask.
No: it is the pupils who CONTRIBUTE data, always fewer than those enrolled. Between consent forms that never come back, absences on testing day and incomplete questionnaires, a class of 25 usually leaves 20-22 analysable pupils. Enter the room capacity and the calculation will tell you that you need fewer classrooms than you truly do — an error that stays hidden until analysis, when nothing can fix it. Estimate m from the realistic consent rate in your context and use the losses field for what will drop after the pretest.
No. The multilevel model is the CORRECT way to analyze nested data, but it analyses the information the design collected, not the information it wishes it had: power is set by the number of classrooms, and the degrees of freedom for the intervention effect go with classrooms, not pupils. A study with 4 classrooms per arm and 800 pupils is still a small study with many repeated measures of the same handful of groups. The Donner and Klar (2000) design effect is precisely how you plan for that analysis: if the inflated n fits, the multilevel model will have something to work with.
The same calculator works, changing what the cluster is: m becomes the data-contributing pupils per SCHOOL and the ICC the school-level one, usually smaller than the classroom-level one because different classes within a school resemble each other less than desk mates do. The trade-off is logistics: every lost cluster costs m pupils at once, and losing a school hurts far more than losing a classroom. Assign at the level where the intervention truly operates — if it is the teacher’s, the cluster is the classroom; if it is the school’s (a policy, a playground program), the school.