Solvency Ratio
Calculate the solvency ratio, the cash earnings (net income plus the non-cash depreciation and amortization) against all liabilities.
The solvency ratio shows how much of its total obligations, short and long term, a company could pay from a year of cash earnings. A higher ratio is safer; around 0.2 is often named as a healthy level, though it differs widely by industry.
The formula is as follows:
\[\text{Solvency Ratio} = \frac{\text{Net Income} + \text{Depreciation and Amortization}}{\text{Total Liabilities}}\]The depreciation and amortization come from the cash flow statement. The ratio compares a year of earnings with the liabilities, so quarterly data defaults to the trailing twelve months; the liabilities are those at the end of the period.
Also known as: cash flow to total liabilities (with net income plus depreciation as the cash flow).
Example · DUK, SO, NEE · 2021 to 2025
Install the Finance Toolkit with pip install financetoolkit -U, then call get_solvency_ratio:
from financetoolkit import Toolkit
toolkit = Toolkit(
["DUK", "SO", "NEE"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2021-01-01",
end_date="2025-12-31",
)
toolkit.ratios.get_solvency_ratio()
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
What was the solvency ratio of Duke Energy, Southern Company and NextEra Energy from 2021 to 2025?
Which returns:
| Item | 2021 | 2022 | 2023 | 2024 | 2025 |
|---|---|---|---|---|---|
| DUK | 0.0799 | 0.0656 | 0.0696 | 0.0801 | 0.0787 |
| NEE | 0.0818 | 0.0816 | 0.1136 | 0.0983 | 0.0942 |
| SO | 0.0670 | 0.0756 | 0.0861 | 0.0891 | 0.0888 |
3 rows
Parameters
get_solvency_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 periods to sum flows (income and cash flow statement items) over, with balance sheet items averaged over the same number of period ends. E.g. 4 with quarterly data gives the trailing twelve months (TTM) and 3 with annual data a three-year cumulative figure. The window counts calendar periods, so a period without a report makes it NaN. Defaults to None, which uses the trailing twelve months (4 quarters) with quarterly data and single years with annual data. | 4 |
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 |