How to Calculate the RMSE or Root Mean Squared Error

Written by tricia lobo
  • Share
  • Tweet
  • Share
  • Email

When you graph several scientific data points, you may wish to fit a best-fit curve to your points, using software. However, the curve will not match your data points exactly, and when it doesn't, you may wish to calculate the root mean squared error (RMSE), in order to gauge the extent to which your data points vary from your curve. For each data point, the RMSE formula calculates the difference between the actual value of the data point, and the value of the data point on the best-fit curve.

Skill level:

Other People Are Reading


  1. 1

    Find the corresponding y-value on your best-fit curve for each value of x corresponding to your original data points.

  2. 2

    Subtract the actual value of y from the value of y on your best-fit curve, for each data point that you have. The difference between the actual value of y and the value of y on your best-fit curve is called the residual. Square each residual, then sum your residuals.

  3. 3

    Divide the sum of your residuals by the total number of data points that you have, and take the square root of the quotient. This gives the root mean squared error.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.