A/B Test Duration Calculator

A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call

Free A/B test duration calculator. From your baseline conversion rate, the smallest lift worth detecting and daily traffic, find the sample size and days to run.

Visitors per version
0
Visitors in total
0
Full weeks
0
Conversion rate to detect
0

Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.

How to use the A/B test duration calculator

  1. Enter your baseline conversion rate: the current conversion rate of the page or email you're testing.
  2. Enter the smallest relative lift you want to detect, the minimum detectable effect. A 15% lift on a 4% conversion rate means detecting a change to 4.6%.
  3. Enter the visitors a day who will enter the test, across all versions.
  4. Enter the number of versions, including the original. A standard A/B test has 2.
  5. Choose confidence and power. 95% confidence and 80% power are common defaults.
  6. Read the result: the visitors needed per version and in total, and how many days and full weeks the test must run.

The A/B test duration calculator runs in your browser. Use it before starting a test, so you know whether the test is realistic.

The formula

The calculator uses the standard sample size formula for comparing two proportions:

n = (z₁₋α/₂ + z₁₋β)² × [p₁(1 − p₁) + p₂(1 − p₂)] ÷ (p₂ − p₁)²

Where:

  • n is the visitors needed in each version;
  • p₁ is the baseline conversion rate;
  • p₂ is the rate you want to detect: p₁ × (1 + lift);
  • z₁₋α/₂ depends on confidence: 1.645 for 90%, 1.960 for 95%, 2.576 for 99% (two-sided);
  • z₁₋β depends on power: 0.842 for 80%, 1.282 for 90%.

Then:

  • Total visitors = n × number of versions
  • Days = total visitors ÷ visitors a day, rounded up
  • Weeks = days ÷ 7, rounded up

A worked example

A landing page converts at 4%. The team wants to detect a 15% relative lift (to 4.6%), with 2,000 visitors a day split between 2 versions, at 95% confidence and 80% power.

  • p₁ = 0.04, p₂ = 0.046
  • (1.96 + 0.8416)² = 7.849
  • p₁(1 − p₁) + p₂(1 − p₂) = 0.0384 + 0.04388 = 0.08228
  • (p₂ − p₁)² = 0.000036
  • n = 7.849 × 0.08228 ÷ 0.000036 ≈ 17,941 visitors per version
  • Total: 35,882 visitors
  • Days: 35,882 ÷ 2,000 = 17.9, so 18 days, or 3 full weeks

Running for three full weeks covers every day of the week three times, which smooths out weekday and weekend differences.

Why the minimum detectable effect matters most

The smallest lift you want to detect has the biggest effect on test length, because the required sample grows with the square of the difference. Halving the lift roughly quadruples the sample:

Lift to detect (on a 4% baseline) Visitors per version
30% about 4,800
15% about 17,900
7.5% about 69,400

This is why low-traffic sites struggle to test small changes such as button colours. They can still test big changes: a new offer, a different page layout, a new headline that changes the message. Big changes produce big effects, or none.

Confidence and power

  • Confidence (1 − α): how sure you want to be that a "winner" isn't a false positive. At 95%, there's a 5% chance of declaring a difference when there isn't one.
  • Power (1 − β): the chance of detecting the lift if it really exists. At 80%, a real lift of the size you chose will be missed 20% of the time.

Higher confidence and power both need more visitors. 95% and 80% are widely used defaults.

Rules for reliable tests

  1. Decide the sample size before starting, and don't stop early just because one version is ahead. Checking results repeatedly and stopping at the first "significant" moment greatly increases false positives.
  2. Run for full weeks, so every weekday is covered. Most experts suggest at least one or two weeks even with huge traffic.
  3. Avoid unusual periods, such as major sales or holidays, unless that's what you're testing.
  4. Split traffic randomly and evenly, and make sure each visitor always sees the same version.
  5. Test one main change so you know what caused the result.
  6. Measure the metric that matters: sales or leads rather than clicks, if you can.

When the test ends, the A/B test calculator checks whether the result is statistically significant.

More than two versions

Testing several versions (A/B/n) needs more total traffic, because each version needs its own sample. Comparing several versions also raises the chance of a false positive somewhere. For many sites, a simple A/B test is the most practical choice.

Testing in Google Ads

Google Ads has built-in experiments for testing bidding strategies, campaign settings and landing pages, splitting traffic or cookies between the original and the trial. The same logic applies: the smaller the difference you want to detect, the longer the experiment must run. Low-volume campaigns often need several weeks. Google Ads reports confidence for experiment results.

Glossary

  • Baseline conversion rate: the current rate before the test.
  • Minimum detectable effect (MDE): the smallest change the test is designed to detect.
  • Relative lift: the change as a percentage of the baseline (4% to 4.6% is a 15% relative lift).
  • Confidence level: the chance of avoiding a false positive.
  • Statistical power: the chance of detecting a real effect.
  • Sample size: the number of visitors needed in each version.
  • Peeking: checking results repeatedly and stopping early, which inflates false positives.

Mistakes to avoid

  • Stopping when one version pulls ahead before reaching the sample size.
  • Testing tiny changes on low traffic.
  • Running partial weeks.
  • Changing the test midway.
  • Confusing relative and absolute lift. A 15% relative lift on 4% is 0.6 percentage points, not 15.

Who this tool is for

The A/B test duration calculator is for conversion rate optimisers, marketers planning landing page tests, product teams testing features, and PPC managers planning Google Ads experiments. It answers the most important question before any test: is there enough traffic to get a reliable answer?

Privacy

The calculator runs entirely in your browser.

When you don't have enough traffic

If the A/B test duration calculator says a test would take months, you have options:

  • Test a bigger change. A new offer, a different headline promise or a simpler form can produce large effects that need far fewer visitors to detect.
  • Test higher up the funnel. Clicks to the next step happen more often than purchases, so they reach significance faster. Be sure the earlier metric really predicts the final one.
  • Combine pages. If several pages share a template, test the template across all of them.
  • Accept a lower confidence level for low-risk decisions, such as 90% instead of 95%.
  • Use qualitative research instead: user testing, session recordings and customer interviews can reveal problems without statistics.

Planning a test calendar

Because each test needs a minimum duration, it helps to plan tests in sequence:

  1. List test ideas and estimate the lift each might produce.
  2. Use this calculator to estimate how long each would take.
  3. Prioritise ideas with the biggest expected impact and the shortest duration.
  4. Schedule them one after another on each page, avoiding overlaps that could interfere.

A realistic calendar prevents the common mistake of starting a test, getting impatient and stopping it before the result is reliable.

After the test ends

When the test reaches its planned sample size, check the result with a significance calculator, and look beyond the headline number. Did the winning version perform better on both mobile and desktop? On new and returning visitors? Did it raise the metric that matters most, such as sales or qualified leads, and not just clicks? If the result holds up, roll out the winner and record what you learned. If there's no significant difference, that's useful too: the change didn't matter enough to detect, so your next test should try something bolder.

Keep a record of every test

Write down each test's hypothesis, sample size, duration, result and what you changed afterwards. Over time, that record shows which kinds of changes matter for your audience and which don't, and it stops the team from repeating old tests by mistake.

Want someone to run the ads for you?

Want these numbers to improve? These numbers only improve when the account behind them is run well, search term by search term. That is the whole job of DeepRit: a PPC-only agency that sets up and runs Google Ads accounts so every click is accounted for. You keep full ownership of your account, get a written report every week, and can stop at any time. See our pricing or ask for a free audit.

Frequently asked questions

How long should an A/B test run?

Until it reaches the sample size needed for your baseline, minimum detectable effect, confidence and power, and for at least one or two full weeks.

What is a minimum detectable effect?

The smallest relative change in conversion rate that the test is designed to detect reliably.

Why do small lifts need so much traffic?

The required sample size grows with the square of the difference you want to detect. Halving the lift roughly quadruples the sample.

What confidence and power should I use?

95% confidence and 80% power are common defaults.

Can I stop a test early if one version is clearly winning?

It's risky. Stopping at the first significant result greatly increases false positives. Decide the sample size first and stick to it.

Is the A/B test duration calculator free?

Yes. It's free, needs no sign-up, and runs in your browser.

Free PPC audit

See where your ad budget leaks.

We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.

Book a free audit call 30-minute call · Free · The audit is yours to keep