Home · Statistics · Correlation & Regression · MSE Calculator — Mean Squared Error

MSE Calculator — Mean Squared Error

The mean squared error between actual and predicted values: the average of the squared differences, the standard loss measure for prediction accuracy.

Your figures

Example result — edit the figures to make it yours

0.6

RMSE0.774597
Mean absolute error0.6
Pairs (n)5

What this calculator does

The mean squared error between actual and predicted values: the average of the squared differences, the standard loss measure for prediction accuracy. Every figure on this page is computed from the standard definition stated below — the same definition used in textbooks and reference tables — with no hidden rounding steps, and the method notes name the exact convention where more than one exists.

The formula and method

MSE = (1/n)·Σ(actual − predicted)²

Both lists are matched by position and must have the same length.

Squaring makes every error positive and punishes large misses disproportionately: one error of 3 costs as much as nine errors of 1.

MSE is in squared units of the target; take its square root (RMSE) to return to the original units.

Worked example

With the example inputs this page opens with, the result is 0.6000. Change any figure and the result updates with the same formula.

Quick reference

Quick reference — the worked example in full
FigureValue
Result0.6000
RMSE0.774597
Mean absolute error0.6
Pairs (n)5

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

Why square the errors instead of averaging their sizes?

Squaring penalises big misses far more than small ones, which matches many real costs, and it makes the loss smooth and differentiable — the reason least-squares fitting and MSE training are the same thing. If big misses are not disproportionately bad, MAE is the fairer summary.

What is a good MSE?

There is no universal scale: it depends on the units and variance of the target. Compare it with the variance of the actual values — an MSE near that variance means the predictions are barely better than predicting the mean.

How does the MSE Calculator — Mean Squared Error work?

The mean squared error between actual and predicted values: the average of the squared differences, the standard loss measure for prediction accuracy. Actual values · Predicted values → Mean squared error. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the MSE Calculator — Mean Squared Error need?

Actual values · Predicted values → Mean squared error. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.