This free MAPE calculator finds the mean absolute percentage error of a forecast, plus sMAPE, WAPE, MAE, RMSE and bias, with a chart and the error for every period.
Absolute percentage error for every point
| # | actual | forecast | error | APE |
|---|
What does a MAPE calculator measure?
A MAPE calculator measures forecast accuracy as an average percentage error. MAPE, the mean absolute percentage error, takes each error as a share of the actual value, ignores the sign, and averages:
\[ \mathrm{MAPE} = \frac{100\%}{n} \sum_{t=1}^{n} \left| \frac{A_t - F_t}{A_t} \right| \]
where \( A_t \) is the actual value and \( F_t \) the forecast. A MAPE of 5% means forecasts are off by 5% of the actual value on average. Because it is a percentage, MAPE is easy to explain to people who never look at the raw units, which is why demand planners and finance teams like it.
This free MAPE calculator also reports sMAPE, WAPE, MAE, RMSE and forecast bias, plots actual against forecast, and lists the percentage error for every point.
How the MAPE calculator works, step by step
- For each period, compute the error \( A_t - F_t \).
- Divide by the actual value and take the absolute value: \( |A_t - F_t| / |A_t| \).
- Average those percentages over all periods and multiply by 100.
You can follow every step in the MAPE calculator's table. For the example data, the first period has actual 120 and forecast 115, an absolute percentage error of \( 5/120 = 4.17\% \). Averaging all eight periods gives MAPE = 4.01%.
The problems with MAPE
- Zero actual values break it. Dividing by \( A_t = 0 \) is undefined, and values near zero produce huge percentages. The calculator skips zero actuals in MAPE and tells you how many it left out. Use WAPE or MAE for data with zeros, such as intermittent sales.
- It is asymmetric. With positive forecasts, an under-forecast can be off by at most 100%, but an over-forecast has no upper limit. So MAPE penalises forecasting too high more heavily, and choosing a model by lowest MAPE tends to favour forecasts that run low.
- Small actual values dominate. A 10-unit miss on a 20-unit day counts as much as a 500-unit miss on a 1,000-unit day.
MAPE vs sMAPE, WAPE, MAE and RMSE
| Metric | Formula | Use it when |
|---|---|---|
| MAPE | \( \frac{100}{n}\sum |A-F|/|A| \) | Actuals are well above zero and you want a simple percentage |
| sMAPE | \( \frac{100}{n}\sum \frac{2|A-F|}{|A|+|F|} \) | You want errors relative to both actual and forecast; ranges 0 to 200% |
| WAPE | \( 100 \cdot \sum|A-F| / \sum|A| \) | Data has zeros or very different sizes; weights by volume |
| MAE | \( \frac{1}{n}\sum|A-F| \) | You want error in the original units |
| RMSE | \( \sqrt{\frac{1}{n}\sum(A-F)^2} \) | Large errors are especially costly |
For the example, WAPE is 4.03%, close to MAPE because all actual values are of similar size. Press Try data with a zero in the calculator to see the two diverge. For how well a model explains variation rather than average error, use the R squared calculator.
What is a good MAPE? Reading the MAPE calculator's result
There is no universal cut-off. A common rule of thumb calls under 10% very good and 10 to 20% good, but stable products can beat 5% while new or volatile ones may struggle to reach 30%. Better practice:
- Compare against a naive forecast, such as "same as last period". If your model does not beat it, the model is not adding value.
- Check the bias too. MAPE ignores direction, so a forecast that is always 5% high and one that swings ±5% score the same.
- When MAPE is a training loss function for a machine-learning model, remember it rewards under-forecasting. A symmetric loss such as MAE, or Huber loss when outliers matter, may train better.
To check the MAPE calculator against your own code, scikit-learn provides mean_absolute_percentage_error, which returns a fraction (0.05) rather than a percentage. The definition and its known issues are summarised in mean absolute percentage error on Wikipedia.
Frequently asked questions
How do I calculate MAPE in Excel? With actuals in A2:A9 and forecasts in B2:B9, use =AVERAGE(ABS((A2:A9-B2:B9)/A2:A9)) (confirm as an array formula in older Excel), then format it as a percentage.
Why is my MAPE so high? Usually because some actual values are close to zero, which inflates their percentage errors. Check the per-point table, or use WAPE.
Is a lower MAPE always better? Lower means smaller average percentage error, but because MAPE punishes over-forecasts more, the lowest-MAPE model can be biased low. Check bias as well.
What is forecast accuracy from MAPE? It is often reported as 100% minus MAPE. The calculator shows it, floored at 0%.