Andrew Gelman famously observed that “you need 16 times the sample size to estimate an interaction than to estimate a main effect.” His rule compares a simple treatment effect to a two-way interaction (i.e., a difference in treatment effects).
This raises two questions:
What is the analogous rule for a three-way interaction (i.e., a difference in two-way interactions)?
What is the general rule for a k-way interaction?
The answers are probably what you expect, but working through them is fun and perhaps useful.
The Baseline
First, let’s consider the simple treatment effect.
Our experiment has two groups (i.e., cells) and a mean for each group. Let’s write the mean for the treatment group as μT and the mean for the control group as μC, so that the treatment effect is τ = μT − μC. We estimate each mean μ with the sample mean μ̂, so the estimator for the treatment effect is the difference in sample means μ̂T − μ̂C.
Let’s assume a common variance σ2 and sample size n in each group. Let’s also assume independent means.
The variance for the estimated treatment effect is
To obtain 80% power, the ratio of the treatment effect to the standard error (SE) of its estimate must be 2.5. We’ll call this the key ratio (i.e., Bloom’s rule, see Bloom (1995, pp. 548–550) and Rainey (2026, pp. 14–15)).
The 2.5 will not be important as we work through this. What will be important is that we need to keep the key ratio constant as we move from two-way to k-way interactions.
Putting the variance and the key ratio together, we have an important baseline, which we’ll compare to the two-way, three-way, and k-way interactions.

Gelman’s 16× Rule
Let’s extend our work to a two-way interaction. In a “two-way interaction,” we have two factors, each with two levels, so we have 22 = 4 groups.
Respondents are assigned to one of four groups: TT, TC, CT, or CC.
The quantity of interest is no longer a treatment effect. Instead, it’s a difference in treatment effects.
The subscript “2” attached to τ indicates two differences.
As above, we estimate each of these four means μ with the sample mean μ̂, so
To obtain 80% power, the same rule applies. We need
But the ratio has changed in three important ways, and each change requires a larger sample:
2× for more groups: The number of groups has grown from two to four, so we mechanically need to double the sample size just to keep the same number of respondents per group. The required sample size is 2 times larger (so far).
2× for more noise: Notice something important: the variance for the simple treatment effect τ has only two σ2, while the variance for the two-way interaction τ2 has four σ2. Thus the variance is now twice as large, even though the sample size per group is the same. We need to shrink the variance by half. Because the variance is inversely proportional to the sample size, doubling the sample size does exactly that. The required sample size is now 4 times larger (twice the groups and twice the sample size in each group).
4× for a smaller effect: But there’s no reason to think that the interaction τ2 will be the same size as the simple treatment effect τ. Indeed, we should expect it to be smaller. Gelman suggests half the size, so that τ2 = (1/2)τ. This shrinks the numerator in the key ratio by half—we need to shrink the denominator by half to keep up. But the SE shrinks with the square root of the sample size, so halving the SE takes 4 times the sample size! (The 16× rule depends heavily on this assumption!) The required sample size is now 2 × 2 × 4 = 16 times larger.
The equation below shows how the key ratio changes as we move from the baseline to a two-way interaction.
Generalizing to a Three-Way Interaction
Let’s extend our work to a three-way interaction. In a “three-way interaction,” we have three factors, each with two levels, so we have 23 = 8 groups.
Respondents are assigned to one of eight groups: TTT, TTC, TCT, …, CCC (you get the idea).
Let’s define the quantity of interest as
The subscript “3” attached to τ indicates three differences.
As above, we estimate each of these eight means μ with the sample mean μ̂, so
To obtain 80% power, the same rule applies. We need
But the ratio has changed in three important ways, and each change requires a larger sample:
4× for more groups: The number of groups has grown from two to eight, so we mechanically need to quadruple the sample size just to keep the same number of respondents per group. The required sample size is 4 times larger (so far).
4× for more noise: The variance for the simple treatment effect τ has only two σ2, while the variance for the three-way interaction τ3 has eight σ2. Thus the variance is now four times as large, even though the sample size per group is the same. We need to shrink the variance by 75%. Because the variance is inversely proportional to the sample size, quadrupling the sample size does exactly that. The required sample size is now 16 times larger (four times the groups and four times the sample size in each group).
16× for a smaller effect: But there’s no reason to think that the interaction τ3 will be the same size as the simple treatment effect τ or the two-way interaction τ2. Instead, it makes sense to assume it is half the size of τ2, so that τ3 = 1/2 × 1/2 × τ = (1/4)τ. This shrinks the numerator in the key ratio to one quarter, so we need to shrink the denominator to one quarter to keep up. But the SE shrinks with the square root of the sample size, so cutting the SE to one quarter takes 16 times the sample size! The required sample size is now 4 × 4 × 16 = 256 times larger.
The equation below shows how the key ratio changes as we move from the baseline to a three-way interaction.
Generalizing to a k-Way Interaction
Let’s review the pattern carefully.
More groups
For the two-way interaction, we had 2× the number of groups. To keep the sample size per group the same, we needed to 2× the total sample size. This is a purely mechanical effect of adding groups.
For the three-way interaction, we had 4× the number of groups. To keep the sample size per group the same, we needed to 4× the total sample size.
For the k-way interaction, we have 2k − 1 × as many groups. To keep the sample size per group the same, we need to 2k − 1 × the total sample size.
More noise
For the two-way interaction, we had 2× the noise (i.e., 2× the number of σ2 in the denominator). Thus we needed to 2× the sample size.
For the three-way interaction, we had 4× the noise (i.e., 4× the number of σ2 in the denominator). Thus we needed to 4× the sample size.
For the k-way interaction, we have 2k − 1 × the noise (i.e., 2k − 1 × the number of σ2 in the denominator). Thus we need to 2k − 1 × the sample size.
Smaller effect
For the two-way interaction, we had 1/2τ. Thus we needed to 4× the sample size.
For the three-way interaction, we had 1/4τ. Thus we needed to 16× the sample size.
For the k-way interaction, we have 1/(2k − 1)τ. Thus we need to 4k − 1 × the sample size.
Putting this together, a k-way interaction needs 2k − 1 ×, 2k − 1 ×, and 4k − 1 × the sample size. This is 2k − 1 × 2k − 1 × 4k − 1 = 16k − 1. So, in general, “you need 16k − 1 times the sample size to estimate a k-way interaction than to estimate a main effect.”
The pattern is clear. The equation below shows how the key ratio changes as we move from the baseline to a k-way interaction.
To make the pattern concrete, the table below gives the total sample size for k from one through five, assuming the simple treatment effect needs 500.
A Wrap
This is mostly an exercise in theory. Very few papers (but some!) are estimating three-way interactions. And we’ve made strong assumptions about how the size of the effect shrinks as we increase the order of the interaction.
Nonetheless, I think this exercise highlights an important lesson: experiments are not truth machines that can answer any question you pose. Instead, experiments are noise machines—learning from them requires intentionally and carefully reasoning about and through the noise.





