RMSE Calculator
Root mean squared error between actual and predicted values.
About this tool
Enter actual and predicted values and get the root mean squared error. It is the square root of the mean squared error, so it is in the same units as the thing you predict, and it gives extra weight to big misses.
How to use
How it works
RMSE = √[(1/n) Σ (yᵢ − ŷᵢ)²]. It is always at least as large as the MAE, and the gap grows when errors are uneven. If RMSE is much bigger than MAE, a few large errors dominate.
RMSE = √[ (1/n) · Σ (yᵢ − ŷᵢ)² ]
Worked example
Four predictions
- Input
- Actual: 3, 5, 2.5, 7 Predicted: 2.5, 5, 4, 8
- Output
- RMSE 0.935414 (MSE 0.875, n = 4)
- Walkthrough
- MSE is 0.875 and √0.875 = 0.9354. The MAE for the same data is 0.75, lower because the 1.5 error is penalised less by MAE.
Limitations
- Lists must be the same length.
- Sensitive to outliers.
- Not scale-free; compare only models predicting the same target.
Questions
How do I calculate RMSE?
RMSE vs MAE?
What is a good RMSE?
Does it also show MSE?
Features
- RMSE and MSE shown
- Same units as target
- Runs in your browser
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
Finding mean, median, and mode
Khan Academy
Baseline stats for accuracy and evaluation helpers.
Watch on YouTubeMachine Learning for Everybody
freeCodeCamp.org
Accessible ML survey for AI calculator and metric tools.
Watch on YouTube
- Data Index
Math is Fun
Stats primers when reading ML evaluation outputs.
- DeepLearning.AI
DeepLearning.AI
Courses and explainers for modern AI tooling.