What this calculator does
This CUPED calculator quantifies how much faster your experiments could run if you used pre-experiment data to cancel noise. Enter the correlation ρ between your metric and a pre-experiment covariate (and optionally your planned sample size), and it returns the variance reduction, the effective sample size multiplier, and the concrete savings: how many visitors — and how many weeks — CUPED would shave off your test.
Variance reduction is the most underused lever in A/B testing: teams agonize over traffic they cannot increase while ignoring variance they could remove for free.
The math
Let be your metric and a covariate measured before the experiment. CUPED replaces with the adjusted metric:
Because predates assignment, it is independent of treatment, so the expected difference between arms is untouched — but the variance becomes:
where is the correlation between and . Since required sample size is proportional to variance, a test that needed visitors needs only after CUPED.
A worked example
Your revenue test needs 200,000 users per arm (from the sample size calculator) — ten weeks at your traffic. Last-4-weeks revenue per user correlates with in-experiment revenue at ρ = 0.65 for your returning users. CUPED removes ρ² = 42% of the variance, so the requirement drops to 200,000 × 0.58 = 116,000 users per arm — about 5.8 weeks instead of 10. Same decision quality, four weeks sooner, using data you already have.
When to use it
- Products with returning users and metrics that persist per user (revenue, engagement, retention proxies).
- High-variance metrics like revenue per visitor, where tests are painfully long — combine with the RPV calculator.
- When the MDE calculator says your target effect needs more weeks than stakeholders will tolerate.
Common mistakes
- Using a covariate measured during the experiment. This is the one fatal error: anything the treatment can influence will bias the treatment effect estimate itself, not just the variance. The covariate window must end at assignment.
- Expecting magic for new-user experiments. No pre-period data means ρ ≈ 0 and no gain. CUPED complements, not replaces, traffic planning for acquisition tests.
- Estimating θ separately per arm. Estimate it once on pooled data; per- arm estimates reintroduce bias.
- Shopping among covariates after seeing results. Trying five covariates and reporting the most flattering adjustment is p-hacking in a variance-reduction costume. Pre-register the covariate.
- Overstating ρ. Measure the correlation on recent historical data for the exact population and window you will use — do not borrow a number from a blog post (including this one).