Average Drawdown
Calculate the Average Drawdown of an investment portfolio or asset’s returns: how deep a typical setback is, or how far below its high the asset typically was.
The Average Drawdown has two definitions. Bacon (2008), PerformanceAnalytics and ffn average the depth of the drawdown episodes: every decline from a high until the asset is back at it counts once, with its deepest point. Chekhlov, Uryasev and Zabarankin (2005), Riskfolio-Lib and skfolio average the drawdown of every period instead, the periods at a high counting as 0, which weighs a drawdown by how long it lasted (the Pain Index, get_pain_index, is that average per year as a positive number). The episode average says how deep a typical setback is, the period average how far below its high the asset typically was. Both are less dominated by a single crash than the Maximum Drawdown.
The formula for the episode average, the default, is as follows:
\[\operatorname{Wealth}(t) = \prod(1 + \operatorname{Return}(s)) \;\text{for}\; s \leq t\] \[\operatorname{Drawdown}(t) = \frac{\operatorname{Wealth}(t)}{\max(1,\; \max(\operatorname{Wealth}(s) \;\text{for}\; s \leq t))} - 1\] \[\text{Average Drawdown} = \frac{\sum \;\operatorname{Trough}(j)}{d}\]Where Trough(j) is the lowest Drawdown of the j-th of the d episodes below a high (one that has not recovered by the end of the window included). The formula for the observation average is as follows:
\[\text{Average Drawdown} = \frac{\sum \;\operatorname{Drawdown}(t)}{n}\]Where n is the number of returns. Wealth starts at 1, so a decline from the start of the window counts. Without compounding the drawdowns are measured on the summed returns instead, as an absolute decline from their peak (Drawdown(t) = Sum(t) - max(0, max(Sum(s) for s <= t)), with Sum(t) = Σ Return(s)). The result is a negative decimal (0 when the value never fell below a previous high).
Also known as: ADD, average drawdown depth, mean drawdown, uncompounded average drawdown.
Example · TSLA, GM, F · 2021 to 2025
Install the Finance Toolkit with pip install financetoolkit -U, then call get_average_drawdown:
from financetoolkit import Toolkit
toolkit = Toolkit(
["TSLA", "GM", "F"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2021-01-01",
end_date="2025-12-31",
)
toolkit.risk.get_average_drawdown(period="yearly", within_period=True)
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
How deep was the average drawdown of Tesla, General Motors, Ford and the S&P 500 in each year from 2021 to 2025?
Which returns:
| Item | TSLA | GM | F | Benchmark |
|---|---|---|---|---|
| 2021 | -0.1491 | -0.0916 | -0.0589 | -0.0128 |
| 2022 | -0.7272 | -0.5304 | -0.2025 | -0.2450 |
| 2023 | -0.1077 | -0.0943 | -0.1300 | -0.0164 |
| 2024 | -0.1443 | -0.0581 | -0.0914 | -0.0129 |
| 2025 | -0.1155 | -0.0296 | -0.0561 | -0.0195 |
5 rows
Parameters
get_average_drawdown accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
period | str | The data frequency for returns. Options are: “daily”, “weekly”, “monthly”, “quarterly”, “yearly”. Defaults to “daily”. | "weekly" |
method | str | The average. Options are: “episode” (the average depth of the drawdown episodes), “observation” (the average drawdown of every period). Defaults to “episode”. | "episode" |
compound_returns | bool | Whether to compound the returns into the wealth path the drawdowns are measured on, or to sum them (absolute drawdowns). Defaults to True. | True |
within_period | bool | Whether to calculate the Average Drawdown within the specified period or for the entire period. Thus whether to look at the Average Drawdown within a specific year (if period = ‘yearly’) or look at the entirety of all years. Defaults to False. Note that this requires intraday data when period = ‘daily’, since a single day only nests observations when intraday data was fetched. | True |
rolling | int | The rolling window size to use for the calculation. If set, the Average Drawdown is calculated over a rolling window of this many periods across the full return history instead of per period, every window starting from a wealth of 1. At least 2. Defaults to None. | 4 |
rounding | int | None | The number of decimals to round the results to. Defaults to None, which uses the rounding of the Toolkit (4 unless set otherwise). | 2 |
growth | bool | Whether to calculate the growth of the Average Drawdown values over time. Defaults to False. | True |
lag | int | list[int] | The lag to use for the growth calculation. Defaults to 1. | 4 |
standardize | bool | Whether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False. | True |
show_columns | str | list[str] | None | The columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column. | None, which keeps every column |
References
- Paper Bacon, C.R. (2008). “Practical Portfolio Performance Measurement and Attribution.” John Wiley & Sons, 2nd edition.
- Paper Chekhlov, A., Uryasev, S. and Zabarankin, M. (2005). “Drawdown Measure in Portfolio Optimization.” International Journal of Theoretical and Applied Finance, 8(1), 13-58.
- Library Referenced against skfolio’s average_drawdown (observation)
- Library Referenced against Riskfolio-Lib’s ADD_Rel (observation, compounded)
- Library Referenced against Riskfolio-Lib’s ADD_Abs (observation, uncompounded)
- Library Shares similar logic as PerformanceAnalytics (R)’s AverageDrawdown (episode)
- Library Shares similar logic as ffn’s PerformanceStats.avg_drawdown (episode)