Optimal Capital Structure
Calculate the optimal capital structure: the cost of capital each company would have at debt ratios from 0% to 90%, and the debt ratio at which it is lowest.
Damodaran’s cost of capital approach replaces equity with debt at today’s firm value. Debt is cheaper than equity and its interest is tax-deductible, but more of it raises the beta of the equity and, as the interest coverage falls, lowers the rating and raises the cost of the debt. Up to the optimum the first effect wins and the WACC falls; beyond it the second does.
At each debt ratio the Debt and Equity split today’s firm Value, and the Beta is relevered from the Unlevered Beta of today’s debt and equity (Hamada). The Pre-tax Cost of Debt is the risk free rate plus the Default Spread of the synthetic rating of the Interest Coverage Ratio, iterated from the best rating until the rating no longer changes. The Effective Tax Rate (the column Tax Rate) only shields the interest the EBIT covers. The formula is as follows:
\[\text{Unlevered Beta} = \frac{\text{Levered Beta}}{1 + \frac{(1 - \text{Tax Rate}) \cdot \text{Current Debt}}{\text{Current Equity}}}\] \[\text{Beta} = \text{Unlevered Beta} \cdot \left(1 + \frac{(1 - \text{Tax Rate}) \cdot \text{Debt}}{\text{Equity}}\right)\] \[\text{Cost of Equity} = \text{Risk Free Rate} + \text{Beta} \cdot \text{Equity Risk Premium}\] \[\text{Pre Tax Cost of Debt} = \text{Risk Free Rate} + \text{Default Spread}\] \[\text{Interest Expense} = \text{Debt} \cdot \text{Pre Tax Cost of Debt}\] \[\text{Interest Coverage Ratio} = \frac{\text{EBIT}}{\text{Interest Expense}}\] \[\text{Effective Tax Rate} = \text{Tax Rate} \cdot \min\left(1, \frac{\max\left(\text{EBIT}, 0\right)}{\text{Interest Expense}}\right)\] \[\text{WACC} = \frac{\text{Equity}}{\text{Value}} \cdot \text{Cost of Equity} + \frac{\text{Debt}}{\text{Value}} \cdot \text{Pre Tax Cost of Debt} \cdot (1 - \text{Effective Tax Rate})\]Also known as: optimal debt ratio, target capital structure, WACC-minimizing leverage.
Example · KO, PEP · 2021 to 2025
Install the Finance Toolkit with pip install financetoolkit -U, then call get_optimal_capital_structure:
from financetoolkit import Toolkit
toolkit = Toolkit(
["KO", "PEP"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2021-01-01",
end_date="2025-12-31",
)
toolkit.models.get_optimal_capital_structure(
show_columns=["Rating", "Weighted Average Cost of Capital", "Optimal"]
).loc["KO"]
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
At which debt ratio would Coca-Cola's cost of capital have been lowest, and what credit rating would each debt ratio have given, based on 2021 to 2025?
Which returns:
| Debt Ratio | Rating | Weighted Average Cost of Capital | Optimal |
|---|---|---|---|
| 0.0 | 0.0447 | 0 | |
| 0.1 | Aa2/AA | 0.0444 | 1 |
| 0.2 | A3/A- | 0.0446 | 0 |
| 0.3 | Ba1/BB+ | 0.0457 | 0 |
| 0.4 | C2/C | 0.1015 | 0 |
| 0.5 | C2/C | 0.1175 | 0 |
| 0.6 | C2/C | 0.1335 | 0 |
| 0.7 | C2/C | 0.1494 | 0 |
| 0.8 | C2/C | 0.1654 | 0 |
| 0.9 | C2/C | 0.1814 | 0 |
10 rows
Parameters
get_optimal_capital_structure accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
firm_type | str | The synthetic rating table to use. Options are: “large” (market capitalization above five billion), “small” (smaller and riskier firms), “financial” (banks and other financial firms), “auto” (large or small from the latest market capitalization). Defaults to “auto”. | "auto" |
tax_rate | float | None | The tax rate the interest saves. Defaults to None, which is the latest effective tax rate of each company (the Corporate Tax Rate of get_weighted_average_cost_of_capital). | None, which is the latest effective tax rate of each company (the Corporate Tax Rate of get_weighted_average_cost_of_capital) |
market_risk_premium | float | None | The annual equity risk premium. Defaults to None, which is the premium of get_weighted_average_cost_of_capital: the equity risk premium of each company’s country and, where that is not available, the benchmark’s average return above the risk-free rate. | None, which is the premium of get_weighted_average_cost_of_capital: the equity risk premium of each company's country and, where that is not available, the benchmark's average return above the risk-free rate |
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 |
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. (2014). “Applied Corporate Finance.” Wiley, 4th edition, chapter 8.
- Paper Damodaran, A. “Ratings, Interest Coverage Ratios and Default Spread.” https://pages.stern.nyu.edu/~adamodar/New_Home_Page/datafile/ratings.html