Train Test Split Calculator
For ML practitioners preparing datasets who want exact counts for each split. You get train, validation and test sizes with their shares, and a warning if your ratios do not add up to 100.
Close the gaps with real-world projects
Build industry projects on ByteLabs and add verified proof of your skills to your public profile.
How to use the Train/Val/Test Split Calculator
- Enter the total number of samples.
- Enter the train, validation and test percentages.
- Click Split.
- Read the counts; any rounding remainder goes to the train set.
An example, step by step (example only)
You enter
10,000 samples, 70 / 15 / 15
The tool shows
Train 7,000 (70%), validation 1,500 (15%), test 1,500 (15%)
Questions about the Train/Val/Test Split Calculator
What is a good train validation test split?
70/15/15 and 80/10/10 are common starting points. With very large datasets the validation and test shares can be smaller, since a few thousand samples are often enough to measure performance.
Why do I need a separate validation set?
You tune hyperparameters and pick models on the validation set, then report the final score on the untouched test set. Tuning on the test set makes the reported score too optimistic.
What if my split ratios do not add up to 100?
The tool still computes validation and test counts from your ratios, gives the rest to train, and shows a warning with the actual sum so you can fix the inputs.
Is the Train/Val/Test Split Calculator free and private?
Yes. It is free, needs no sign-up and runs entirely in your browser, so what you type is not uploaded. You only sign in if you want to email a result to yourself or save it to your CareerByteCode profile.