Tabellab

Forecast Errors: Error, Absolute Error & Squared Error

Lesson 1 of 20Lab

All lessons
  1. Forecast Errors: Error, Absolute Error & Squared ErrorLabFree
  2. MAPE vs WAPE vs sMAPE: Why MAPE Breaks on Small ActualsLab Locked
  3. Forecast Bias, Bias % & the Tracking Signal (with a Warning Rule)Lab Locked
  4. MAE & RMSE by SKU and by Product Family: Accuracy Depends on the LevelLab Locked
  5. The Naive Benchmark & Forecast Value Added (FVA)Lab Locked
  6. FVA Stairstep: Statistical Forecast vs Planner Override vs ConsensusLab Locked
  7. Accuracy by Segment: ABC/XYZ Classes & Realistic TargetsLab Locked
  8. Mid-Course Dashboard: Accuracy %, FVA, Bias & a Trend ChartLab Locked
  9. Forecast Lag: Accuracy 1, 2 and 3 Months Ahead & the Lead-Time RuleLab Locked
  10. Seasonal Naive Benchmark & MASE: A Scale-Free Error for Seasonal SKUsLab Locked
  11. Unit vs Value Accuracy: Weighting Forecast Errors by Revenue and MarginLab Locked
  12. Promotions vs Base Months: Split the Accuracy and Find the Uplift BiasLab Locked
  13. Zero Actuals, Launches & Phase-Outs: Clean Rules for the Accuracy ReportLab Locked
  14. Bias by Customer Channel: When Over- and Under-Forecasts Cancel in the TotalLab Locked
  15. The Cost of Forecast Error: Excess Stock vs Lost Margin by SKULab Locked
  16. Which Overrides Add Value? Override Size, Direction & Hit RateLab Locked
  17. Rolling 3-Month & Quarterly WAPE: Separating Real Improvement from NoiseLab Locked
  18. Forecastability: Expected WAPE from Demand Variability with SLOPE & INTERCEPTLab Locked
  19. Forecast Ranges: Checking 80 % Interval Coverage and WidthLab Locked
  20. Final Project: SKU Accuracy Review Pack with FVA, Bias & Action FlagsLab Locked

You are not signed in — the lab works, but your progress is not saved. Sign up

Lesson 1 of 20 is free. Unlock all 20 hands-on labs, the final exam and your certificate.

Buy course — $9.90
Loading the spreadsheet…

Why forecast accuracy starts with the error

Every demand planner, supply chain analyst and finance controller eventually hears the question: "How good is our forecast?" The honest answer is never a feeling. It is a number, and the right number depends on what you want to know. Do you want to know how far off the forecast typically is? Whether it is consistently too high or too low? Whether one terrible month should count more than three slightly-off ones? Each of those questions has its own metric.

This free first lesson is for anyone who has a column of actuals and a column of forecasts in Excel and wants to measure them properly, whether you plan demand for consumer goods, forecast sales for a shop or check a budget against reality. We use Fernhill Home Care, a fictional company that sells dish soap, laundry pods and cleaning sprays to retailers, and twelve months of actuals and forecasts for one SKU. The numbers are the same as in the lab above, and they are illustrative only.

Every accuracy metric you will meet later in this course, MAPE, WAPE, bias, tracking signal, RMSE and forecast value added, is built from three simple building blocks: the error, the absolute error and the squared error. If you understand these three columns, the rest of forecast accuracy becomes a matter of how you add them up.

The core concept: three ways to look at one miss

The error of a period is the difference between forecast and actual. In this course the convention is error = forecast − actual, so a positive error means the forecast was too high (over-forecasting, which usually means extra stock), and a negative error means it was too low (under-forecasting, which risks lost sales). Many textbooks and software packages use actual − forecast instead. The maths is identical, only the sign flips, so always check which convention a report uses before you compare numbers.

The problem with the plain error is that it has a sign, and signs cancel. An over-forecast of 60 cases in one month and an under-forecast of 60 in the next average to zero, although both months were wrong. That is why accuracy metrics remove the sign. The absolute error =ABS(C2-B2) simply drops it: both months count as 60. The squared error =(C2-B2)^2 also removes the sign, but it changes the weighting: a miss of 10 counts 100, a miss of 100 counts 10,000. Squaring punishes large errors far more than small ones.

Averaging each column gives you three different statistics. The average of the signed errors is the mean error, which measures bias: the direction of the errors, not their size. The average of the absolute errors is the MAE, mean absolute error, the typical size of a miss in units. The average of the squared errors is the MSE, and its square root, the RMSE, brings it back to units while keeping the extra weight on big misses.

Actual vs forecast, cases per month1,1001,2001,3001,4001,5001,6001,700JanFebMarAprMayJunJulAugSepOctNovDecActualForecastFernhill Home Care, one SKU, 2025. Fictional, illustrative data.
Twelve months of actuals and forecasts for one Fernhill SKU. The two lines look close, which is exactly why you need numbers rather than a visual impression.

Worked example: twelve months for one SKU

Here is the full calculation, exactly as you build it in the lab. Column D holds the error, column E the absolute error and column F the squared error. The last two rows show the totals and the averages.

Month (A)Actual (B)Forecast (C)Error (D) =C2-B2Abs error (E) =ABS(D2)Squared error (F) =D2^2
Jan 20251,1801,200+2020400
Feb 20251,2401,200−40401,600
Mar 20251,3101,250−60603,600
Apr 20251,2751,300+2525625
May 20251,3501,320−3030900
Jun 20251,4201,380−40401,600
Jul 20251,3901,450+60603,600
Aug 20251,4601,400−60603,600
Sep 20251,3301,400+70704,900
Oct 20251,2901,300+1010100
Nov 20251,5201,450−70704,900
Dec 20251,6101,500−11011012,100
Total16,37516,150−22559537,925
Average-18.75 (mean error)49.58 (MAE)3,160.4 (MSE)

Read the columns one at a time. The error column has 5 positive and 7 negative months. Its total is −225 cases, so the mean error is -18.75: over the year the forecast was a little too low on average, by about 19 cases a month. That sounds almost perfect, but the absolute error column tells a different story: the typical miss was 49.58 cases, more than two and a half times as large. The positive and negative errors hid most of the inaccuracy from the plain average.

The squared error column shows the third view. December's miss of 110 cases becomes 12,100, which is 32 % of the year's total squared error, although December is only one month in twelve and only 18 % of the total absolute error. This is why the RMSE (56.22) is higher than the MAE (49.58). RMSE is always at least as large as MAE, and the gap between them grows when a few large misses dominate.

Monthly error = forecast − actual (cases)−120−80−400+40+80+20Jan−40Feb−60Mar+25Apr−30May−40Jun+60Jul−60Aug+70Sep+10Oct−70Nov−110DecPeach = over-forecast (too much stock), blue = under-forecast. Mean error −18.75, MAE 49.58.
The signed errors month by month. Positive (over-forecast) and negative (under-forecast) months partly cancel, so the mean error is small even though every month missed.

Squared error by month: big misses dominate02,0004,0006,0008,00010,00012,00014,000400Jan1,600Feb3,600Mar625Apr900May1,600Jun3,600Jul3,600Aug4,900Sep100Oct4,900Nov12,100DecSum of squared errors 37,925. December (error −110) = 32 % of it. Its absolute error is only 18 % of the total.
The same errors squared. December's single large miss dominates the squared error, which is exactly what RMSE is designed to notice.

Which number answers which question?

The four results side by side make the difference clear. None of them is "the" accuracy, each answers a different question, and a good accuracy report usually shows a size measure and a bias measure together.

MeasureExcel formulaResultUnitWhat it tells you
Mean error (bias)=AVERAGE(D2:D13)-18.75casesDirection: on average slightly under-forecast
MAE=AVERAGE(E2:E13)49.58casesTypical size of a miss
MSE=AVERAGE(F2:F13)3,160.4cases²Size of misses, big ones weighted heavily
RMSE=SQRT(AVERAGE(F2:F13))56.22casesLike MAE, but penalises large misses
WAPE (preview of lesson 2)=SUM(E2:E13)/SUM(B2:B13)3.6 %%Error relative to volume

MAE is the easiest to explain to a sales director: "on average we are about 50 cases off per month". It is in the same unit as the forecast, and it treats every case of error the same way. RMSE is the better choice when big misses are disproportionately expensive, for example when a large under-forecast empties a retailer's shelf for a week. MSE itself is rarely reported because its unit (cases squared) means nothing to people, but it is what many statistical models minimise internally.

Both MAE and RMSE are measured in units, so you cannot compare them across products of very different size: an MAE of 50 is excellent for a SKU selling 10,000 cases and terrible for one selling 100. For comparisons across SKUs you need a relative measure such as WAPE, which the table previews and which lesson 2 covers in detail together with MAPE and its traps.

Is an MAE of 50 cases good or bad?

An accuracy metric on its own has no verdict attached. An MAE of 50 cases means something only when you compare it with something else. Three comparisons are useful in practice. First, compare it with volume: 50 cases on an average month of about 1,365 cases is roughly 3.6 % of demand, which for an established household product is a small error. Second, compare it with the same SKU in earlier periods: is the forecast getting better or worse over time? Third, compare it with a simple benchmark, such as a forecast that just repeats last month's actual.

The third comparison is the most revealing and the least used. If a forecast that anyone could make in two seconds is just as accurate as the forecast your team spends hours on, the effort adds no value. Measuring that difference is called forecast value added (FVA), and it is the second half of this course. For now, remember that a metric is a measuring stick, not a grade: it becomes meaningful once you hold it against a target, a trend or a benchmark.

One more practical point concerns the cost of errors. In many businesses an under-forecast and an over-forecast of the same size do not cost the same. Too little stock may mean lost sales and an annoyed retailer, too much may mean storage costs or, for products with a short shelf life, write-offs. MAE and RMSE treat both directions equally, which is exactly why you always keep the signed error and the bias next to them: they show which kind of error your forecast tends to make.

Step by step: building it in Excel

  1. Put the periods in column A, the actuals in column B and the forecasts in column C, one row per period, with headers in row 1. Make sure both columns use the same unit and the same period (a forecast made for March must sit next to March's actual).
  2. In D2 type =C2-B2 and press Enter. This is the error, forecast minus actual.
  3. In E2 type =ABS(D2). ABS returns the number without its sign.
  4. In F2 type =D2^2. The caret ^ raises to a power, so ^2 squares. =D2*D2 gives the same result.
  5. Select D2:F13 and press Ctrl+D to fill the three formulas down at once. Alternatively select D2:F2 and double-click the fill handle at the bottom right of the selection.
  6. In B15 type =AVERAGE(E2:E13) for the MAE, and in B16 =AVERAGE(D2:D13) for the mean error. Compare them: if the mean error is close to zero but the MAE is large, the errors are cancelling.
  7. Optionally add =SQRT(AVERAGE(F2:F13)) for the RMSE. Format the results with one or two decimals via Home › Number › Decrease Decimal or Ctrl+1 › Number.
  8. Press Ctrl+` (the key left of 1 on most keyboards) to show all formulas and check that every row refers to its own row. Press it again to go back to values.
You can calculate MAE in a single cell without helper columns: =SUMPRODUCT(ABS(C2:C13-B2:B13))/COUNT(B2:B13). In Excel 365 =AVERAGE(ABS(C2:C13-B2:B13)) also works, because arrays are evaluated automatically. Helper columns are still better while you learn, because you can see every month.
Only compare forecasts and actuals for periods where both exist. If a month has no actual yet, leave the error cells empty rather than 0: AVERAGE ignores empty cells but counts zeros, and a zero would make the forecast look more accurate than it is.

Forecast accuracy in Excel: error, absolute error, squared error, MAE and forecast value added
Forecast accuracy and forecast value added are built from the same three error columns you calculate in this lesson.

Common mistakes and how to spot them

  • Reporting the mean error as accuracy. A mean error close to zero only means the misses cancel. Always show an absolute measure (MAE, WAPE) next to it. Symptom: a "near-perfect" forecast that planners do not trust.
  • Mixing sign conventions. One report uses forecast − actual, another actual − forecast, and suddenly the bias seems to flip. Write the convention in the header of the column.
  • Doubling instead of squaring. =D2*2 is not the squared error. Squaring is =D2^2 or =D2*D2. Symptom: column F is exactly twice column E.
  • Squaring the absolute error and expecting something different. =ABS(D2)^2 is correct but unnecessary, squaring already removes the sign.
  • Averaging the RMSE of several products. RMSE is not additive. To combine products, average their squared errors first and take the root at the end, or use a relative measure.
  • Misaligned periods. A forecast copied one row too high compares February's forecast with January's actual. Symptom: errors that look like the month-to-month change of the actuals.
  • Zeros instead of blanks. Future periods filled with 0 make the error look like the full forecast, or make averages too optimistic. Keep them empty.
  • Comparing MAE across very different SKUs. MAE is in units, so large SKUs always look worse. Use a relative measure such as WAPE for cross-SKU comparisons.

Quick reference: functions and shortcuts used

Function / shortcutUse in this lessonExample
ABSAbsolute value: removes the sign of an error=ABS(C2-B2)
^ (power)Squares the error=(C2-B2)^2
AVERAGEMean error, MAE, MSE=AVERAGE(E2:E13)
SQRTSquare root, turns MSE into RMSE=SQRT(AVERAGE(F2:F13))
SUMPRODUCTMAE in one cell without helper columns=SUMPRODUCT(ABS(C2:C13-B2:B13))/COUNT(B2:B13)
SUMXMY2Sum of squared differences of two ranges=SQRT(SUMXMY2(C2:C13,B2:B13)/COUNT(B2:B13))
COUNTNumber of periods with numbers=COUNT(B2:B13)
Ctrl+DFill a formula down the selected rangeD2 → D13
Ctrl+`Show formulas instead of values (press again to switch back)Check columns D to F
Alt+=AutoSum below a columnTotals in row 14

Real-world uses

  • Monthly S&OP review. Demand planners report MAE and mean error per product family before the sales and operations planning meeting, so the discussion starts from facts rather than impressions.
  • Safety stock planning. The size of past forecast errors feeds safety stock: the larger and more variable the errors, the more buffer stock a warehouse needs to reach the same service level. RMSE or the standard deviation of the errors is typically used here.
  • Comparing two forecasting methods. Before switching from a simple moving average to a seasonal model, an analyst compares their MAE and RMSE on the same past months. Whichever has the lower error, without a strong bias, wins.
  • Budget versus actual in finance. The same three columns work for revenue or cost budgets: error per month, absolute error for the size of the deviation, and the mean error to see whether budgets are systematically optimistic.
  • Retail replenishment. A store chain checks which SKUs have large squared errors in peak months, because those big misses are the ones that cause empty shelves or markdowns.

What you will build in the rest of this course

This first lesson is free. Lessons 2 to 20 are part of the full course, a one-time purchase of $9.90, and they all use the same Fernhill Home Care data so you can see how each metric builds on the error columns from this lesson.

Lesson 2, MAPE vs WAPE vs sMAPE: Why MAPE Breaks on Small Actuals. You calculate the three percentage measures for ten SKUs and watch two tiny SKUs push MAPE to an absurd level while WAPE tells the real story. You will know which one to put in your report and why.

Lesson 3, Forecast Bias, Bias % & the Tracking Signal (with a Warning Rule). The mean error from this lesson becomes a proper bias percentage and a running tracking signal, and a formula flags the months where the forecast drifts out of a ±4 band.

Lesson 4, MAE & RMSE by SKU and by Product Family: Accuracy Depends on the Level. With AVERAGEIFS you calculate MAE and RMSE for three SKUs, add them up to the family level and see how much smaller the error becomes when errors offset each other.

Lesson 5, The Naive Benchmark & Forecast Value Added (FVA). Is your forecast better than simply repeating last month? You build the naive forecast and measure how much value the statistical model really adds.

Lesson 6, FVA Stairstep: Statistical Forecast vs Planner Override vs Consensus. You measure every step of the planning process and find the one that makes the forecast worse, which is often the most valuable finding in a forecasting review.

Lesson 7, Accuracy by Segment: ABC/XYZ Classes & Realistic Targets. Not every SKU can be forecast equally well. You classify SKUs by variability, set fair targets per class and calculate the volume-weighted WAPE of the important items.

Lesson 8, Mid-Course Dashboard: Accuracy %, FVA, Bias & a Trend Chart. Everything comes together in a monthly dashboard with accuracy against the naive benchmark, six-month FVA and bias, and a trend chart you can reuse for your own data.

Summary

Forecast accuracy starts with three columns: the error (forecast − actual), the absolute error and the squared error. Their averages answer different questions: the mean error shows bias, MAE shows the typical size of a miss, and RMSE gives extra weight to large misses. For Fernhill's SKU the mean error is only -18.75 cases, but the MAE is 49.58 and the RMSE 56.22, driven by December's miss of 110 cases.

Now build it yourself in the lab above: the three error columns in D, E and F, then the MAE in B15. Compare it with the mean error in B16, and you will never confuse bias with accuracy again.

Frequently asked questions

How do I calculate forecast error in Excel?

Subtract the actual from the forecast in each row, for example =C2-B2. A positive result means over-forecasting, a negative one under-forecasting. Some reports use actual minus forecast, which only flips the sign.

What is the difference between MAE and RMSE?

MAE is the average of the absolute errors and treats every unit of error equally. RMSE is the square root of the average squared error, so it gives large misses more weight and is always at least as large as MAE.

How do I calculate MAE in Excel?

Add a column with =ABS(C2-B2) and take =AVERAGE of that column. In one cell you can use =SUMPRODUCT(ABS(C2:C13-B2:B13))/COUNT(B2:B13).

How do I calculate RMSE in Excel?

Square each error with =(C2-B2)^2, average the squared errors and take the square root: =SQRT(AVERAGE(F2:F13)). Without a helper column you can use =SQRT(SUMXMY2(C2:C13,B2:B13)/COUNT(B2:B13)).

Why is the average forecast error not a good accuracy measure?

Positive and negative errors cancel each other out, so a forecast that is badly wrong in both directions can have an average error near zero. The average signed error measures bias, while accuracy needs absolute or squared errors.

Should forecast error be forecast minus actual or actual minus forecast?

Both conventions are common and give the same accuracy figures, only the sign of the error and the bias flips. Pick one, write it in your report and use it consistently.

Keep going: Forecast Accuracy & Forecast Value Added: MAPE, WAPE, Bias & FVA

This free lab is lesson 1 of 20. Unlock the other 19 hands-on labs, the final exam and your certificate for a one-time $9.90.

  1. MAPE vs WAPE vs sMAPE: Why MAPE Breaks on Small Actuals
  2. Forecast Bias, Bias % & the Tracking Signal (with a Warning Rule)
  3. MAE & RMSE by SKU and by Product Family: Accuracy Depends on the Level
  4. The Naive Benchmark & Forecast Value Added (FVA)
  5. FVA Stairstep: Statistical Forecast vs Planner Override vs Consensus
  6. Accuracy by Segment: ABC/XYZ Classes & Realistic Targets
  7. Mid-Course Dashboard: Accuracy %, FVA, Bias & a Trend Chart
  8. Forecast Lag: Accuracy 1, 2 and 3 Months Ahead & the Lead-Time Rule
  9. Seasonal Naive Benchmark & MASE: A Scale-Free Error for Seasonal SKUs
  10. Unit vs Value Accuracy: Weighting Forecast Errors by Revenue and Margin
  11. Promotions vs Base Months: Split the Accuracy and Find the Uplift Bias
  12. Zero Actuals, Launches & Phase-Outs: Clean Rules for the Accuracy Report
  13. Bias by Customer Channel: When Over- and Under-Forecasts Cancel in the Total
  14. The Cost of Forecast Error: Excess Stock vs Lost Margin by SKU
  15. Which Overrides Add Value? Override Size, Direction & Hit Rate
  16. Rolling 3-Month & Quarterly WAPE: Separating Real Improvement from Noise
  17. Forecastability: Expected WAPE from Demand Variability with SLOPE & INTERCEPT
  18. Forecast Ranges: Checking 80 % Interval Coverage and Width
  19. Final Project: SKU Accuracy Review Pack with FVA, Bias & Action Flags

Buy course — $9.90 See the full course