Start a project

Tool 165 of 425 · Experiments

A/B Test Sample Size Calculator

Calculates the visitors and days an A/B test needs before you start it.

A/B Test Sample Size Calculator

Your input

Result

MeasureValue

    01

    What it does

    Calculates the visitors and days an A/B test needs before you start it.

    • Baseline rate and minimum detectable effect
    • Significance and statistical power
    • Two or more variants
    • Duration from daily traffic

    02

    Private by design

    Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

    03

    What you get

    Visitors per variant, total and days, with a Copy and a Download button on every result.

    • A/B testing
    • Sample size
    • Power

    Why it matters

    Most underpowered tests end inconclusive or, worse, crown a false winner. Knowing the sample size up front tells you if a test is worth running.

    Small sites often learn that only big changes are measurable, which is useful to know before building variants.

    How to use it

    1. Type or paste your input; the example shows the format.
    2. Press Calculate sample size. Results also update as you type.
    3. Read the summary line, then the table, notes or output below it.
    4. Copy or download what you need. Nothing leaves this page.

    FAQ

    What's the minimum detectable effect?

    The smallest relative uplift you care about. Halving it roughly quadruples the sample needed.

    Why 80% power?

    It's the usual convention: an 80% chance of detecting the effect if it's really there.

    Is my input uploaded?

    No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.

    Can I rely on the result?

    It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.

    Work with me

    Want a site that gets these right?

    I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

    All developer tools · Back to leej.uk