What’s new: Openlayer named in the 2026 Gartner Market Guide® for AI Evaluation and Observability Platforms. Learn More

MAPE (Mean Absolute Percentage Error): complete guide in January 2026

Published January 20, 20267 min read

Everyone in forecasting talks about MAPE, and for good reason as it's one of the few accuracy metrics that non-technical stakeholders actually understand. MAPE (Mean Absolute Percentage Error) expresses prediction errors as percentages, so a 12% MAPE means your forecasts are off by 12% on average. No need to explain units or scales. But MAPE has serious problems: it fails when actual values hit zero, treats over-forecasts and under-forecasts asymmetrically, and gets distorted by low-volume items. We'll cover how to calculate MAPE in Python with sklearn, what constitutes a good MAPE score for your industry, and when alternatives like WMAPE or RMSE give you better insights into forecast quality.

TLDR:

  • MAPE measures forecast error as a percentage, making it easy to compare accuracy across different scales and products.
  • Values under 10% are excellent, 10-20% acceptable, but MAPE breaks with zero actuals and penalizes over-forecasts more than under-forecasts.
  • Weighted MAPE (WMAPE) fixes volume distortion by weighting errors by actual demand, better for diverse product portfolios.
  • Calculate MAPE in Python using sklearn's mean_absolute_percentage_error for quick model evaluation and monitoring.
  • Openlayer automates MAPE validation in CI/CD and monitors production forecasts in real-time to catch accuracy degradation before it impacts operations.

What is MAPE (Mean Absolute Percentage Error)

MAPE measures forecast error as a percentage of actual values. The metric converts prediction errors into percentages, making comparisons possible across different scales and units. For example, a 5% MAPE means your predictions are off by 5% on average, whether you're forecasting revenue, inventory, or demand. The percentage format makes MAPE interpretable for non-technical stakeholders. Operations leaders and executives understand error rates without context about units or absolute values.

MAPE is common in demand planning, supply chain forecasting, time series prediction, and regression analysis, serving as one of many ML evaluation metrics. The metric answers one question: how wrong are your predictions relative to actual outcomes? This clarity makes MAPE a standard choice for comparing forecast methods, tracking model performance, and setting team accuracy benchmarks.

The MAPE formula and how to calculate it

The MAPE formula calculates the mean of absolute percentage errors:

MAPE = (1/n) × Σ |(Actual - Forecast) / Actual| × 100

Where n represents the number of observations.

Step-by-step calculation process

  1. Subtract each forecast from its corresponding actual value
  2. Take the absolute value to eliminate negative signs
  3. Divide by the actual value to convert to a percentage basis
  4. Sum all percentage errors and divide by total observations
  5. Multiply by 100 to express as a percentage

Manual calculation example

ActualForecastErrorAbsolute ErrorPercentage Error
10095-555.0%
150165151510.0%
200190-10105.0%

MAPE = (5.0 + 10.0 + 5.0) / 3 = 6.67%

MAPE benchmarks: what is a good MAPE value?

Acceptable MAPE values depend on context. A forecast with 15% error might be excellent in fashion retail but unacceptable in pharmaceutical manufacturing. In general, though, here are some baseline values respective to business function:

  • Under 10% MAPE is considered excellent across most industries.
  • Values between 10-20% are generally acceptable for business operations.
  • Anything above 20% signals forecasting methods that need improvement or environments with high inherent volatility.

Industry matters a lot:

  • Consumer packaged goods with stable demand patterns expect MAPE under 10%
  • Fashion and technology products with shorter lifecycles and trend-driven demand accept 20-30% as reasonable
  • Energy and utilities with predictable consumption typically target 5-10%

Traditional forecasting methods typically achieve 15-40% MAPE, while advanced ML systems often reach 5-15% MAPE. In addition, forecasting horizon affects achievable accuracy in model evaluation in machine learning. Short-term forecasts (days to weeks) should have lower MAPE than long-term predictions (quarters to years). Product complexity, seasonality, and external factors like economic conditions all shift expectations.

Critical limitations of MAPE you must know

While MAPE has a lot of value to non-technical users, it also has some critical limitations:

  • Division by zero
  • Asymmetry penalties
  • Extreme percentage errors

Division by zero creates undefined errors

MAPE breaks when actual values equal zero. The formula divides by actual values, making calculation impossible for these observations. This occurs in datasets with intermittent demand, product launches, or sparse sales periods. You cannot calculate MAPE for products with zero historical sales.

Asymmetry penalizes over-forecasting more than under-forecasting

MAPE treats positive and negative errors differently. Under-forecasting by 50 units on 100 actual units generates 50% error. Over-forecasting by 50 units on the same actual yields 33% error. This asymmetry biases models toward conservative predictions, which can cause understocking and lost revenue in supply chain applications, making model validation critical.

Low actual values create extreme percentage errors

Small denominators inflate MAPE dramatically. A 10-unit forecast error on 20 actual units creates 50% MAPE, while the same 10-unit error on 1,000 units yields only 1%. Low-volume products disproportionately impact aggregate MAPE scores, distorting accuracy assessments across product portfolios with mixed volumes.

Weighted MAPE (WMAPE): a better alternative for most use cases

Weighted MAPE (WMAPE) tackles the low-volume distortion problem by weighting errors according to actual demand volume. A 50% error on 10 units carries less weight than a 50% error on 10,000 units.

The formula aggregates all errors before calculating the percentage:

WMAPE = (Σ |Actual - Forecast|) / (Σ Actual) × 100

This naturally weights by volume. A 100-unit error on a product with 10,000 actual units contributes the same absolute error as a 100-unit error on a low-volume product, but the percentage reflects total portfolio accuracy instead of per-item averages.

WMAPE works best for diverse product portfolios with varying volumes, making it a valuable metric in AI model evaluation. Retailers managing both bestsellers and slow-moving items get more meaningful accuracy metrics. Supply chain teams favoring forecast quality for revenue-generating products benefit from WMAPE's volume sensitivity, as the metric aligns forecast performance with business impact.

MAPE vs MAE vs RMSE: choosing the right error metric

MAE measures error in your data's original units. If you're forecasting sales in dollars, for example, MAE reports average dollar error. This directness makes MAE interpretable but scale-dependent, preventing comparison across products with different price points.

RMSE squares errors before averaging, amplifying large mistakes. A forecast off by 100 units damages RMSE more than ten forecasts off by 10 units each. You should use RMSE when large errors carry disproportionate business consequences, such as safety stock calculations where stockouts incur severe penalties.

MAPE converts errors to percentages, providing for cross-scale comparison. Choose MAPE when evaluating forecast quality across diverse product lines, though evaluating machine learning models beyond aggregate metrics provides deeper insights.

In short, when thinking about which metric to use:

  • Avoid MAPE with zero or near-zero actuals.
  • Select MAE for interpretable, unit-based errors.
  • Use RMSE when outliers should dominate model selection.

Calculating MAPE in Python with Sklearn

Thankfully, you don't have to manually calculate MAPE. Using the Python library sklearn, you can calculate MAPE quickly and easily.

from sklearn.metrics import mean_absolute_percentage_error
import numpy as np

y_actual = np.array([100, 150, 200])
y_pred = np.array([95, 165, 190])

mape = mean_absolute_percentage_error(y_actual, y_pred)
print(f"MAPE: {mape * 100:.2f}%") # Output: MAPE: 6.67%

But, the sklearn implementation raises errors when actuals contain zeros. Preprocess your data to remove or handle zero values before calculation.

For custom WMAPE or handling zeros, you simply need to make a few modifications to the calculation:

def safe_mape(y_actual, y_pred, epsilon=1e-10):
y_actual = np.where(y_actual == 0, epsilon, y_actual)
return np.mean(np.abs((y_actual - y_pred) / y_actual)) * 100

Finally, you can also use sklearn to Integrate MAPE into cross-validation pipelines for AI model testing:

from sklearn.model_selection import cross_val_score
from sklearn.metrics import make_scorer

mape_scorer = make_scorer(mean_absolute_percentage_error, greater_is_better=False)
scores = cross_val_score(model, X, y, scoring=mape_scorer, cv=5)

MAPE in demand planning and supply chain forecasting

How do different aspects of the business use MAPE?

  • Supply chain teams use MAPE to set safety stock levels. A forecast with 25% MAPE requires larger inventory buffers than one achieving 8% MAPE to maintain the same protection against stockouts.
  • Production schedulers assess planning accuracy through MAPE. Lower values provide leaner production runs and reduced finished goods inventory, while higher values force manufacturers to maintain excess capacity and buffer stock, increasing carrying costs and working capital requirements.
  • Service level calculations include MAPE alongside demand variability. Companies targeting 95% in-stock availability can achieve the same service level with lower inventory investment when MAPE improves, reducing both cash requirements and obsolescence risk.

How to improve your MAPE score

Just calculating your MAPE score isn't enough. You also need to understand how you can improve it. Below are a few recommendations on improving that score:

  • Segment products by demand patterns before selecting forecasting methods. High-volume stable items work well with traditional time series models, while intermittent demand requires specialized approaches like Croston's method or probabilistic forecasting that handle periods with zero sales.
  • Remove or flag outliers from one-time events before training models. Promotional spikes or supply disruptions create misleading patterns that degrade future predictions. Apply seasonality adjustments through decomposition or seasonal indices to capture predictable cyclical patterns.
  • Blend statistical forecasts with operational knowledge. Supply chain teams understand upcoming promotions, market shifts, and product lifecycle stages that historical data misses. Ensemble approaches that combine algorithmic predictions with human judgment outperform either method alone.
  • Retrain models regularly as market conditions change. Quarterly or monthly retraining prevents models from relying on outdated patterns, particularly in fast-moving categories or volatile markets.

MAPE for AI model evaluation and monitoring

As businesses lean into AI for a variety of needs, from customer service to knowledge management to workflow automation, MAPE can serve a valuable role in model monitoring. Production AI systems require continuous accuracy tracking. MAPE serves as a real-time indicator of regression model health, detecting when predictions drift from acceptable error ranges.

It starts with monitoring. Teams monitor MAPE across time windows to identify performance degradation. A forecasting model maintaining 8% MAPE that suddenly jumps to 18% signals data distribution shifts or concept drift requiring investigation. Built into that monitoring framework are alert thresholds, which trigger automated responses. When MAPE exceeds defined limits, systems can route predictions to human review, initiate model retraining pipelines, or switch to backup models. Finally, part of the monitoring should involve tracking MAPE across customer segments, product categories, or geographic regions. This will reveal where models degrade first through ML observability, providing for targeted intervention instead of wholesale retraining.

Carrying out reliable AI forecasting with Openlayer

Retrospective MAPE calculations don't prevent degraded predictions from reaching production. Openlayer turns MAPE into an active reliability mechanism.

Pre-deployment MAPE validation

We automate MAPE evaluation during model development through our ML evaluation platform, testing forecasting models against holdout data before deployment. CI integration blocks releases when accuracy drops below defined thresholds.

Real-time production monitoring

Production monitoring tracks MAPE continuously across deployed models. When forecast error exceeds acceptable ranges, alerts notify teams within minutes. Teams respond before accuracy degradation affects inventory decisions, revenue planning, or customer commitments.

Compliance and traceability

Our governance layer captures MAPE metrics as compliance evidence for regulatory reviews and internal audits. Tracking accuracy across model versions, data segments, and time periods provides full traceability from development through production. Teams maintain forecast quality at scale by centralizing MAPE monitoring across regression models and generative forecasting systems.

Final thoughts on measuring forecast error with MAPE

Understanding what is MAPE and when to use it separates effective forecasting from guesswork. The metric's simplicity makes it popular, but its limitations mean you should consider WMAPE for mixed-volume portfolios. Your forecasting accuracy affects everything from safety stock to production schedules. Keep testing different approaches, and let your MAPE scores guide your model selection decisions.

FAQ

How do you calculate MAPE in Python?

Use mean_absolute_percentage_error from sklearn.metrics with your actual and predicted arrays, then multiply by 100 to express as a percentage. The function returns MAPE as a decimal, so a result of 0.0667 equals 6.67% error.

What is a good MAPE value for forecasting?

MAPE under 10% is excellent for most applications, while 10-20% is acceptable for standard business operations. Industry context matters: consumer packaged goods typically target under 10%, while fashion retail may accept 20-30% due to trend-driven demand volatility.

When should you use WMAPE instead of MAPE?

Use WMAPE when forecasting across product portfolios with mixed volumes. WMAPE weights errors by actual demand, preventing low-volume products with high percentage errors from distorting your accuracy assessment and better aligning forecast performance with business impact.

Why does MAPE fail with zero actual values?

MAPE divides forecast error by actual values, making calculation undefined when actuals equal zero. This occurs in datasets with intermittent demand, product launches, or sparse sales periods where you cannot compute percentage error without a non-zero denominator.

How does MAPE compare to MAE and RMSE for model evaluation?

MAPE expresses error as a percentage for cross-scale comparison, MAE reports error in original units for direct interpretation, and RMSE amplifies large errors by squaring them. Choose MAPE for comparing diverse products, MAE for unit-based clarity, and RMSE when outliers carry severe business consequences.

Work on the future.

2026 Openlayer. All rights reserved.