Debt to Market Cap Ratio

Calculate the debt to market capitalization ratio, the total debt against the market value of the equity.

The debt to equity ratio compares the debt with the book value of the equity, which buybacks and write-offs can make small or negative; the market value of the equity is what the shareholders’ claim is worth, so this ratio is the leverage at market values that capital structure and cost of capital calculations use.

The formula is as follows:

\[\text{Debt to Market Cap} = \frac{\text{Total Debt}}{\text{Market Capitalization}}\]

The market capitalization is the one of get_market_cap: the close at the end of each fiscal period (or of each day with daily values) times the weighted average (diluted) shares.

Also known as: debt to market value of equity, market debt to equity, D/E at market value.

Example · F, GM, TSLA · 2021 to 2025

Install the Finance Toolkit with pip install financetoolkit -U, then call get_debt_to_market_cap_ratio:

from financetoolkit import Toolkit

toolkit = Toolkit(
    ["F", "GM", "TSLA"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2021-01-01",
    end_date="2025-12-31",
)

toolkit.ratios.get_debt_to_market_cap_ratio()

Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:

How large was the debt of Ford, General Motors and Tesla compared with their market value from 2021 to 2025?

Which returns:

Parameters

get_debt_to_market_cap_ratio accepts the following parameters.

ParameterTypeDescriptionExample
show_dailyboolWhether to show daily values: the close of each trading day against the balance sheet of the latest period that has ended on or before that day (also when it ended before the start date), so no figures are used before their period closes. Defaults to False.True
dilutedboolWhether to use diluted shares in the calculation. Defaults to True.False
roundingint | NoneThe number of decimals to round the results to. Defaults to None, which uses the rounding of the Toolkit (4 unless set otherwise).2
growthboolWhether to calculate the growth of the ratios. Defaults to False.True
lagint | list[int]The lag to use for the growth calculation. Defaults to 1.4
compoundboolWhether 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
standardizeboolWhether 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_columnsstr | list[str] | NoneThe 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
Share