Debt to Enterprise Value Ratio
Calculate the debt to enterprise value ratio: the debt as a share of the market value of the whole firm.
It is the leverage at market values: the debt weight that the cost of capital uses (Damodaran, 2012), where the debt to assets ratio uses book values. A rising share price lowers it, a falling one raises it without any new borrowing.
The formula is as follows:
\[\text{Debt to Enterprise Value} = \frac{\text{Total Debt}}{\text{Enterprise Value}}\]The formula for the net debt to enterprise value is as follows:
\[\text{Net Debt to Enterprise Value} = \frac{\text{Total Debt} - \text{Cash and Short Term Investments}}{\text{Enterprise Value}}\]The enterprise value is the one of get_enterprise_value at the end of each fiscal period. An enterprise value of zero or less gives NaN.
- Damodaran, A. (2012). “Investment Valuation”, 3rd edition, Wiley, chapter 8 (debt ratios at market value).
Also known as: debt to firm value, market value debt ratio, net debt to EV.
Example · AAPL, MSFT, KO, XOM · 2021 to 2025
Install the Finance Toolkit with pip install financetoolkit -U, then call get_debt_to_enterprise_value_ratio:
from financetoolkit import Toolkit
toolkit = Toolkit(
["AAPL", "MSFT", "KO", "XOM"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2021-01-01",
end_date="2025-12-31",
)
toolkit.ratios.get_debt_to_enterprise_value_ratio()
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
What share of the enterprise value of Apple, Microsoft, Coca-Cola and ExxonMobil was debt from 2021 to 2025?
Which returns:
| Item | 2021 | 2022 | 2023 | 2024 | 2025 |
|---|---|---|---|---|---|
| AAPL | 0.0535 | 0.0522 | 0.0447 | 0.0334 | 0.0289 |
| KO | 0.1532 | 0.1321 | 0.1513 | 0.1516 | 0.1401 |
| MSFT | 0.0409 | 0.0410 | 0.0316 | 0.0291 | 0.0301 |
| XOM | 0.1541 | 0.0853 | 0.0983 | 0.0855 | 0.0780 |
4 rows
Parameters
get_debt_to_enterprise_value_ratio accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
method | str | The debt. Options are: “gross” (the debt to enterprise value), “net” (the net debt to enterprise value). Defaults to “gross”. | "gross" |
diluted | bool | Whether to use diluted shares in the enterprise value. Defaults to True. | False |
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 |
compound | bool | Whether the growth is the compound annual growth rate over the lag (e.g. lag=5 for the five-year CAGR) instead of the total change. Defaults to False. | False |
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 |
transform | str | list[str] | None | Time series steps applied in order, such as “sma:12” (moving average), “ema:12”, “std:12”, “zscore:60”, “percentile:120”, “yoy”, “pct_change:3,annualize:3”, “log”, “diff”, “cumsum” or “hp_trend” and “hp_cycle” (Hodrick-Prescott), before growth. A window needs that many periods of history, so the first periods can be empty. Defaults to None. | None |
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 Damodaran, A. (2012). “Investment Valuation.” 3rd edition, Wiley.