How To Calculate Mean Squared Error (MSE) In Excel - Statology

Statology
  • About
  • Course
  • Basic Stats
  • Machine Learning
  • Software Tutorials
    • Excel
    • Google Sheets
    • MongoDB
    • MySQL
    • Power BI
    • PySpark
    • Python
    • R
    • SAS
    • SPSS
    • Stata
    • TI-84
    • VBA
  • Tools
    • Calculators
    • Critical Value Tables
    • Glossary
by Zach Bobbitt Last updated on Last updated on February 27, 2020

One of the most common metrics used to measure the forecast accuracy of a model is MSE, which stands for mean squared error. It is calculated as:

MSE = (1/n) * Σ(actual – forecast)2

where:

  • Σ – a fancy symbol that means “sum”
  • n – sample size
  • actual – the actual data value
  • forecast – the forecasted data value

The lower the value for MSE, the better a model is able to forecast values accurately.

How to Calculate MSE in Excel

To calculate MSE in Excel, we can perform the following steps:

Step 1: Enter the actual values and forecasted values in two separate columns.

How to calculate MSE in Excel

Step 2: Calculate the squared error for each row.

Recall that the squared error is calculated as: (actual – forecast)2. We will use this formula to calculate the squared error for each row.

Column D displays the squared error and Column E shows the formula we used:

Mean squared error in Excel

Repeat this formula for each row:

MSE calculation in Excel

Step 3: Calculate the mean squared error.

Calculate MSE by simply finding the average of the values in column D:

MSE in Excel

The MSE of this model turns out to be 5.917.

Additional Resources

Two other popular metrics used to assess model accuracy are MAD – mean absolute deviation, and MAPE – mean absolute percentage error. The following tutorials explain how to calculate these metrics in Excel:

How to Calculate Mean Absolute Deviation (MAD) in Excel How to Calculate Mean Absolute Percentage Error (MAPE) in Excel

Zach Bobbitt

Hey there. My name is Zach Bobbitt. I have a Masters of Science degree in Applied Statistics and I’ve worked on machine learning algorithms for professional businesses in both healthcare and retail. I’m passionate about statistics, machine learning, and data visualization and I created Statology to be a resource for both students and teachers alike.  My goal with this site is to help you learn statistics through using simple terms, plenty of real-world examples, and helpful illustrations.

Post navigation

Prev How to Calculate Mean Absolute Percentage Error (MAPE) in ExcelNext How to Calculate a Five Number Summary in Excel

One Reply to “How to Calculate Mean Squared Error (MSE) in Excel”

  1. Very useful article, everything described in very convenient form, without mathematical/statistical hard language. I very appreciate it, thank You brother!

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Comment *

Name *

Email *

Δ

Search

Search for: Search

ABOUT STATOLOGY

Statology makes learning statistics easy by explaining topics in simple and straightforward ways. Our team of writers have over 40 years of experience in the fields of Machine Learning, AI and Statistics. Learn more about our team here.

Featured Posts

  • Competing Risks Analysis: When Multiple Events Can Happen FirstMarch 13, 2026
  • Automating Statistical Reporting with Copilot in Microsoft 365 March 12, 2026
  • Fixed Effects vs. Random Effects: 5 Real-World ExamplesMarch 11, 2026
  • 3 Confidence-Interval Gotchas (and What They Really Mean)March 10, 2026
  • How to Filter Text Columns in Vaex DataFramesMarch 9, 2026
  • 5 Excel Pivot Table Techniques for Statistical AnalysisMarch 9, 2026

Statology Study

Statology Study is the ultimate online statistics study guide that helps you study and practice all of the core concepts taught in any elementary statistics course and makes your life so much easier as a student.

statology study

Introduction to Statistics Course

Introduction to Statistics is our premier online video course that teaches you all of the topics covered in introductory statistics. Get started with our course today.

introduction to statistics

You Might Also Like

  • How to Calculate Weighted MAPE in Excel
  • How to Calculate Mean Squared Error (MSE) in Python
  • How to Calculate Mean Absolute Percentage Error…
  • How to Calculate SMAPE in R
  • How to Calculate MAPE in R
  • How to Calculate MSE in R
Join the Statology Community

Sign up to receive Statology's exclusive study resource: 100 practice problems with step-by-step solutions. Plus, get our latest insights, tutorials, and data analysis tips straight to your inbox!

By subscribing you accept Statology's Privacy Policy.

Leave this field empty if you're human:

Từ khóa » Tính Mse