MAPE: the mean absolute percentage error
On this page
Does your forecasting metric reflect your high-stakes products?
Let's plan an exchangeDiscover our sales forecasting softwareMAPE (mean absolute percentage error) is the average of the forecast errors expressed as a percentage. For each product or period, the difference between the forecast and the actual value is divided by the actual value, and then the average is calculated. Easy to interpret, it assigns equal weight to all observations, which makes it sensitive to small sales volumes.
The Essentials
- MAPE is the simple average of the percentage forecast errors.
- It blows up on low volumes and cannot be calculated when sales are zero.
- In a retail catalog, it is supplemented or replaced by WAPE, weighted by volume.
In 6 Questions
The average percentage error of a forecast.
Forecasters, pricing managers, data scientists.
To compare products with similar volumes.
In forecast accuracy reports.
Provide a metric that is easy to explain to a committee.
Average of absolute deviations relative to the actual value.
How do you calculate the MAPE?
The MAPE is calculated in two steps: first, the percentage error per observation, and then the average of those percentages.
| Week | Forecasting and Sales | Gap |
|---|---|---|
| Week 1 | 190 planned, 200 sold | 10 units, or 5% |
| Week 2 | 200 planned, 180 sold | 20 units, or 11.1% |
| Week 3 | 30 planned, 20 sold | 10 units, or 50% |
| Week 4 | 5 planned, 2 sold | 3 units, or 150% |
Example calculation for an end-of-season product. MAPE = (5 + 11.1 + 50 + 150) / 4 = 54%. The WAPE for the same weeks is 43 / 402 = 10.7%.
The first two weeks account for the bulk of the volume and are well planned. The fourth week, with a difference of 3 units, single-handedly tips the balance.
The Three Weaknesses of MAPE
MAPE owes its popularity to its simplicity. Its shortcomings are well known and have a significant impact in the retail sector.
- It goes haywire with small volumes: a discrepancy of just a few units for a slow-moving item results in errors of more than 100 percent.
- It cannot handle zeros: a period with no sales makes the calculation impossible, and excluding it is tantamount to hiding the difficult cases.
- It encourages underestimation: the error from an underestimation is capped at 100 percent, while the error from an overestimation has no limit.
The third error is the most costly. A model optimized for MAPE tends to underestimate demand, and low forecasts lead to stockouts, as shown in our article on the link between stockouts and poor sales forecasting.
Which indicator for which question?
No single indicator can fully capture a forecast on its own. Each one answers a different question.
| Indicator | Question asked | When to use |
|---|---|---|
| MAPE | By how much, on average, do we miscalculate per product? | The products have comparable volumes |
| WAPE | What percentage of the volume is misestimated? | The catalog features both large and small-format books |
| Bias | Do we always make the same kind of mistake? | Always, in addition to the other two |
| Quadratic Error (MSE, RMSE) | Are there any really big mistakes? | One major mistake costs much more than several small ones |
MAPE in a Pricing Decision
In pricing, the accuracy of a demand forecast determines the reliability of a margin simulation.
An average MAPE across the entire catalog doesn't help with the decision. You need to look at it by product family and compare it to each family's share of the margin.
A favorable MAPE can mask significant errors in high-stakes products, while a high MAPE may apply only to items with little weight. This is one of the reasons why machine learning is always evaluated using multiple metrics.
Our belief: the metric should reflect the decision. If an error affects volume, we measure it in terms of volume. Our AI-powered sales forecast is evaluated this way, product family by product family.
When a single major error is costly, we also look atthe quadratic error (MSE and RMSE).
See also in the glossary:intermittent demand · CRPS · forecast bias · backtest
Frequently Asked Questions
Short answers to the most frequently asked questions about MAPE.
What does MAPE stand for?
MAPE stands for mean absolute percentage error. It is one of the most widely used metrics for measuring the accuracy of a forecast. For each product or period, the difference between the forecast and the actual value is calculated and expressed as a percentage of the actual value. MAPE is the average of these percentages. A MAPE of 20% means that the forecast deviates on average by 20% from the actual value, with each observation weighted equally.
How do you calculate the MAPE?
For each observation, we calculate the absolute difference between the forecast and the actual value, then divide it by the actual value. This yields a percentage error for each observation. The MAPE is the simple average of these percentages. Example over four weeks with errors of 5%, 11.1%, 50%, and 150%: the MAPE is 54%. The calculation assumes that all actual values are nonzero, which is not always the case in retail.
Why is the MAPE misleading for small sales?
Because it reasons in percentages, without taking volume into account. Forecasting 5 units when 2 are sold represents a 150% error, even though the actual difference is 3 units. Projecting 190 units when 200 are sold amounts to only a 5% error, with a discrepancy of 10 units. On average, the first error far outweighs the second. In a catalog where many SKUs sell in small quantities, the MAPE primarily reflects those SKUs, not the ones that drive revenue.
What should you do when a product has no sales during a given period?
MAPE cannot be calculated: dividing by zero sales makes no sense. Several teams therefore exclude these observations, which skews the measurement by removing precisely the difficult cases. Two approaches are more reliable. The first is to use WAPE, which divides by total sales and allows for zeros. The second is to measure at a broader level—the week rather than the day—where zero sales are rarer.
Should you choose MAPE or WAPE?
WAPE is better suited for managing a retail catalog because it weights each product by its sales and accounts for zero sales. MAPE remains useful for comparing products with similar sales volumes or for tracking a small number of key SKUs individually. Both metrics can coexist in the same dashboard, provided they are never compared directly with one another. A significant discrepancy between MAPE and WAPE also indicates a poorly forecasted long tail.
What makes a good MAPE?
There is no single threshold that applies everywhere. MAPE depends on the sector, the grid, the time horizon, and the regularity of sales: a staple product is easier to forecast than a new item or a product on promotion. A single figure, therefore, tells us nothing. A useful comparison is made on a like-for-like basis, using a simple benchmark method such as the previous year’s figures. If the model does not perform significantly better, its complexity is not justified.
Does MAPE lead to an underestimation of sales?
Yes, this is a known issue. An underestimation cannot exceed a 100% error, since it is impossible to forecast less than zero. An overestimation, however, has no upper limit: forecasting 30 units when 10 are sold results in a 200% error. A model tuned to minimize MAPE therefore learns to forecast conservatively, below actual sales. In retail, this tendency results in stockouts and lost sales. This is yet another reason to track this bias separately.
Key Takeaways
- MAPE is the average percentage error, without weighting by volume.
- It is unreliable for small sales, impossible to use for zero sales, and encourages underestimation.
- In retail, it is interpreted using WAPE and a measure of bias.
Would you like to evaluate your forecasts using the right metrics?
Booper evaluates its forecasts based on your data, using metrics selected according to your pricing decisions.
Let's talk about your forecasting metrics →Discover our sales forecasting softwareThese articles can interest you
AI-based sales forecasting estimates demand for each product, store by store, by separating baseline demand from promotional demand. AI takes in more data points than a spreadsheet, but its value lies solely in the decisions it helps inform.
In retail, this decision is primarily about pricing or a promotion. A useful pricing forecast—one that estimates how much will be sold at each considered price—is evaluated based on its bias rather than its MAPE, and is validated against control stores.
When comparing sales forecasting solutions, there are five key points to check before conducting any tests: demand hidden by stockouts, the forecast granularity, an explanation of each figure, the relationship with prices and promotions, and an honest assessment of accuracy.
A demonstration doesn't prove anything on these points. Only a test using your own data, compared to a simple baseline, will show whether the forecast truly improves your decisions.
A stockout is almost never a logistical accident: it’s the result of a forecast that underestimated demand. It then skews the historical data, since lost sales appear as weak demand, and sets the stage for the next stockout.
Pricing is affected in two ways. A promotion on a sold-out item underestimates its own impact and makes demand appear less price-sensitive than it actually is. Price is also the quickest way to curb demand before the shelf runs out.