A/B sample splitter
Enter the total number of respondents or visitors and choose an even split or your own weights. You get the size and share of each of two to four variants.
- Checked against reference values
- Free, no sign-up
- Nothing leaves your browser
Parameters
Assumptions and limitations
- Groups are whole people; leftover respondents go to the variants with the largest fractions, so the groups always add up to the total.
- Weights are relative: 70 and 30, 7 and 3 or 0.7 and 0.3 give the same split. A weight of 0 leaves a variant empty.
- The splitter does not tell you how large the total should be: work that out first with a sample size calculator.
Collect real answers in a SurveyNinja survey and see them in charts in the report.
Use this template See the questions firstData is not stored — calculation runs in your browser.
Ready-made template
Do it with your own respondents
The “Market research survey” template already has the questions. Put in your company name, share the link and watch the answers come in.
- Copy the template: the questions are written
- Share it by link, QR code or a widget on your site
- Read the results in the report with charts
New accounts get 14 days of Premium features, no credit card.
What is an A/B sample split?
An A/B sample split is the plan for how many respondents or visitors each test variant gets. Each variant receives the total times its weight divided by the sum of weights. People left over from rounding go to the variants with the largest fractions, so the groups add up exactly: 1,000 split evenly three ways gives 334, 333 and 333. Equal groups usually give the most statistical power.
How the split is calculated
-
Formula
Variant size = total × variant weight ÷ sum of weights. Each variant gets the whole part, and the respondents left over go one by one to the variants with the largest fractions (largest remainder method).
-
Why groups add up
Rounding each group on its own breaks the total: 1,000 in three would give 333 + 333 + 333 = 999, and 101 in two would give 51 + 51 = 102. The largest remainder method gives 334, 333, 333 and 51, 50.
-
Even or weighted
For a fixed total, equal groups usually give the comparison the most statistical power. An uneven split, such as 90/10, limits how many people see a risky variant but needs a larger total to detect the same difference.
-
Shares in the result
Next to each variant the result shows its exact share of the total, so you can check the weights before you set up the test.
Split examples
-
Equal 50/50 split
- 1,000 respondents, 2 variants, equal distribution.
500 for A and 500 for B.
-
Three variants that do not divide evenly
- 1,000 respondents, 3 variants, equal distribution.
334 for A, 333 for B and 333 for C: the extra respondent goes to one variant so the total stays 1,000.
-
Uneven 70/30
- 1,000 respondents, custom weights 70 and 30: the control (A) is larger when the new variant is risky.
700 for A, 300 for B.
-
Risky test 90/10
- 2,000 respondents, custom weights 90 and 10: a new design is shown to a small share first.
1,800 for the control, 200 for the test. With only 200 in the test group, a small difference will be hard to detect.
-
Four variants
- 4,000 respondents, 4 variants, equal distribution.
1,000 per variant. Comparing four variants means several comparisons, so adjust the significance level when you read the results.
-
Pausing one variant
- 600 respondents, 3 variants, custom weights 1, 0 and 1.
300 for A, 0 for B and 300 for C: a weight of 0 takes a variant out of the split.
Next step
Read the answers in a report, not a spreadsheet
Charts are built for you from every answer. Share the report by link or export the answers to Excel, CSV or SPSS.
- Ready questions or AI from a description
- A link for your email or chat, a QR code or a widget on your site
- Charts in the report, export to Excel, CSV and SPSS
FAQ about A/B sample splitter
Why split the sample across variants?
An A/B test compares variants on comparable groups. Planning each group's size in advance tells you how many people each variant needs and when the test can end.
When should I use an even split?
In most tests. For a fixed total, equal groups usually give the most statistical power, so the test detects a given difference with fewer respondents.
When should I use an uneven split?
When the new variant is risky: 90/10 or 80/20 keeps most people on the control. The price is a longer test, because the smaller group limits the power.
How many variants should I test at once?
Start with two. Each extra variant splits the same total into smaller groups and adds comparisons, which raises the chance of a false positive unless you correct for it.
How are respondents assigned to variants?
Assignment should be random and stable, so that one person always sees the same variant. SurveyNinja's question A/B test shows each respondent one wording of a question by the shares you set (50/50 by default), and the same browser always gets the same variant.
What should I do after splitting the sample?
Run the test until every variant reaches its planned size, then check significance. Stopping as soon as the difference looks significant inflates false positives (the peeking problem).
How does the splitter relate to the significance calculator?
First work out the required sample per variant with the sample size or A/B significance calculator, then split the total between variants here.
Can I test more than two variants?
Yes, the splitter handles two to four variants. With more variants you need a larger total for the same power per comparison.
Learn the method
Read how the method works and where its numbers come from.
Turn the numbers into a survey
Start from the “Market research survey” template: the questions are ready.
Cross-Sectional Study vs Longitudinal Study: Differences, Types and Survey Examples