Mean Squared Error Calculator

Work out the mean squared error (MSE) and root mean squared error (RMSE) between a list of actual values and a list of predicted values. Useful for checking how far a forecast or model is from the real numbers.

1 Paste your text and pick the options

2 Your answer

Your answer shows here as you type.

How to use the Mean Squared Error Calculator

  1. Enter the actual values in the first box, separated by commas or spaces.
  2. Enter the predicted values in the second box, in the same order.
  3. Read the MSE and RMSE; lower values mean predictions closer to the actual values.

Frequently asked questions

What is the formula for mean squared error?

MSE = (1/n) × Σ(actual − predicted)², where n is the number of pairs. Each error is squared, then the squares are averaged.

How is RMSE different from MSE?

RMSE is the square root of MSE. It is in the same units as the original data, so it is easier to read as a typical size of error.

Is a lower mean squared error always better?

Lower is better for the same data set. An MSE of 0 means every prediction matches its actual value. There is no universal good value, because it depends on the scale of the data.

Why are errors squared?

Squaring stops positive and negative errors from cancelling out and gives large errors more weight than small ones.

Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.