Home / A/B Test Sample Size Calculator

A/B Test Sample Size Calculator

A/B test planning needs a baseline conversion rate and a minimum effect worth detecting. The calculator estimates sample size per arm based on the chosen z-values for confidence and power.

How to use this calculator

  1. Use a defensible baseline from comparable traffic and choose confidence/power z-values appropriate to your experiment plan.
  2. Check that units, denominator definitions and time periods are consistent before comparing scenarios.
  3. Run a second scenario when an assumption is uncertain.

Formula used by ab test sample size calculator calculator

Equal-arm sample size uses a two-proportion normal approximation: [zα√(2p̄(1−p̄)) + zβ√(p1(1−p1)+p2(1−p2))]² / (p2−p1)².

  • Equal-arm sample size uses a two-proportion normal approximation: [zα√(2p̄(1−p̄)) + zβ√(p1(1−p1)+p2(1−p2))]² / (p2−p1)².
  • This approximation does not adjust for allocation ratios, multiple comparisons, clustering, sequential testing or low expected counts.
  • The tool performs arithmetic on the values entered and does not validate assumptions against outside records.

Worked examples

Worked example

Baseline 3.5%, relative detectable lift 15%, z values 1.96 and 0.84.

The target rate is 4.025%; the formula estimates an equal sample size per arm from the two-proportion normal approximation.

Estimated required sample size per variant is shown.

Understanding the result

A/B test planning needs a baseline conversion rate and a minimum effect worth detecting. The calculator estimates sample size per arm based on the chosen z-values for confidence and power.

This approximation does not adjust for allocation ratios, multiple comparisons, clustering, sequential testing or low expected counts.

Important notes

This approximation does not adjust for allocation ratios, multiple comparisons, clustering, sequential testing or low expected counts.

Treat this output as an estimate tied to the stated inputs. For regulated, safety-critical, tax or professional decisions, verify applicable official guidance and specifications.

Frequently asked questions

Does this guarantee the experiment will be significant?

No. It estimates planning sample size under model assumptions; real outcomes remain uncertain.

What is minimum detectable lift?

It is the smallest relative improvement the experiment is planned to have power to detect under the chosen assumptions.

How should I interpret the result?

This approximation does not adjust for allocation ratios, multiple comparisons, clustering, sequential testing or low expected counts.

Related calculators

  • Website Conversion Lift Calculator — Compare baseline and variant conversion rates, percentage-point difference and relative lift using two measured cohorts.
  • Event Budget per Attendee Calculator — Estimate total event budget and cost per attendee from fixed costs and a variable per-person cost.
  • Sample Size for a Mean Calculator — Estimate the sample size needed to estimate a population mean for a stated standard deviation, margin of error and confidence z-score.
  • Office Space Cost per Employee Calculator — Estimate annual and monthly workplace cost per employee and cost per square metre.
  • Sample Size Calculator — Estimate a simple random-sample size for a proportion using a chosen confidence z-score, assumed proportion and margin of error.
  • Seed Germination Rate Calculator — Calculate the observed germination percentage from a seed test and estimate how many seeds germinated.

Related explanations

Learn the method behind the number or compare the terminology before using the calculator.

  • How to Calculate Salary from an Hourly Rate — Convert hourly pay into weekly, monthly, and annual estimates and understand the assumptions behind the result.
  • How to Calculate Standard Deviation — Learn what standard deviation measures, the population and sample formulas, and how to interpret the result.
  • Basal Metabolic Rate (BMR) — Learn what basal metabolic rate means and how BMR estimates are used in calorie planning.

This page provides a calculation tool plus explanatory information so you can understand what the result means and when the underlying method may not fit your situation.

Explore more calculation resources

Keep exploring related tools, explanations, conversions, and topic pages in The Calc Studio. These links are selected around the subject of this page so you can move to the next useful calculation without returning to search.

Related calculators

  • Sample Size for a Mean Calculator — Estimate the sample size needed to estimate a population mean for a stated standard deviation, margin of error and confidence z-score.
  • Website Conversion Lift Calculator — Compare baseline and variant conversion rates, percentage-point difference and relative lift using two measured cohorts.
  • Sample Size Calculator — Estimate a simple random-sample size for a proportion using a chosen confidence z-score, assumed proportion and margin of error.
  • Seed Germination Rate Calculator — Calculate the observed germination percentage from a seed test and estimate how many seeds germinated.
  • Confidence Interval for Mean Calculator — Estimate a normal-approximation confidence interval around a sample mean from its spread and sample size.
  • API Payload Size Calculator — Estimate daily and monthly transfer volume from request count and average payload size.
Browse by categoryMath CalculatorsBusiness CalculatorsEveryday ToolsConstruction CalculatorsFinancial CalculatorsHealth & Fitness Calculators

Task collections

  • Calculators for Students — Free student calculators for grades, percentages, fractions, probability, normal distributions, matrices, vectors, complex numbers, statistics, geometry, and scientific math.
  • Math & Statistics Calculators — Free math and statistics calculators for Bayes theorem, set operations, matrices, complex numbers, vector products, normal distributions, averages, percentages, standard deviation, geometry, equations, and number systems.
  • Business & Work Calculators — Free business and work calculators for ROI, markup, break-even, sales commission, DSO/DPO, customer-acquisition payback, weighted sales pipelines, labour cost per unit, FTE staffing, email growth, and creator RPM.
  • Health & Fitness Calculators — Free health and fitness calculators for BMI, BMR, calories, macros, body fat, lean body mass, heart-rate training zones, hydration, and running pace.

Related guides

  • How to Calculate Salary from an Hourly Rate — Convert hourly pay into weekly, monthly, and annual estimates and understand the assumptions behind the result.
  • How to Calculate Standard Deviation — Learn what standard deviation measures, the population and sample formulas, and how to interpret the result.
  • CAGR Explained: Compound Annual Growth Rate — Learn the CAGR formula and how to use it to compare growth over multiple years.

Related terms

  • Basal Metabolic Rate (BMR) — Learn what basal metabolic rate means and how BMR estimates are used in calorie planning.
  • Standard Deviation — Understand standard deviation as a measure of spread and the difference between population and sample standard deviation.
  • Salary — Understand salary, hourly pay, annual gross pay estimates, and the assumptions behind salary conversions.

Useful conversions

  • kg to lbs — Convert kilograms to pounds quickly and accurately with a free kg to lbs converter, formula, and reference table.
  • cm to inches — Convert centimeters to inches with a fast cm to inches converter, formula, examples, and common conversion values.
  • meters to feet — Convert meters to feet with a free meters to feet converter, formula, examples, and common conversion values.

Browse all calculators · Read all guides · Open the glossary · See all converters · Browse collections

Want to keep learning? Move from a calculator to its formula guide, glossary definition, unit conversion, or task collection to compare related methods and tools.

Optional Premium: save calculation history across visits and remove promotional blocks. See Premium.