Know what a test needs before you spend on it.

Enter your current rate and the smallest change worth finding. Get the visitors each version needs, the cost and the days. Then check a finished test and see why peeking misleads. Nothing is uploaded.

Everything runs inside this tab. Nothing you type is sent anywhere, and the page is blocked from making network requests.

1. Plan the test

Find out how many people each version needs, what it costs and how long it takes, before you spend anything.

The trade-off

The smaller the change you want to find, the more traffic you need. Same settings as above.

Sample size for different changes
Change to findNew ratePer versionIn totalCostDays
How the number is worked out

For two groups of the same size, with the current rate p1 and the rate you hope for p2, and pbar = (p1 + p2) / 2:

n per version = ( z(conf) x sqrt(2 x pbar x (1 - pbar)) + z(power) x sqrt(p1(1 - p1) + p2(1 - p2)) )^2 / (p2 - p1)^2

z(conf) is the two-sided normal value for your confidence (1.96 for 95%), and z(power) is the normal value for your power (0.84 for 80%). With several versions and the adjustment on, the tool divides the 5% error allowance by the number of comparisons with the original (the Bonferroni method).

2. Read the result

When the test has run to the size you planned, enter what happened. The first row is the original. Uses the confidence chosen above.

Test results to enter
VersionVisitorsConversionsRemove
Test results

3. Why not check every day?

If you look at a test every day and stop when it first reads as a winner, you will call winners that are not real. This runs 2,000 tests where both versions are identical and shows how often that happens.

It uses the current rate above and 2,000 visitors per version, with the looks spaced evenly.

What Ad Test Planner does

Most ad tests end with someone looking at two numbers and picking the bigger one. Ad Test Planner helps with the two steps people skip. Before the test, it tells you how much traffic you need, what that costs and how long it takes. After the test, it tells you whether the difference is bigger than luck would usually produce, and how large the difference could really be.

Before the test

  1. Enter the current rate: the click-through rate of the ad you run now, or the conversion rate of the page.
  2. Enter the smallest change that would matter to you, as a percentage of the current rate or as percentage points. If a 5% improvement would not change what you do, do not plan for one.
  3. Enter the number of versions, including the original, your cost per click (or per 1,000 impressions) and your daily budget.

The tool gives the number of people each version needs, the total, the cost and the days. The trade-off table below it shows how fast the need grows as the change you want to find gets smaller. Halving the change roughly quadruples the traffic.

Confidence and power

Several versions

Each extra version is another chance for luck to produce a winner. With the adjustment on, the tool uses the Bonferroni method: the error allowance is divided by the number of comparisons with the original. It is simple and cautious. It makes the test need more traffic, and it is the reason a three-way test costs more than 1.5 times a two-way test.

After the test

Enter visitors and conversions for each version. The first row is the original. For each other version the tool shows:

Not clear does not mean there is no difference. The tool also says the smallest change a test of your size could reliably have found, so you can see whether the test was ever able to answer your question.

Why not check every day?

If you stop at the first day the result looks significant, your false alarm rate is far above 5%. The simulation in part 3 runs 2,000 tests where both versions are identical. With five looks and a stop at the first win, about one test in seven is wrongly called a winner. That matches the published result for five repeated looks at the 5% level, which is 14.2%. Decide the size first, run to it, and read the result once. Methods for stopping early safely exist, but they need different maths and are not part of this tool.

How the maths was checked

Limits of this tool

Privacy

Everything is calculated in the page. Nothing is uploaded, the page has no analytics, and a Content-Security-Policy blocks network requests from its scripts. The Chrome extension version requests no permissions.

Frequently asked questions

Is Ad Test Planner free?

Yes. It is free and open source under the MIT licence, with no account, no limit and no watermark.

Does my data leave my browser?

No. All the calculation happens in the page. A Content-Security-Policy blocks network requests from the page's scripts, and the Chrome extension version asks for no permissions.

Why does it say I need so much traffic?

Telling a small difference from luck takes a lot of data. At a 3% rate, finding a 20% relative improvement (3.0% to 3.6%) needs about 13,900 visitors for each version. Finding a 10% improvement needs about four times as many. The trade-off table shows this.

What do confidence and power mean?

Confidence of 95% means that if the two versions were identical, you would wrongly see a difference about 5% of the time. Power of 80% means that if the real difference is the size you entered, you would see it about 80% of the time.

Why not stop the test as soon as it looks like a winner?

Because the result moves around early. If you look every day and stop at the first p-value under 0.05, far more than 5% of tests with no real difference will look like winners. Part 3 of the tool shows this with a simulation. Decide the size first, then read the result once.

How was the maths checked?

The sample size matches the standard two-proportion formula as coded in scipy, and is within 0.5% of statsmodels' arcsine method. The p-values and ranges match statsmodels. A simulation of 12,000 tests gave about 80% power and a 5% false positive rate at the planned size. Each of these is a test you can run in the project.

Read the source on GitHub

More free tools

See all free tools

Prefer a step-by-step walkthrough? Read How much traffic does an ad A/B test need? Sample size, cost and the peeking trap.

Want it done for you?

I am Bhavesh, a motion designer and short-form video editor in Rajkot, India. I make SaaS explainers, product animation and short-form ads for founders and brands.

See short-form packagesStart a project