Skip to content
AI-powered appsNewChat, vision, voice, generationBookings & schedulingAppointments that book themselvesShops & sellingA storefront in every pocketClient & businessRun the operation from one placeCommunities & clubsA home that is not a group chat
Health & wellnessHabits, tracking and calmGames2D, 3D and multiplayerPersonal & toolsThe tool you wish existedInternal toolsThe tool ops never had time for
See all use cases
ArcadeNewPricingSecurity
EngineThe game engine and World EditorHow it worksFrom one sentence to a live productDocsGuides for building and publishingBlogStories, guides and newsChangelogWhat shipped latelyStatusUptime of every serviceSupportGet help from the team
AI-powered appsBookings & schedulingShops & sellingClient & businessCommunities & clubsHealth & wellnessGamesPersonal & toolsInternal tools
See all use cases
ArcadeNewPricingSecurity
EngineHow it worksDocsBlogChangelogStatusSupport
Language
Blog
GlossaryNovember 22, 20263 min read

What is A/B testing?

An A/B test splits users at random between two versions and compares one number. It is simple to set up and easy to get wrong; here is how to run one honestly.

Startbase Team
Editorial ink illustration of two seed pots on a windowsill with a ruler between them, the taller sprout in ember orange

Key takeaways

  • An A/B test randomly assigns each user to version A or B and compares one pre-chosen metric.
  • Small differences need large audiences; with little traffic, test bold changes or talk to users instead.
  • Decide the metric, the audience and the run length before starting, and do not stop the test the moment it looks good.

A/B testing is an experiment where users are randomly split between two versions of something, the current version (A, the control) and a changed version (B), so you can measure which one performs better on a metric you chose in advance. Randomness is the point: because the two groups are alike in every other way, a difference in results can be credited to the change.

An everyday version: a cafe alternates two chalkboard signs on random days for a month, one advertising "Fresh croissants" and one "Croissant + coffee $5", and counts croissant sales on each. Same street, same weather mix, one variable.

How a test works, step by step

  1. 01Hypothesis. "Showing the price on the pricing button will raise checkout starts, because people hesitate without knowing the cost."
  2. 02One metric. Checkout started per visitor to the pricing page. Choose it before the test, plus a guardrail metric that must not get worse (for example, refunds).
  3. 03Random, sticky assignment. Each visitor gets A or B at random, and keeps it on every visit, so nobody sees both.
  4. 04Run for a fixed time. At least one full week, so weekday and weekend behavior both appear, and long enough to reach the sample size you planned.
  5. 05Compare and decide. Use a significance calculator (many free ones exist) and ship B only if the difference is both meaningful and unlikely to be chance.

How much traffic you need

This is where most small apps stumble. Detecting a small lift on a low conversion rate (say 5% becoming 5.5%) typically takes many thousands of visitors per version. Detecting a large one (5% becoming 8%) needs far fewer. Plug your current rate and the smallest lift you care about into a sample size calculator before you start. If the answer is more traffic than you get in a month, test a bolder change, or learn by watching five users try the page instead.

Running an A/B test in a Startbase app

The pieces are a stored assignment, two versions of the screen, and event logging for the metric. If you already track funnel events (what conversion rate is), you only need the first two.

Add a simple A/B test to the pricing page. On first visit, assign each visitor to "control" or "price_on_button" at random (50/50) and remember it in a cookie and, after sign-up, on their user row. Control keeps the current page; the variant shows the monthly price inside the main button. Log pricing_viewed and checkout_started with the variant name. Add an admin page with visitors, checkout starts and conversion rate per variant, and a switch to end the test and show one version to everyone.

Versions in Startbase help here too: if the variant code causes a problem, restore the version from before the test (checkpoints and undo). For price experiments specifically, read how to validate pricing first, because showing different prices to different people has trust implications.

Common confusions

  • Peeking. Checking daily and stopping the moment B leads produces false winners. Set the end point in advance.
  • Before/after is not A/B. Changing the page on Monday and comparing to last week mixes your change with everything else that changed.
  • Testing five things at once. If B changes the headline, image and button, a win does not tell you which part worked. That can be fine, as long as you know it.
  • Novelty. Returning users sometimes click something just because it is new. Watch whether the lift holds in the second week.

Frequently asked questions

Can I run more than two versions?

Yes, that is called an A/B/n test. Each extra version splits your traffic further, so every group needs the same sample size and the test takes longer.

Is A/B testing worth it for a brand new app?

Usually not yet. Early on, traffic is too small to detect anything but huge differences. User interviews and watching sessions teach more until you have steady traffic.

On this page

  • How a test works, step by step
  • How much traffic you need
  • Running an A/B test in a Startbase app
  • Common confusions

Keep reading

More in Glossary
Editorial ink illustration of a hand-cranked music box drum plucking a metal comb, the crank handle in ember orange
GlossaryNovember 22, 2026

What is a game loop?

Every real-time game runs one repeating cycle: read input, update the world, draw it. Here is what that cycle looks like and why it decides how your game feels.

3 min read
Editorial ink illustration of a brass stopwatch beside a small wind-up toy car, the second hand in ember orange
GlossaryNovember 22, 2026

What is delta time?

Delta time is the number that keeps your game the same speed on every screen. Here is how to use it, where it breaks, and how to spot a game that forgot it.

3 min read

Read less. Ship more.

Everything in this post is one prompt away. Describe your app and watch it build.

Start building

Apps, games, backends and publishing from one conversation.

Product

  • Features
  • Use cases
  • Pricing
  • Changelog

Resources

  • Blog
  • Docs
  • Support
  • Status
  • Security

Contact

  • w@startbase.ai
  • X / Twitter
  • LinkedIn
  • Instagram

Legal

  • Terms
  • Privacy

© 2026 Startbase. All rights reserved.