Practical thinking about AI tools and everyday work.

What happens to MAPE when actual demand is zero?

An analyst comparing a printed bar chart with notes at a desk.
AI-generated photographic illustration; not documentary photography.

A forecasting dashboard reports a neat percentage, but one product had no sales at all during the period. Before comparing models, ask how the metric handled that zero. A percentage can hide a calculation problem behind an apparently familiar unit.

Mean absolute percentage error, or MAPE, averages absolute forecast errors relative to actual values. Forecasting: Principles and Practice explains why zero and near-zero observations make percentage errors problematic. Division by zero is undefined, while very small denominators can give extreme percentages.

The same unit error can look very different

ActualForecastAbsolute errorPercentage error
121100%
10010111%
055Undefined

These invented observations are enough to expose two issues. The first two errors are equally large in units but very different as percentages. The third cannot be interpreted as an ordinary finite percentage using the same formula.

Software may drop the zero row, substitute a small denominator or apply another convention. Those choices change the reported result. They should be documented rather than silently treated as the standard definition of MAPE.

Choose an evaluation that matches the decision

If a team needs to understand stock shortfalls in units, an absolute-error measure may provide a useful view. If large misses deserve extra emphasis, squared-error measures answer a different question. Comparing products on different scales introduces another requirement. No single metric settles all of these needs.

Keep a few actual-versus-forecast examples beside the summary score, especially zero-demand periods. Ask the analyst to state which observations were included and how exceptional cases were handled. Replacing MAPE with another percentage formula is not automatically a cure; some alternatives have their own near-zero problems.

A trustworthy model comparison begins with a transparent calculation. The most useful dashboard is the one that helps the team understand the errors it must act on, even when that requires more than one number.