Capture Ratios
Calculate the capture ratios and the up and down statistics of an investment portfolio or asset against its benchmark in one table: how much of the benchmark’s return it captured overall, in rising and in falling markets, and how often it moved with or beat the benchmark in each.
The formulas are as follows:
\[\text{Capture Ratio} = \frac{\text{Average Return}}{\text{Average Benchmark Return}},\;\; \text{over every day}\] \[\text{Upside} \;(\text{Downside}) \;\text{Capture Ratio} = \text{the same over the days the benchmark rose} \;(\text{fell}),\;\; \text{see get\_upside\_capture\_ratio and get\_downside\_capture\_ratio}\] \[\text{Up/Down} \;\text{Capture Ratio} = \frac{\text{Upside Capture Ratio}}{\text{Downside Capture Ratio}}\] \[\text{Up Number} = \text{Number of Days with Return} > 0 \;\text{and Benchmark Return} > \frac{0}{\text{Number of Days}} \;\text{with Benchmark Return} > 0\] \[\text{Down Number} = \text{Number of Days with Return} < 0 \;\text{and Benchmark Return} < \frac{0}{\text{Number of Days}} \;\text{with Benchmark Return} < 0\] \[\text{Up Percent} = \text{Number of Days with Return} > \text{Benchmark Return and Benchmark Return} > \frac{0}{\text{Number of Days}} \;\text{with Benchmark Return} > 0\] \[\text{Down Percent} = \text{Number of Days with Return} > \text{Benchmark Return and Benchmark Return} < \frac{0}{\text{Number of Days}} \;\text{with Benchmark Return} < 0\]Where the averages are geometric by default (Morningstar), (PRODUCT(1 + Return))^(1 / n) - 1 over the same n days for the asset and the benchmark, all from the daily returns within each period. An Up/Down Capture Ratio above 1 means the asset kept more of the benchmark’s gains than of its losses. A high Up Number with a low Down Number shows an asset that rises with the market but falls less often; the Up and Down Percent are the up and down market win rates (batting averages, see get_win_rate).
Also known as: up/down capture, up-market and down-market capture, capture table.
Example · QQQ, USMV · 2021 to 2025
Install the Finance Toolkit with pip install financetoolkit -U, then call get_capture_ratios:
from financetoolkit import Toolkit
toolkit = Toolkit(
["QQQ", "USMV"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2021-01-01",
end_date="2025-12-31",
)
toolkit.performance.get_capture_ratios().xs("USMV", level=0, axis=1).T
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
How much of the S&P 500's up and down days did the iShares MSCI USA Min Vol Factor ETF (USMV) capture in each year from 2021 to 2025?
Which returns:
| Item | 2021 | 2022 | 2023 | 2024 | 2025 |
|---|---|---|---|---|---|
| Capture Ratio | 0.7641 | 0.4938 | 0.4226 | 0.6578 | 0.4517 |
| Upside Capture Ratio | 0.6966 | 0.7055 | 0.6068 | 0.5319 | 0.4679 |
| Downside Capture Ratio | 0.6706 | 0.6789 | 0.6784 | 0.4891 | 0.4730 |
| Up/Down Capture Ratio | 1.0389 | 1.0392 | 0.8944 | 1.0874 | 0.9892 |
| Up Number | 0.8151 | 0.8899 | 0.8214 | 0.7365 | 0.7413 |
| Down Number | 0.8000 | 0.8652 | 0.8073 | 0.7308 | 0.7383 |
| Up Percent | 0.3356 | 0.2018 | 0.2429 | 0.2703 | 0.2727 |
| Down Percent | 0.7048 | 0.7801 | 0.6697 | 0.7115 | 0.6822 |
8 rows
Parameters
get_capture_ratios accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
period | str | The period to use for the calculation. Options are: “daily”, “weekly”, “monthly”, “quarterly”, “yearly”. Defaults to “quarterly” if the Toolkit is initialised with quarterly=True, otherwise “yearly”. | "weekly" |
method | str | How the capture ratios average the returns. Options are: - “geometric”: the geometric average return per day (Morningstar). - “annualized”: the geometric average annualized, (1 + average)^P - 1 with P the days in a year (252, 365 for a ticker that trades on weekends), empyrical’s capture ratios. - “arithmetic”: the sum of the returns, PerformanceAnalytics’ UpDownRatios. Defaults to “geometric”. | "geometric" |
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 ratios. 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.” 2nd edition, John Wiley & Sons.
- Paper Morningstar. “Upside/Downside Capture Ratio.” Morningstar Investment Glossary and methodology documents.
- Library Referenced against empyrical’s up_capture (annualized)
- Library Referenced against PerformanceAnalytics (R)’s UpDownRatios (arithmetic)
- Library Referenced against empyrical’s down_capture (annualized)
- Library Referenced against empyrical’s capture (annualized)
- Library Referenced against PerformanceAnalytics (R)’s UpDownRatios (Up Number, Down Number)
- Library Referenced against PerformanceAnalytics (R)’s UpDownRatios (Up Percent, Down Percent)
- Library Shares similar logic as quantstats’ win_rate