Inventory & forecasting

Forecast accuracy (MAPE) (MAPE)

Mean absolute percentage error (MAPE) is the average size of forecast errors as a percentage of the actual values. A MAPE of 8% means forecasts were off by 8% on average, in either direction.

Formula

MAPE=Sum of |Actual − Forecast| ÷ |Actual|Number of periods× 100%
|Actual − Forecast|
The size of the error, ignoring whether the forecast was too high or too low.
Number of periods
How many weeks, months or items you are averaging over. Periods with an actual of zero are left out.

Try it with your numbers

Change any value and the result updates. Nothing you type leaves your browser.

Error for this one period—
Full calculator: Forecast accuracy calculator

Worked example

Three weeks of sales: actuals 100, 120 and 80; forecasts 90, 126 and 88. The errors are 10%, 5% and 10%. MAPE = (10% + 5% + 10%) ÷ 3 ≈ 8.3%.

How to read it

Always compare with a simple baseline, such as "next week = last week". A model is only useful if it beats the baseline. Use WAPE for totals across many items and check bias to see if you over- or under-forecast.

How to calculate MAPE in SQL, Power BI and Excel

Copy, rename the tables and columns to match yours, and run. The SQL is written for PostgreSQL and works with small changes in BigQuery, Snowflake or SQL Server.

SELECT ROUND(100.0 * AVG(ABS(actual - forecast) / NULLIF(ABS(actual), 0)), 2) AS mape_pct,
       ROUND(100.0 * SUM(ABS(actual - forecast)) / NULLIF(SUM(ABS(actual)), 0), 2) AS wape_pct,
       ROUND(100.0 * SUM(forecast - actual) / NULLIF(SUM(actual), 0), 2)       AS bias_pct
FROM forecast_vs_actual
WHERE week >= date '2026-01-01';

Excel: B = actuals, C = forecasts. Works as a normal formula in Excel 365; older Excel needs Ctrl+Shift+Enter.

Common mistakes

  • Using MAPE when some actuals are zero or tiny. One small week can blow it up; use WAPE instead.
  • Looking at error size only. A forecast that is always too high has bias; check it separately.
  • Comparing MAPE across products with very different volumes.

Questions people ask

What is the difference between MAPE and WAPE?

MAPE averages the percentage error of each period, so small periods count as much as big ones. WAPE divides total error by total actuals, so big periods count more and zeros do not break it.

What is a good MAPE?

It depends on how noisy your data is. The useful test is whether your forecast beats a simple baseline by a clear margin.

Want MAPE measured the same way everywhere?

We define it with your team, build it into your data and dashboards, and keep it right. See Demand & revenue forecasting, or start with a two-week Data Health Check.