Sample Size Calculator for Evals
Work out how many examples an eval set needs before a difference between two prompts or two models means anything.
Both variants run on all 434. This is a paired design, so that is 434 examples, not 868.
- z for the confidence level (two-sided)
- 1.960
- z for the power (one-sided)
- 0.842
- Disagreements favouring the new variant (π₁₀)
- 13.00%
- Disagreements favouring the old one (π₀₁)
- 7.00%
- Difference being detected (δ = π₁₀ − π₀₁)
- 6.00%
- Expected disagreements at that sample size
- 87
Everything on this page runs in your browser. Nothing you paste is uploaded, logged, or put in the URL — only the settings above the input are, so a configured tool can be linked to.
Why the paired number is so much smaller
The instinct with two model versions is to score each on the eval set and compare the two accuracies with a two-proportion test. That throws away the strongest fact you have: both variants saw the same examples. Every example where they agree — both right, or both wrong — tells you nothing about which is better, and a paired test simply ignores them. What is left is the disagreements, and the question shrinks to whether they split evenly.
That is why the disagreement rate is the field that moves this calculator most. Two variants that disagree on 2% of examples need an enormous eval to separate; two that disagree on 30% need a small one, even if their headline accuracies are close. If you do not know your disagreement rate, run both on whatever you have and count — it is a cheaper measurement than the one you are sizing.
The number this cannot give you
Statistical significance is not importance. An eval large enough to prove a 1-point difference is real does not tell you a 1-point difference is worth a migration, and the reverse trap is worse: an eval set of 40 hand-written examples will happily show a 10-point swing that is entirely noise. If your result sits near the boundary, the honest move is more examples, not a different test. And a difference you found by testing twenty variants against one eval set will not survive contact with production — that is the multiple-comparisons problem, and no sample size fixes it.