A/B Test Calculator for Creative Tests

An A/B test calculator tells you whether the gap between two variants is likely to be real or just chance. This free ab test calculator compares two ad creatives with a two-sided, two-proportion z-test, and returns each rate, the lift, the z-score, the p-value and whether the result is significant at 95 percent confidence.

Free, no sign-up. Runs in your browser.

Results

Result at 95% confidenceTwo-sided p-value 0.0171
Significant
Version A conversion rate
2%
Version B conversion rate
2.5%
Relative change, B vs A
25%
z-score
2.384
Embed this calculator

Free to use on your site. Paste this code where you want the calculator to appear.

How do you use the A/B test calculator?

Enter the successes and the total for each of two ads. The calculator returns both rates, the lift of B over A, the z-score, the two-sided p-value and a significant or not significant verdict.

  1. Pick one metric to compare, and use the same one for both ads. For example:
    • Click-through rate: link clicks (successes) out of impressions (total).
    • Hook rate: 3-second video plays out of impressions.
    • Conversion rate: purchases out of link clicks.
  2. Enter variant A's successes and total, then variant B's.
  3. Read the verdict. The default threshold is a p-value below 0.05, which is 95 percent confidence.
  4. Copy the page link to share the result. Only the numbers are stored in it.

Each success must belong to one item in the total. Purchases out of impressions works; purchases out of a different date range's impressions does not.

What method does the calculator use?

It uses a two-sided two-proportion z-test with a pooled standard error. This is the standard test for whether two proportions differ, described in the NIST/SEMATECH e-Handbook of Statistical Methods, section 7.3.3.

Rate A = successes A ÷ total A
Rate B = successes B ÷ total B
Pooled rate = (successes A + successes B) ÷ (total A + total B)
Standard error = √( pooled × (1 − pooled) × (1 ÷ total A + 1 ÷ total B) )
z = (rate B − rate A) ÷ standard error
p = 2 × (1 − Φ(|z|))

Pooling uses both variants to estimate one shared rate, because the test starts from the assumption that the two ads perform the same. Two-sided means the test looks for a difference in either direction, not only "B is better".

Φ is the standard normal cumulative distribution function. The calculator computes it with the rational approximation of the error function in Abramowitz and Stegun, formula 7.1.26, which is accurate to within 1.5 × 10⁻⁷. That is far more precision than any ad test needs.

Worked example

Enter these numbers in the calculator above (example numbers, not from a real test):

Input Variant A Variant B
Successes (conversions) 200 250
Total 10,000 10,000

The tool shows the same results:

Output Working Result
Rate A 200 ÷ 10,000 2.00 percent
Rate B 250 ÷ 10,000 2.50 percent
Lift of B over A (2.50 − 2.00) ÷ 2.00 25 percent
Pooled rate 450 ÷ 20,000 2.25 percent
Standard error √(0.0225 × 0.9775 × 0.0002) 0.0021
z 0.005 ÷ 0.0021 about 2.384
p-value (two-sided) 2 × (1 − Φ(2.384)) about 0.0171
Verdict p below 0.05 Significant at 95 percent

A p-value of 0.0171 means that if the two ads truly converted at the same rate, a gap this large would show up by chance about 1.7 times in 100 tests. That is below the 5 in 100 threshold, so B's higher rate is unlikely to be chance alone.

Significant does not mean large. The test says the difference is probably real; whether a 25 percent lift is worth acting on is a business decision.

What are the limits of this calculator?

The z-test gives a correct answer to a narrow question. Most wrong conclusions from creative tests come from how the test was run, not from the arithmetic.

  • Peeking. Checking the result every day and stopping the first time it says significant makes false winners much more likely. Set the sample size or the end date before launch and read the result once.
  • Sample size. The z-test uses a normal approximation, which needs enough successes and failures in each variant. With very few conversions, the NIST handbook points to Fisher's exact test instead. In practice: wait for more data.
  • More than two variants. Each extra comparison is another chance for a fluke. If you test five hooks against each other, one may look significant by luck. Use a stricter threshold (for example a p-value below 0.01) or test fewer variants at once.
  • Uneven audiences. Two ads running side by side in one ad set are not shown to random, separate groups, so they may differ in who saw them, not only in the creative. Meta's A/B testing feature splits the audience evenly and warns that informal tests can lead to overlapping audiences. Use it when the decision matters.
  • One metric at a time. A creative can win on CTR and lose on conversion rate. Decide which metric matters before you start.

A creative testing framework covers how to set up tests so these problems are less likely, and the hook rate calculator gives the video metrics you can test with this page.

See the CTR and hook rate glossary entries for the two metrics most often compared in creative tests. The CTR calculator and ad metrics calculator give the rates themselves, and our ad hooks guide lists hook types worth testing. All free tools are on the tools page.

If you want more creative variants to test, see how Anglr works for brands.

Glossary: CTR · Hook rate

FAQ

How do I know if my A/B test result is significant?

Enter conversions and totals for both variants. If the p-value is below 0.05, the calculator marks the result significant at 95 percent confidence, meaning a gap this large would be unlikely if the two ads truly performed the same.

What is a p-value in an A/B test?

It is the probability of seeing a gap at least this large between the two variants if there were no real difference between them. A smaller p-value means chance is a less likely explanation.

How many conversions do I need for an A/B test?

The z-test relies on a normal approximation, which needs reasonably large counts. If either variant has only a handful of conversions, the NIST handbook recommends Fisher's exact test instead, so collect more data before deciding.

Can I stop an A/B test as soon as it shows significance?

Not safely. Checking repeatedly and stopping at the first significant result raises the chance of a false winner. Decide the sample size or end date before you start, then read the result once.

Can I use this calculator to test more than two creatives?

It compares two at a time. Running many pairwise tests raises the chance that one looks significant by luck, so with several variants use a stricter threshold or a test built for multiple groups.

Make AI ads?

Get paid on performance for AI ads that perform.

Get started for free

Run ads for a brand?

Every format from your winning scripts. Invite only.

Request access

Sources

Checked: 12 Oct 2026