What Is Sample Ratio Mismatch (SRM)?
Sample Ratio Mismatch (SRM) is a statistical validation that determines whether the actual distribution of users across A/B test variants matches the planned allocation.
If the observed distribution differs significantly from the expected one, it may indicate problems with randomization, event logging, experiment configuration, or data collection. SRM validation should be performed before analyzing experiment results, because the presence of SRM may make the conclusions of an A/B test unreliable.
The tool uses the Chi-Square (χ²) test to compare the expected and observed group sizes and automatically calculates the p-value.
After the calculation, the following results are displayed:
Metric | Description |
|---|
Chi-Square Statistic | The χ² test statistic used to evaluate the distribution |
p-value | The probability that the observed deviation occurred by chance |
Validation Status | Indicates whether Sample Ratio Mismatch is detected |
Calculation Link | A shareable link that preserves the validation parameters |
Enter the actual number of users in each group.
Specify the planned allocation ratio for each group.
Add additional experiment variants if necessary.
Run the validation.
Review the results.
For example, if an experiment was designed with a 50% / 50% traffic split but the observed group sizes are 1,000 and 1,050 users, the tool evaluates whether this deviation can reasonably be explained by random variation.
When to Check for SRM
SRM validation is particularly useful:
before analyzing the results of any A/B test;
after deploying a new user allocation mechanism;
when running experiments with multiple variants;
when analytics event loss is suspected;
after modifying the event logging system;
after changing the randomization mechanism;
when group sizes differ unexpectedly.
In many organizations, SRM validation is a mandatory step before analyzing any experiment.
Why Sample Ratio Mismatch Occurs
The most common causes include:
user randomization errors;
incorrectly configured feature flags;
experiment platform issues;
analytics event loss;
filtering out certain users;
user identification errors;
cookie or authentication issues;
incorrect traffic allocation;
software bugs.
SRM itself does not identify the root cause—it only indicates that the observed user distribution differs from the expected allocation.
When You Can Trust A/B Test Results
If SRM is detected, the experiment results should be interpreted with extreme caution.
Even if the observed differences between variants appear statistically significant, they may be caused by user allocation problems rather than by the product change itself.
In practice, teams usually investigate and resolve the cause of the SRM before rerunning the experiment.
The tool validates only the correctness of user allocation across experiment groups.
It does not determine which variant performs better, compare conversion rates, or estimate effect size.
SRM validation also does not identify the source of the problem—it only indicates that the observed allocation differs statistically from the expected one.
Conclusion
The Sample Ratio Mismatch Calculator provides a quick way to verify whether users were distributed correctly across experiment variants. It is one of the first validation steps in any A/B test and helps identify implementation issues before analyzing product metrics.
For comprehensive experiment analysis, use this tool together with other statistical calculators. Before launching an experiment, estimate the required sample size using the Sample Size Calculator. Once the SRM check has passed successfully, analyze the experiment results using the Two-Sample T-Test for continuous metrics or the Chi-Square Test for conversion rates and other binary metrics.