Short-Term Debt Ratio
Calculate the short-term debt ratio: the share of a company’s debt that is due within a year.
Debt that falls due within a year has to be repaid or refinanced soon, so a high share is a refinancing risk when credit markets close. Barclay and Smith (1995) show that the maturity of the debt follows the company: larger companies with fewer growth options borrow for longer, and companies with good news to come borrow short.
The formula is as follows:
\[\text{Short Term Debt Ratio} = \frac{\text{Short Term Debt}}{\text{Total Debt}}\]The short-term debt includes the current portion of the long-term debt. A total debt of zero or less gives NaN.
- Barclay, M. J. and C. W. Smith (1995). “The Maturity Structure of Corporate Debt.” The Journal of Finance, 50(2), 609-631.
Also known as: debt maturity, short-term debt share, current debt to total debt.
Example · AAPL, MSFT, KO, XOM · 2021 to 2025
Install the Finance Toolkit with pip install financetoolkit -U, then call get_short_term_debt_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_short_term_debt_ratio()
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
What share of the debt of Apple, Microsoft, Coca-Cola and ExxonMobil was due within a year from 2021 to 2025?
Which returns:
| Item | 2021 | 2022 | 2023 | 2024 | 2025 |
|---|---|---|---|---|---|
| AAPL | 0.1144 | 0.1593 | 0.1275 | 0.1754 | 0.1809 |
| KO | 0.1112 | 0.0683 | 0.1501 | 0.0469 | 0.0714 |
| MSFT | 0.0981 | 0.0351 | 0.0660 | 0.0914 | 0.0267 |
| XOM | 0.0896 | 0.0154 | 0.0984 | 0.1188 | 0.2135 |
4 rows
Parameters
get_short_term_debt_ratio accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
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 |
trailing | int | The number of period ends to average the balance sheet items over. The window counts calendar periods, so a period without a report makes it NaN. Defaults to None, which uses the balances at the end of each period. | 4 |
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 Barclay, M. J. and C. W. Smith (1995). “The Maturity Structure of Corporate Debt.” The Journal of Finance, 50(2), 609-631.