MAPE

Also known as: Mean absolute percentage error

On this page 7

MAPE, the mean absolute percentage error, is a forecast accuracy metric that averages the absolute errors of a forecast after dividing each error by the actual value, expressing the result as a percentage. In time series & forecasting within artificial intelligence, it is one of the most widely reported metrics because a statement such as “the model is off by 8 percent on average” is easy for business stakeholders to understand.

That convenience comes with well-documented statistical flaws: MAPE is undefined when actual values are zero, unstable when they are small, and it rewards forecasts that systematically underestimate demand. Experienced forecasters therefore report it alongside scale-free alternatives such as MASE or weighted percentage errors.

How MAPE is calculated

MAPE takes each period’s absolute error divided by the actual value, averages these ratios over all n periods and multiplies by 100. Written compactly, MAPE = (100 / n) × Σ |A_t − F_t| / |A_t|, where A_t is the actual value and F_t is the forecast at time t.

Because every error is normalized by its own actual value, the metric is scale-independent. A retailer can compare the accuracy of a product selling 20 units a week with one selling 20,000, which is impossible with MAE or RMSE expressed in units.

The worked calculation below shows how individual percentage errors combine into the final figure for a four-week horizon.

WeekActualForecastAbsolute percentage error
120018010.0%
225027510.0%
310013030.0%
44003805.0%
MAPEAverage of four rowsNot applicable13.75%
Example MAPE calculation over four periods

Week 3 contributes the largest share of the total even though its absolute miss of 30 units is moderate. This illustrates the central property of MAPE: periods with low actual values dominate the average.

Interpreting MAPE values

There is no universal threshold for a good MAPE, because achievable accuracy depends on the volatility, aggregation level and forecast horizon of the series. A rough reading guide is still common in practice, provided it is treated as context rather than a standard.

MAPE rangeCommon readingCaveat
Below 10%Highly accurateTypical for aggregated, stable series
10% to 20%GoodRealistic for many product-level forecasts
20% to 50%Reasonable to weakNormal for volatile or short-horizon items
Above 50%InaccurateMay reflect small actual values, not poor models
Rough interpretation ranges and their caveats

Comparisons are only meaningful on the same data and horizon. A MAPE of 25 percent on daily store-level sales can represent better modeling than 6 percent on national monthly totals, since aggregation cancels noise.

Statistical weaknesses of MAPE

MAPE has three structural weaknesses that matter in machine learning work. First, it is undefined when any actual value is zero, which is routine in intermittent demand. Second, it becomes explosive near zero: an actual of 1 and a forecast of 5 yields a 400 percent error that can outweigh hundreds of well-forecast periods.

Third, MAPE is asymmetric in practice. For nonnegative forecasts, an under-forecast can never exceed 100 percent error, whereas an over-forecast is unbounded. A model trained or selected to minimize MAPE therefore tends to produce forecasts below the median, a form of systematic forecast bias that can lead to stockouts when the forecast drives replenishment.

MAPE also assumes a meaningful zero. For quantities such as temperature in Celsius, percentage errors depend on an arbitrary origin and carry no physical meaning.

Several variants try to repair these flaws without abandoning the percentage scale. The median absolute percentage error, MdAPE, resists outliers but ignores the size of rare large misses. The mean arctangent absolute percentage error, MAAPE, applies an arctangent to each ratio so that errors near zero actuals stay bounded at about 157 percent. Neither variant removes the underlying dependence on small denominators, so each should be chosen deliberately rather than as a default.

MAPE compared with alternative accuracy metrics

Forecasting practitioners rarely rely on MAPE alone. The table below compares it with the metrics most often used beside it and states the situation each one handles best.

MetricDefinition in briefMain advantageMain drawback
MAPEMean of absolute errors divided by actualsIntuitive percentageFails at zero, favors under-forecasts
WAPESum of absolute errors over sum of actualsRobust to small individual actualsDominated by high-volume periods
sMAPEError divided by mean of actual and forecastBounded, handles some zerosStill asymmetric, unstable near zero
MASEMAE scaled by in-sample naive forecast MAEDefined with zeros, comparable across seriesLess intuitive for stakeholders
RMSESquare root of mean squared errorPenalizes large misses stronglyScale-dependent, not comparable
MAPE and related forecast error metrics

WAPE, sometimes called weighted MAPE, is the usual business replacement because it keeps the percentage interpretation while weighting periods by volume. MASE is the preferred academic choice and was adopted in the M competitions for exactly the reasons MAPE fails.

Using MAPE in model training and evaluation

MAPE can serve as an evaluation metric, a model selection criterion or a training loss, and the risks differ in each role. As a loss function, it is equivalent to a mean absolute error weighted by 1 / A_t, so the optimizer devotes disproportionate attention to small-valued observations.

SituationRecommendationReason
Stable series, actuals far from zeroMAPE is acceptablePercentage errors stay well behaved
Intermittent or sparse demandUse MASE or WAPEZero actuals make MAPE undefined
Portfolio of many itemsReport WAPE at total levelAvoids small items dominating
Stakeholder reportingPair MAPE with biasReveals systematic under-forecasting
Training a neural forecasterPrefer MAE or quantile lossMAPE loss pushes predictions downward
Decision guide for MAPE use

In time series cross-validation, MAPE should be computed per fold and per horizon step, because errors typically grow with the forecast horizon and a single pooled number can hide that pattern.

A non-technical view

MAPE answers a simple question: how far off is a forecast, in percent, on average? Each miss is compared with what actually happened. Then all those percentages are averaged.

This makes results easy to share. Being 10 units off matters a great deal when only 20 were sold, and very little when 20,000 were sold. MAPE captures that. The catch is that tiny or zero sales break it, and it quietly favors forecasts that guess too low.

A concrete example

A grocery chain evaluates a new gradient-boosted model that forecasts weekly sales for 3,000 products across 50 stores. The old system reports a MAPE of 24 percent, and the new model scores 19 percent on a 12-week holdout, so the merchandising team initially approves it.

An analyst then splits the result by sales volume. Slow-moving items, such as specialty spices that sell two or three units a week, account for most of the MAPE improvement, and the new model achieves it largely by forecasting low. A bias check shows the model under-forecasts by 7 percent on total volume, which would cause empty shelves on fast-moving staples.

The team switches its headline metric to WAPE together with a bias measure and keeps MAPE only for stable, high-volume categories. Under the new scorecard, a retuned version of the model improves WAPE from 17 to 14 percent while keeping bias within 1 percent, and that version goes into production.