Train Test Split Calculator
Enter your dataset size and split ratios to instantly calculate exact sample counts for train, validation, and test sets.
Dataset Parameters
Rows / observations in your full dataset
80%
10%
20%
Percentages must sum to 100%. Current sum: 100%
Split Results
Proportion
Common Presets
Copied to clipboard
Summary
Enter your dataset size and split ratios to instantly calculate exact sample counts for train, validation, and test sets.
How it works
- Enter the total number of samples in your dataset.
- Choose a 2-way (train/test) or 3-way (train/validation/test) split.
- Set each split percentage — the tool enforces they sum to 100%.
- Results update instantly, showing exact sample counts for each partition.
- Use the copy button to grab the breakdown as plain text.
Use cases
- Verify a dataset is large enough before training a model.
- Plan stratified splits by knowing exact counts per class.
- Compare 80/20 vs 70/15/15 split strategies side-by-side.
- Confirm validation and test sets meet minimum sample thresholds.
- Communicate dataset partitioning clearly in research papers.
- Quick sanity check when reading a paper that cites split ratios.
Frequently Asked Questions
Last updated: 2026-06-11 ·
Reviewed by Nham Vu