A/B testing · Starting Up
How do I run an A/B test?
Checked 16 November 2026
Change one thing, decide before you start what counts as a win and how many visitors you need, split traffic at random, and run to that number without stopping early. If your traffic cannot reach it, test bigger changes or talk to users instead.
By case
-
If you test a website or app
Use GrowthBook or PostHog, both with free plans.
Google Optimize is gone, and both run experiments with feature flags.
-
If you test YouTube titles and thumbnails
Use Test and compare in YouTube Studio.
YouTube splits viewers and keeps the version with the highest watch time.
-
If you test Facebook or Instagram ads
Use the A/B test feature in Meta Ads Manager.
Comparing two live ads by hand mixes audiences and timing.
-
If your traffic is too low to reach the sample size
Test bigger changes, or interview users instead.
A small change on small traffic never reaches a clear answer.
The steps6 steps
-
Write a hypothesis: what you change and what you expect it to move.
-
Pick one metric that decides the test.
-
Work out the sample size with a calculator before you start.
-
Split traffic at random between the versions with an experiment tool.
-
Run until you reach the sample size, without peeking and stopping on a good day.
-
Record the result and what you changed because of it.
The figuresEach with where it was read
- Users on GrowthBook's free Starter plan, with unlimited experiments up to 3
- Feature flag requests free each month on PostHog, which experiments are billed with 1M
- Titles and thumbnails YouTube's Test and compare can try on one video up to 3
- Date Google Optimize stopped working September 30, 2023
What goes wrong
Stopping the moment a result looks significant, which produces false winners.
Changing several things at once, so you cannot tell which one worked.
Watching many metrics and declaring a win on whichever moved.
Running a test on a page with too little traffic to ever finish.
Go deeper8 sources
-
Sample Size Calculator (Evan's Awesome A/B Tools)
Evan Miller · evanmiller.org · Tool
Before you run anything, put your real numbers into this and see how many conversions per variant you would actually need. It takes your baseline conversion rate and the smallest effect you care about (the minimum detectable effect) and returns the sample size per group, which is the fastest honest way to learn whether a test can ever hit significance. If the number dwarfs your monthly traffic, that is your answer: skip the test and do something qualitative instead.
-
How Not To Run an A/B Test
Evan Miller · evanmiller.org · Essay
The classic explanation of why stopping a test the moment it looks significant produces false winners, and how to avoid it by fixing the sample size in advance.
-
What to Do When You Don't Have Enough Traffic to A/B Test
Teresa Torres · Product Talk · Article
Torres takes the next step after you accept you cannot reach significance: figure out what you are actually trying to learn, then pick a method that fits. She walks through swapping A/B tests for customer interviews, paper prototypes, think-aloud sessions, and competitive research depending on the question, so low traffic stops being a dead end. The line to carry: do not let a lack of traffic keep you from learning what you need to learn.
-
GrowthBook pricing
GrowthBook · growthbook.io · Tool · Pricing page
An open-source experimentation and feature-flag platform. The Starter plan is free for up to 3 users with unlimited experiments and traffic, and it can run on your own data warehouse.
-
PostHog pricing
PostHog · posthog.com · Tool · Pricing page
Product analytics with experiments, feature flags and session replay in one tool, with a free allowance that renews every month and no card needed.
-
[Sunset September 2023] Google Optimize
Google Analytics Help · support.google.com · Article · Help page
Google's notice that Optimize and Optimize 360 are no longer available as of 30 September 2023, which is why older A/B testing guides that name it are out of date.
-
A/B test titles and thumbnails (YouTube Test & compare)
YouTube Help · support.google.com · Article · Help page
YouTube's own help page for its built-in A/B test: creators can test and compare up to 3 titles and thumbnails on one video, and YouTube picks the winner.
All 8 sources
-
About A/B testing for Meta Ads
Meta Business Help Center · facebook.com · Article · Help page
Meta's own help page for the A/B test feature in Ads Manager, which splits your audience so versions of an ad, audience or placement do not overlap.