A/B Test Calculator: Sample Size, Significance & SRM Detector
Two essential statistical tools for online stores in one clean interface. Estimate how long your A/B test will take before launching it, or verify whether your A vs B results are statistically significant and free from Sample Ratio Mismatch (SRM).
Sample Size & Test Duration Planner
Enter monthly traffic reaching the tested template (product page, cart, checkout, or full store), your baseline conversion rate, and the minimum relative uplift (MDE) you want to detect.
Use traffic exposed directly to the experiment (e.g. sessions viewing a product page or checkout).
Typical e-commerce purchase CR sits around 0.8%-2.5% (for micro-conversions such as add-to-cart: 5%-15%).
Detecting a small +5% uplift requires vastly more sessions than testing a bold +15% or +20% improvement.
Traffic is solid, but detecting +15% will take ~99 days
At your chosen MDE, the test exceeds 6 weeks. Focus on bolder changes (MDE +15% or +20%), or start by shipping clear conversion blockers found in a UX/CRO Audit and reserve split tests for major PDP and checkout decisions.
Statistical Significance (A vs B) & SRM Detector
Enter visitors (sessions/users) and conversions for both variants. The calculator computes Z-score, two-sided p-value, relative uplift, and runs a Chi-square goodness-of-fit test for Sample Ratio Mismatch (SRM).
Observed traffic split (50.0% vs 50.0%) matches the expected 50/50 allocation (Chi-square = 0.00).
Variant B outperforms A by +18.0%
In a two-sided proportions test (Z = 2.13, p = 0.0330), the uplift crosses the 95% confidence threshold.
When should you A/B test vs ship UX/CRO fixes directly?
A/B testing is a powerful validation method, but only when your store has enough transaction volume and trustworthy analytics. In PUSH projects we follow three practical rules:
1. Below 30,000 sessions/mo
Standard purchase A/B tests take too long to reach statistical power. Rather than waiting 3 months for noisy numbers, run a structured UX/CRO Audit (from €890 excl. VAT) and ship clear usability and checkout fixes directly.
2. Verify GA4 tracking first
Before launching any split test, check for duplicate purchase events or broken payment-gateway attribution. Use our free GA4 Configuration Audit to confirm your measurement layer is clean.
3. Watch SRM and full weekly cycles
Always run tests in full 7-day multiples (minimum 14 days) to balance weekday vs weekend shopping behaviour. If the detector flags an SRM error (p < 0.01), pause the experiment and debug traffic allocation before making any decision.
Frequently asked questions about A/B testing
How much traffic does an online store need for A/B testing to make sense?
In practice, running reliable purchase-level A/B tests usually requires at least 30,000 monthly sessions and several hundred orders on the tested funnel stage. Below that threshold, detecting a realistic +10% to +15% uplift takes over 6 to 8 weeks, making a direct UX/CRO audit and prioritised fixes far faster and more cost-effective.
What is Sample Ratio Mismatch (SRM) in an A/B test?
Sample Ratio Mismatch (SRM) happens when the actual traffic split between Variant A and Variant B significantly deviates from the configured split (for example, 52/48 instead of 50/50 with Chi-square p below 0.01). SRM almost always signals a technical bug: redirect latency, asymmetric bot filtering, broken variant scripts, or consent banner bias. Results with SRM cannot be trusted.
Why does the calculator default to a two-sided test, 95% confidence, and 80% power?
95% confidence (α = 0.05) controls the false-positive rate so you do not ship random noise, while 80% statistical power (1 - β) gives a practical probability of detecting a genuine uplift without dragging tests out unnecessarily. A two-sided test protects revenue by detecting both positive gains and harmful drops.
Can I stop an A/B test early if it hits 95% significance after 4 days?
No. Stopping an experiment early as soon as p drops below 0.05 (known as peeking) severely inflates the false-positive rate. Always wait until you reach your pre-calculated sample size and complete full 7-day cycles (at least 14 days) to account for weekday and weekend buying patterns.
All 6 free conversion engineering and analytics tools
E-commerce optimisation requires a holistic view of unit economics, traffic quality, and checkout UX. Explore the other tools or open the main diagnostics hub.
Estimate extra revenue at +10%, +20% or +30% conversion uplift on existing traffic.
Run calculator →Calculate net margin, Break-Even ROAS, Max CPA, and how CRO cuts ad CPA.
Calculate ROAS →Plan sample size and duration, check Z-score and p-value, and detect SRM bias.
Plan A/B test →Diagnose 6 critical friction points in your cart and checkout form.
Test checkout →Score your PDP on 10 Nielsen heuristics, sticky CTA and delivery clarity.
Score PDP →Verify Consent Mode v2, payment-gateway exclusions and attribution.
Test GA4 →Contact
Book a free 15-minute consultation.
Fill in the form. Dawid Śliwiński (Co-founder of PUSH) will analyse your store and get back to you within 24 hours with an actionable plan.
What you get within 24 hours
- An initial store review by Dawid Śliwiński (no sales reps).
- 2-3 concrete conversion blockers spotted on your live purchase journey.
- A tailored next-step recommendation matched to your store's scale (audit, fixed sprint or retainer).