MAPE and WMAPE calculator, with forecast bias

WMAPE is the sum of absolute errors divided by the sum of actual sales, so a fast seller counts for more than a slow mover, while MAPE averages the percentage error of each row and is undefined when an actual is zero. Enter up to ten rows of actuals and forecasts to get both, the forecast bias and the comparison with a naive forecast.

Last reviewed

Invented sample SKUs

Slow movers here are rows selling under 1% of total actual sales.

Actual and forecast by SKU
RowSKUActualForecastNaive forecastError ÷ actualActions
Row 17.4%
Row 29.4%
Row 311.1%
Row 415.8%
Row 520.0%
Row 650.0%
Row 7100.0%
Row 8undefined (A = 0)
WMAPE
10.4%naive 12.3%
MAPE
30.5%naive 22.3%
Bias
−1.0%
Error relative to naive (model ÷ naive absolute error)
0.85

WMAPE is 10.4% and MAPE is 30.5%; bias: under-forecast by 1.0%.

MAPE is undefined for 1 row with zero actuals, so it is left out of MAPE.

Relative to naive: the forecast's total absolute error ÷ the naive forecast's. Below 1, the forecast misses by fewer units than the naive one; 0.85 here.

WMAPE = Σ|A − F| ÷ ΣA

In Excel=SUMPRODUCT(ABS(B2:B9-C2:C9))/SUM(B2:B9)
Each row's share of the errorShare of the total absolute error by row. The largest is S-01 with 32%.
Data
Each row's share of the error
RowAbsolute error |A − F|Share of the error
S-014032%
S-023024%
S-032016%
S-041512%
S-0586%
S-0665%
S-0732%
S-0822%
Download CSV
Nothing you type leaves this page.Do this for every SKU from one export

The formula

WMAPE = Σ |Aᵢ − Fᵢ| ÷ Σ Aᵢ

  • Aᵢ = actual sales of SKU (or period) i, in units
  • Fᵢ = forecast for SKU (or period) i, in units
  • Both sums run over the same SKUs and periods

In Excel: =SUMPRODUCT(ABS(B2:B9-C2:C9))/SUM(B2:B9)[2]

How to use it with your export

First choose what a row is. "Different SKUs, one period" scores one month (or week) across up to ten SKUs, which shows how a few slow movers move MAPE. "Periods of one SKU" scores up to ten months of a single item and adds MASE. The calculator stops at ten rows, so treat it as a check on a sample; for a whole range, use the Excel formulas on this page on the full export.

Take the actuals from shipped or invoiced quantity, not order intake, and net out returns and credit notes before you copy them across. The calculator accepts no negative numbers, so a line where returns exceed shipments needs fixing in the export first. Keep actual and forecast in the same unit: pieces against cases makes an error look absurd. Months when the item was out of stock record lost sales as low sales, so flag or leave them out.

For the forecast column, use the forecast that existed before the period started, ideally the one you ordered on, not a figure refitted after the month closed. If your supplier needs 12 weeks, the forecast made 12 weeks earlier is the one that cost you stock or sales. Decimals can be typed with a point or a comma. Type whole numbers without a thousands separator (1200, not 1,200), or with a space (1 200): a single comma or point is read as the decimal sign.

The naive column is optional. Fill it with last period's actual sales for each row, or the same month last year for a seasonal item, and fill every row: the comparison appears only when no naive cell is empty. The calculator then shows the naive WMAPE and MAPE and the forecast's total absolute error divided by the naive one. Below 1, your forecast missed by fewer units than copying last period would have.

Read the results together. WMAPE gives the size of the error in units, MAPE the average percentage per row, with a note when rows with zero actuals are left out of it, and bias the direction: positive means the forecast ran high. The bars show each row's share of the total absolute error. The slow-mover switch removes rows selling under 1% of total actual sales, so you can see how much of MAPE they carry. In the plumbing-parts sample in our MAPE vs WMAPE article (not the sample rows above), one fast mover is 48% of the WMAPE error, while three slow movers supply about 82% of the percentage points behind MAPE.

To repeat the check every month, copy the Excel formula under the results: it is the WMAPE for the rows you entered, with actuals in column B and forecasts in column C from row 2. Extend the ranges to the end of your export, then run the same formula per ABC class, because a range-wide figure can hide a badly forecast tail. Keep the same actuals, horizon and sign convention from one month to the next, or the trend means nothing.

Assumptions and limits

  • A range-wide WMAPE can look healthy while the C items are badly forecast; read it per ABC class as well.
  • For an intermittent item, forecasting zero can improve WMAPE; watch bias and service levels on slow movers.
  • Sales are not demand: a month out of stock records low sales, so flag stock-out periods first.
  • Error one period ahead says little about error at a 12-week lead time; score at the horizon you order on when you can.
  • MASE here is scaled by the period-to-period changes in the actuals you entered, not by a separate training history as in the textbook definition, so read it as an in-sample check.

Frequently asked questions

How do I calculate MAPE in Excel?

Put actuals in column B and forecasts in column C, then enter =AVERAGE(IF(B2:B9<>0,ABS((B2:B9-C2:C9)/B2:B9))) and format the cell as a percentage. Rows with a zero actual are skipped, because MAPE is undefined there, which makes the result a modified MAPE. The formula needs Excel 365, or Ctrl+Shift+Enter in older versions.

How do I calculate WMAPE in Excel?

With actuals in column B and forecasts in column C, enter =SUMPRODUCT(ABS(B2:B9-C2:C9))/SUM(B2:B9) and format the cell as a percentage, extending both ranges to your last row. A zero actual adds its error to the top of the fraction and nothing to the bottom, so the formula fails only when every actual in the range is zero.

Can MAPE be calculated when actual sales are zero?

No. A zero actual means dividing by zero, so that row's percentage error is undefined, and actuals close to zero give extreme percentages. The calculator leaves zero rows out of MAPE and says how many, keeps them in WMAPE and bias, and shows WMAPE as undefined only when every actual is zero. Why slow movers push MAPE up even without zeros is covered in our MAPE vs WMAPE article.

What should I use as the naive forecast?

Last period's actual sales for each row, which is the naive method in Hyndman and Athanasopoulos's textbook; for a seasonal item, the same period last year (the seasonal naive method). The textbook treats such simple methods as benchmarks: if your forecast does not miss by fewer units than this free one, the method is not earning its keep.

What is MASE and when should I use it?

MASE divides a forecast's mean absolute error by the mean absolute change from one period to the next in the history, so a value below 1 beats, on average, a one-step naive forecast on the same history. It stays defined with zero sales unless every historical value is the same, which makes it useful for slow movers, but like WMAPE it can still favour forecasting zero on an intermittent item, so watch bias too. Set "The rows are" to "Periods of one SKU" to see it for one item over time.

Sources

  1. OTexts (Hyndman, R.J. & Athanasopoulos, G.), 2021. Forecasting: Principles and Practice, 3rd ed., §5.8 Evaluating point forecast accuracy and §5.10 Time series cross-validation (#sec-tscv)TextbookAccessed 2026-11-30
  2. Foresight: The International Journal of Applied Forecasting 6, 40–43 (Kolassa, S. & Schütz, W.), 2007. Advantages of the MAD/Mean ratio over the MAPEPrimary sourceAccessed 2026-11-30
  3. International Journal of Forecasting 22(4), 679–688 (Hyndman, R.J. & Koehler, A.B.); preprint read, 2006. Another look at measures of forecast accuracy (doi:10.1016/j.ijforecast.2006.03.001)Primary sourceAccessed 2026-11-30
  4. arXiv preprint (Hewamalage, H., Ackermann, K. & Bergmeir, C.), 2022. Forecast evaluation for data scientists: common pitfalls and best practices, §6.2.7 Intermittent series (arXiv:2203.10716v2)Primary sourceAccessed 2026-11-30
  5. OTexts (Hyndman, R.J. & Athanasopoulos, G.), 2021. Forecasting: Principles and Practice, 3rd ed., §5.2 Some simple forecasting methodsTextbookAccessed 2026-11-30