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.
| Week | Actual | Forecast | Absolute percentage error |
|---|---|---|---|
| 1 | 200 | 180 | 10.0% |
| 2 | 250 | 275 | 10.0% |
| 3 | 100 | 130 | 30.0% |
| 4 | 400 | 380 | 5.0% |
| MAPE | Average of four rows | Not applicable | 13.75% |
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 range | Common reading | Caveat |
|---|---|---|
| Below 10% | Highly accurate | Typical for aggregated, stable series |
| 10% to 20% | Good | Realistic for many product-level forecasts |
| 20% to 50% | Reasonable to weak | Normal for volatile or short-horizon items |
| Above 50% | Inaccurate | May reflect small actual values, not poor models |
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.
| Metric | Definition in brief | Main advantage | Main drawback |
|---|---|---|---|
| MAPE | Mean of absolute errors divided by actuals | Intuitive percentage | Fails at zero, favors under-forecasts |
| WAPE | Sum of absolute errors over sum of actuals | Robust to small individual actuals | Dominated by high-volume periods |
| sMAPE | Error divided by mean of actual and forecast | Bounded, handles some zeros | Still asymmetric, unstable near zero |
| MASE | MAE scaled by in-sample naive forecast MAE | Defined with zeros, comparable across series | Less intuitive for stakeholders |
| RMSE | Square root of mean squared error | Penalizes large misses strongly | Scale-dependent, not comparable |
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.
| Situation | Recommendation | Reason |
|---|---|---|
| Stable series, actuals far from zero | MAPE is acceptable | Percentage errors stay well behaved |
| Intermittent or sparse demand | Use MASE or WAPE | Zero actuals make MAPE undefined |
| Portfolio of many items | Report WAPE at total level | Avoids small items dominating |
| Stakeholder reporting | Pair MAPE with bias | Reveals systematic under-forecasting |
| Training a neural forecaster | Prefer MAE or quantile loss | MAPE loss pushes predictions downward |
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.