A/B test calculator
Plan a test before you run it, then check whether version B really won. Plain words, no sign-up, and your numbers never leave this page.
New to A/B tests? Start with the vocabulary.
Example numbers are filled in. Replace them with yours.
People who reach the page or step you are testing, not your whole site.
Out of every 100 of those visitors, how many do the thing you want: sign up, buy, click?
Settings used
95% confidence and 80% power, the usual standard. In plain words: if there is no real difference, you will be wrongly fooled about 1 time in 20, and if the improvement you entered is real, you will catch it about 4 times in 5. Traffic is split 50/50 between two versions, and the time is rounded up to whole weeks.
Your plan
Test brief
Fill in two lines and copy a one-page brief to send to your developer or founder.
Pick one, and pick it before the test starts.
Example numbers are filled in. Replace them with yours.
A conversion is whatever you counted as success: a sign-up, a purchase, a click. Use the same one for both versions.
How this is calculated
A standard two-proportion z-test at 95% confidence, two-sided. The confidence figure is 1 minus the p-value, shown in the numbers below. It works for any yes-or-no result per person: clicked, opened, signed up, bought. It does not work for averages such as revenue per visitor.
Your result
Before you trust a result
- You picked one main metric before the test started.
- The test ran for the full time you planned, at least 1 to 2 whole weeks.
- You did not stop the first time B looked ahead.
- Only one idea changed between A and B, or you accept not knowing which part worked.
What you can A/B test
Anything where each person either does the thing or does not: clicks, opens, sign-ups, purchases. Two versions run at the same time, and people are split between them at random.
Interface design
Page layout, buttons, forms, navigation, onboarding steps, empty states.
Example: a 2-field sign-up form against a 5-field one.
Wording
Headlines, button labels, product descriptions, error messages, pricing copy.
Example: “Start Free Trial” against “Try It Free for 14 Days”.
Pricing and offers
How plans are laid out, which plan is highlighted, trial length, discount messages. Be careful with showing different prices to different people, as it can upset customers.
Example: the middle plan highlighted against no highlight.
Ads
Headlines, images, calls to action and the landing page the ad leads to. Most ad platforms have a split-test feature built in.
Example: two headlines on the same audience and budget.
Emails
Subject lines, sender name, send time, button text, length. Measure clicks rather than opens, because opens are less reliable.
Example: a question subject line against a benefit subject line.
When a test is not the right tool
Very little traffic, or a question like “is this the right product?” A test shows what people do, not why. Talk to users or run usability tests instead.
The planner above tells you when your traffic is too low.
A/B test vocabulary
Sign-up rate
What does this measure?
It is a conversion metric. It measures the share of visitors who create an account.
How is it calculated?
Sign-upsVisitors × 100
Example
2,000 people visit the sign-up page and 60 sign up. Sign-up rate = 3%.
When to use it
Testing landing pages, sign-up forms, headlines and calls to action.
Important: Count visitors the same way in A and B, for example unique visitors only.
Purchase rate
What does this measure?
It is a conversion metric. It measures the share of visitors who buy something.
How is it calculated?
BuyersVisitors × 100
Example
4,000 people visit a product page and 80 buy. Purchase rate = 2%.
When to use it
Testing product pages, checkout steps, pricing presentation and delivery messages.
Important: Count buyers, not orders, so one person buying twice does not count twice.
Trial-to-paid rate
What does this measure?
It is a conversion metric. It measures the percentage of users who start a free trial and become paying customers within a defined period.
How is it calculated?
Paid conversionsTrial starts × 100
Example
100 users start a trial and 25 become paying customers within 14 days. Trial-to-paid rate = 25%.
When to use it
Testing changes to your trial experience, pricing presentation, onboarding or upgrade flow.
Important: Define the conversion window before starting the experiment.
Form completion rate
What does this measure?
It is a conversion metric. It measures the share of people who start a form and finish it.
How is it calculated?
Completed submissionsForm starts × 100
Example
500 people start a form and 300 submit it. Form completion rate = 60%.
When to use it
Testing the number of fields, their order and labels, and error messages.
Important: Measure from the moment people start the form, not from page views. Otherwise you count people who never saw the form.
Click-through rate (CTR)
What does this measure?
It is an engagement metric. It measures the share of people who saw something and clicked it.
How is it calculated?
ClicksViews × 100
Example
10,000 people see an ad and 200 click it. CTR = 2%.
When to use it
Testing ad headlines and images, button labels, banners and links.
Important: More clicks do not always mean more sign-ups or sales. Check a later step too.
Email click rate
What does this measure?
It is an engagement metric. It measures the share of people who received an email and clicked a link in it.
How is it calculated?
People who clickedEmails delivered × 100
Example
5,000 emails are delivered and 150 people click. Email click rate = 3%.
When to use it
Testing email content, button text, layout and send time.
Important: Prefer clicks to opens. Email apps can load images automatically and count opens that never happened.
Onboarding completion rate
What does this measure?
It is an activation metric. It measures the share of new users who finish the onboarding steps.
How is it calculated?
Users who finish onboardingUsers who start onboarding × 100
Example
400 new users start onboarding and 240 finish. Onboarding completion rate = 60%.
When to use it
Testing the number of steps, tooltips, checklists and first-run screens.
Important: Finishing onboarding is not the goal by itself. Check that people also reach their first valuable action.
Activation rate
What does this measure?
It is an activation metric. It measures the share of new users who reach the first moment where the product is useful to them. You decide what that moment is.
How is it calculated?
Activated usersNew users × 100
Example
1,000 people sign up and 350 create their first project within 7 days. Activation rate = 35%.
When to use it
Testing onboarding, empty states and the first-run experience.
Important: Define the key action and the time window before the test starts, ideally from your own data.
Retention rate
What does this measure?
It is a retention metric. It measures the share of users who are still active after a set period.
How is it calculated?
Users active on day NUsers who started × 100
Example
500 people sign up this week and 150 are still active 30 days later. 30-day retention = 30%.
When to use it
Testing changes that should make people come back: new features, reminders, habit loops.
Important: This test is slow. You have to wait the full period for every user, so plan for it. Measure each user the same number of days after they joined.
Control and variant
What does it mean?
The control (A) is the version you have now. The variant (B) is the new version you are testing against it.
Example
Control: the current sign-up page. Variant: the same page with a shorter form.
Why it matters
Everything except your change should be identical, so any difference can be put down to the change.
Baseline
What does it mean?
Your conversion rate today, before any change.
Example
Last month 30 of 1,000 visitors signed up. The baseline is 3%.
Why it matters
The lower your baseline, the more visitors you need, because there are fewer conversions to compare.
Uplift
What does it mean?
How much better (or worse) the variant does than the control. It can be quoted two ways: relative, as a share of the baseline, or absolute, in percentage points.
Example
A converts 3.0% and B converts 3.6%. The absolute uplift is +0.6 points. The relative uplift is +20%.
Why it matters
People mix the two up. Always check which one is being quoted. This calculator uses relative.
Sample size
What does it mean?
The number of visitors each version needs before the result can be trusted.
Example
With a 3% baseline and a 10% relative improvement worth detecting, each version needs about 53,000 visitors.
Why it matters
Stopping before you reach it gives results that look clear but are mostly noise.
Minimum detectable effect (MDE)
What does it mean?
The smallest improvement you want the test to reliably catch. In the planner it is called “Smallest improvement worth detecting”.
Example
On a 3% baseline, a 10% relative MDE means the test can spot a move from 3.0% to 3.3%.
Why it matters
The smaller it is, the more visitors you need. Choose the smallest change that would be worth shipping, not the one you hope for.
Primary metric
What does it mean?
The one number that decides whether the test won.
Example
For a new sign-up page, the primary metric is sign-up rate.
Why it matters
If you pick the metric after seeing the results, you can find a “win” in almost any data. Choose it before the test starts.
Guardrail metric
What does it mean?
A number that must not get worse while you improve the primary one.
Example
A shorter sign-up form lifts sign-ups (primary), so you also watch activation (guardrail). More sign-ups but fewer active users is not a win.
Why it matters
It stops you from winning on one number while quietly losing on another.
Confidence level
What does it mean?
How sure you want to be before calling a winner. 95% is the usual standard.
Example
At 95%, when there is no real difference, you would be wrongly fooled by chance about 1 time in 20.
Why it matters
Higher confidence is safer but needs more visitors.
Statistical significance
What does it mean?
The result is unlikely to be luck at the confidence level you chose.
Example
A p-value of 0.03 is below 0.05, so the result is significant at 95%.
Why it matters
Significant does not mean important. With lots of traffic, a tiny gap can be significant and still not worth shipping.
p-value
What does it mean?
If A and B were truly the same, the chance of seeing a gap at least this big.
Example
A p-value of 0.03 means a gap this big would appear by luck only 3 times in 100. Under 0.05 is the usual bar.
Why it matters
It is not the chance that B is better, and not the chance that you are wrong. It only says how surprising the data would be if nothing had changed.
Statistical power
What does it mean?
The chance that the test catches a real improvement of the size you chose. 80% is the usual standard.
Example
At 80% power, if B really is that much better, you would catch it about 4 times in 5.
Why it matters
Low power gives you tests that say “no difference” when there is one.
Confidence interval
What does it mean?
The range in which the true difference probably lies.
Example
B minus A is +0.2 to +1.0 points. B is probably better by somewhere in that range.
Why it matters
If the range includes zero, you cannot call a winner. A wide range means the answer is still imprecise, and a narrow one means it is solid.
Peeking
What is it?
Checking results during the test and stopping as soon as B looks ahead.
Why it is a problem
Results swing a lot early on, and every look is another chance to see a win that is not real.
How to avoid it
Decide the duration and sample size first, and read the result once, at the end. This tool assumes a single look.
Novelty effect
What is it?
People react to something just because it is new, and the effect fades.
Why it is a problem
An early lift can vanish after a week, or an early dip can turn around. Returning visitors are the most affected.
How to avoid it
Run the test for at least 2 full weeks, longer for a big redesign, and look at new and returning visitors separately.
Sample ratio mismatch
What is it?
A and B get uneven numbers of visitors when you planned an even split.
Why it is a problem
It usually points to a bug in how visitors are split or counted, and then the result cannot be trusted.
How to avoid it
Check the visitor counts early in the test. This calculator warns you when the split looks off.
False positives and false negatives
What is it?
A false positive is calling a winner that is not one. A false negative is missing a winner that is real.
Why it is a problem
You ship a change that does nothing, or you throw away a change that would have helped.
How to avoid it
Use enough visitors, a 95% confidence level, one primary metric and a single look at the end. Tracking many metrics raises the chance of a false positive.
Five mistakes to avoid
Stopping early
After 3 days B looks great. Early leads often fade. Decide the duration first and keep to it.
Changing too many things in B
If B wins, you will not know why. Test one idea at a time, unless you are happy with a yes-or-no answer.
Judging on the wrong metric
More clicks but fewer purchases is a loss. Pick the metric closest to the outcome you care about.
Testing with too little traffic
With a few hundred visitors a month, results are mostly noise. Use interviews and usability tests instead.
Treating “no difference” as failure
It tells you the change did not matter, so you can stop spending effort there.
What methodology is used?
How the sample size is calculated
For each version, the number of visitors is:
n = (zα/2 + zβ)² × [p1(1 − p1) + p2(1 − p2)] ÷ (p2 − p1)²
p1 is your current rate and p2 is p1 × (1 + the improvement you entered). zα/2 = 1.96 for 95% confidence, two-sided. zβ = 0.84 for 80% power. Weeks = 2n ÷ weekly visitors, rounded up, with a minimum of 2 so every weekday is covered.
How results are read
A two-proportion z-test, two-sided. With the pooled rate p̂ = (conversions A + conversions B) ÷ (visitors A + visitors B):
z = (pB − pA) ÷ √[ p̂(1 − p̂)(1/nA + 1/nB) ]
The p-value comes from the normal curve. The confidence shown is 1 minus the p-value, a common shorthand. The range of the likely true change is the difference ± 1.96 standard errors, using each version’s own rate. “No meaningful difference” is shown when that range stays within ±5% of A’s rate.
The uneven-traffic check
The visitor counts are tested against a 50/50 split. If the difference would happen less than 1 time in 1,000 by chance, the tool warns you. A split that is off usually means a setup bug, and then the result cannot be trusted.
Assumptions and limits
- Each visitor counts once and either converts or does not. It does not work for averages such as revenue per visitor.
- Two versions, an even 50/50 split, one main metric.
- One look at the end. Checking repeatedly, or stopping when B looks ahead, needs a different method.
- Several metrics or several variants at once raise the chance of a false win.
- The calculation runs in your browser. No numbers are sent anywhere.
Not sure what to test first? A UX & CRO audit finds where visitors drop off and gives you a prioritised list of what to change.
