Sample Ratio Mismatch (SRM) Calculator
Check whether observed A/B test assignment counts match the planned traffic allocation. Get an SRM decision, per-group deviations, a shareable analyst summary, and a reproducible CSV.
Observed assignment counts
Use the original randomization unit: usually unique users, accounts, or sessions.
Fixed-horizon allocation check
This snapshot found no allocation mismatch. That does not prove assignment is healthy; also check exposure over time, instrumentation, and important pre-treatment covariates.
p-value
0.1594
Chi-square
1.9802
Degrees of freedom
1
Alert threshold
0.001
| Group | Expected | Observed | Deviation |
|---|---|---|---|
| Control | 10,100 | 10,000 | -0.99% |
| Variant | 10,100 | 10,200 | +0.99% |
Keep the diagnostic with the experiment.
Save the allocation, investigation, decision, and learning with the experiment record for later review.
Create the experiment recordShare links keep allocation counts in the URL fragment, which is not sent to the server. Anyone with the link can read those counts.
The SRM check is done. Preserve the diagnosis.
A calculator answers one question and forgets it. GrowthLayer keeps each test your team saves — the hypothesis, the numbers, and the decision — so future planning can start from a reviewable record.
- Structured history of saved experiments
- Import results from CSV in one step
- Program summaries across saved tests
- Free to start — no card required
Methodology
Sources and limitations
- Microsoft Research: Diagnosing Sample Ratio Mismatch — KDD paper describing SRM as a symptom, its root-cause taxonomy, and practitioner diagnostics.
- Online Controlled Experiments and A/B Tests — Experimentation reference recommending a strong warning when the allocation p-value is very low, for example below 0.001.
- Optimizely automatic SRM detection — Explains why continuous monitoring needs a sequential method and why an imbalance requires investigation rather than reflexive abandonment.
Frequently Asked Questions
What is sample ratio mismatch (SRM)?
What SRM p-value threshold should I use?
Should I check SRM every day?
What should I do when SRM is detected?
Does an SRM automatically invalidate the experiment?
Can a final 50/50 split still hide an SRM problem?
Related Calculators
Choosing a method or double-checking another tool? Compare 11 public A/B test calculators and download the evidence matrix.
Updated for 2026. Built by GrowthLayer — built for evidence-aware experimentation teams.