RMSE Calculator

Root mean squared error between actual and predicted values.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

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

1
Step 1
Enter the actual values.
2
Step 2
Enter the predicted values in the same order.
3
Step 3
Press Calculate. RMSE and MSE are both shown.

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?
Take the square root of the mean of the squared errors.
RMSE vs MAE?
RMSE punishes large errors more. If RMSE is far above MAE, large errors are present.
What is a good RMSE?
Smaller is better, and it should be judged against the spread of the target.
Does it also show MSE?
Yes, MSE is listed in the result.

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 YouTube
  • Machine 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.