RMSE, MAE and MAPE calculator

Paste the actual values and your predictions in the same order to measure how far off the model or forecast is. You get the root mean square error alongside the other common error measures.

Numbers separated by commas, spaces or semicolons.
The same number of values, in the same order as the actual values.
RMSE (root mean square error)0.612372
MAE (mean absolute error)0.5
MSE (mean squared error)
0.375
MAPE (mean absolute percentage error)
32.7381 %
Mean error, predicted − actual (bias)
0.25
R² (coefficient of determination)
0.948608
Number of pairs
4

Runs in your browser: nothing you enter is sent anywhere.

How to use it

  1. Paste the actual (observed) values into the first box.
  2. Paste the predicted values, in the same order, into the second box.
  3. Read RMSE, MAE and the other measures.

Formulas

With n pairs and error eᵢ = actualᵢ − predictedᵢ:

  • MAE = Σ|eᵢ| ÷ n
  • MSE = Σeᵢ² ÷ n
  • RMSE = √MSE
  • MAPE = 100 × Σ|eᵢ ÷ actualᵢ| ÷ n, in percent
  • Bias = Σ(predictedᵢ − actualᵢ) ÷ n; positive means the predictions are too high on average
  • R² = 1 − Σeᵢ² ÷ Σ(actualᵢ − mean of actual)²

Worked example

Actual: 3, −0.5, 2, 7. Predicted: 2.5, 0, 2, 8.

Errors: 0.5, −0.5, 0, −1. MAE = (0.5 + 0.5 + 0 + 1) ÷ 4 = 0.5. MSE = (0.25 + 0.25 + 0 + 1) ÷ 4 = 0.375, so RMSE = √0.375 = 0.612. MAPE = (0.5/3 + 0.5/0.5 + 0 + 1/7) ÷ 4 × 100 = 32.7%; the value −0.5 alone contributes 100%, which shows how MAPE behaves near zero. Bias = (−0.5 + 0.5 + 0 + 1) ÷ 4 = 0.25. The mean of the actual values is 2.875 and Σ(actual − mean)² = 29.19, so R² = 1 − 1.5 ÷ 29.19 = 0.949.

Tips and common mistakes

  • Keep the two lists aligned: one missing value shifts every pair after it.
  • Compare RMSE only between models predicting the same data in the same units.
  • MSE is in squared units; report RMSE when you want a number in the data’s own units.

Frequently asked questions

What is the difference between RMSE and MAE?

Both are in the units of your data. MAE is the average size of the errors. RMSE squares the errors before averaging, so large errors count more; RMSE is always at least as large as MAE, and a big gap between them means a few large misses.

What is a good RMSE?

There is no universal threshold: it depends on the scale of the data. Compare RMSE with the spread of the actual values, or between models on the same data. R² puts it on a 0-to-1 style scale.

Why is MAPE missing?

MAPE divides each error by the actual value, so it is not defined when any actual value is 0, and it becomes huge when actual values are close to 0. Use MAE or RMSE in that case.

Can R² be negative?

Yes. Here R² = 1 − Σ errors² ÷ Σ (actual − mean)². If the predictions are worse than always predicting the mean of the actual values, it drops below 0.

More in Math

All tools in this category: Math ·Updated November 4, 2026

Privacy choices

Google Analytics shows us which tools are used and whether they work. It may set cookies. Your choice is kept in this browser.