The Capital Structure Analyzer is a quantitative finance model that helps you find a firm's optimal mix of debt and equity. It implements the Modigliani-Miller (MM) framework with corporate taxes — one of the cornerstones of modern corporate finance — and extends it with realistic financial distress costs to produce the complete trade-off theory picture of firm value.
At its core, the tool answers: how much debt should a firm take on to maximise its total value and minimise its cost of capital? It models the tax shield benefit of debt (which increases firm value) against the escalating costs of financial distress (which destroy value above a critical leverage threshold), and plots both firm value and WACC continuously across every possible D/E ratio.
Modigliani and Miller (1958, 1963) showed that in a world with corporate taxes, a levered firm is worth more than an all-equity firm because interest payments are tax-deductible — creating a tax shield that accrues entirely to shareholders. In the pure MM world, firms should take on as much debt as possible to maximise the tax shield.
The real world, however, imposes financial distress costs: legal fees, management distraction, loss of customers and key employees, and the destruction of intangible franchise value that materialise as debt rises beyond a critical threshold. The trade-off theory balances these two forces — debt's tax benefit versus distress cost — to identify an interior optimal capital structure where firm value is maximised and WACC is minimised.
You can model your firm's capital structure and read the optimal D/E ratio in under a minute.
Set EBIT (operating earnings), the corporate tax rate, and the unlevered firm value (V_U — the value of the firm if it had zero debt). These three inputs define the MM foundation of the model. Use the base input fields for precise values, or drag the sliders for quick sensitivity analysis across ±100% of the base value.
Enter the target D/E ratio you want to analyse in the results box. Drag the D/E slider to see results update in real time. Set the cost of debt (r_d) to the firm's current or expected borrowing rate. The tool instantly recomputes all nine output metrics.
Set the Critical D/E threshold — the leverage point beyond which financial distress begins. Then enter the direct and indirect bankruptcy cost percentages. The tool paints the D/E badge green, orange, or red to show whether your current D/E is safe, near the threshold, or already in the distress zone.
The canvas chart plots firm value (teal line, left axis) and WACC (red line, right axis) against all D/E ratios from zero to 2.5× the critical threshold. The optimal D/E is at the peak of the teal curve and the trough of the WACC curve. Export to PDF for presentations or save the model for future sessions.
These five inputs form the MM foundation of the model. Each has a numeric base input and a paired slider that adjusts the value from 0% to 200% of the base (i.e., ±100%). Dragging the slider immediately updates all outputs, enabling live sensitivity analysis.
These three inputs adjust EBIT-based earnings into true free cash flow measures. They capture the gap between accounting profit and actual cash generation — the difference that matters for firm valuation and equity returns.
These three inputs define the distress cost side of the trade-off. Their sliders are rendered in danger red to signal that these parameters govern the zone where excessive leverage starts destroying firm value. All three have base inputs and ±100% sliders.
The results box appears below the input panel with a dark background and gold text. It displays nine metrics computed at the desired D/E ratio entered above. All values update instantly when any slider or input changes.
The chart is rendered on an HTML5 Canvas element and plots two metrics simultaneously across the full range of D/E ratios. It gives an immediate visual answer to the trade-off theory: there is a single optimal leverage point where firm value peaks and WACC troughs.
Plotted against the left Y-axis (rupee values). Starting from V_U at D/E = 0, the teal line rises as the tax shield accumulates with increasing leverage. It reaches a peak at the optimal D/E ratio, then slopes steeply downward as distress costs overwhelm the tax benefit above the critical threshold. The peak of this curve is the optimal capital structure — the D/E ratio that maximises total firm value.
Plotted against the right Y-axis (percentage). The WACC line falls as leverage increases (because cheap, tax-deductible debt replaces expensive equity in the capital mix) and reaches a minimum at the same optimal D/E that maximises firm value. Above the critical threshold, the distress premium inflates WACC, causing it to rise sharply. The trough of this curve is the optimal capital structure — the same point as the peak of the V_L curve.
A faint dashed version of the WACC line that shows what WACC would be if there were no distress costs — the pure MM-with-taxes WACC that continues declining monotonically with leverage. The gap between the red solid WACC line and this dashed baseline above the critical threshold represents the pure distress cost component being added to the cost of capital.
A vertical dashed red line at D/E = Critical D/E. This is the boundary between the safe zone (to the left) and the distress zone (to the right). The V_L curve peaks near this line (slightly to its left in most parameterisations, depending on how steeply distress costs grow). The WACC curve troughs at or near this line as well.
Hovering anywhere on the chart surface displays a tooltip showing the exact values at that D/E ratio: the D/E ratio itself, the Levered Firm Value (V_L), the WACC with distress, and the clean WACC without distress. Use the tooltip to precisely identify the D/E ratio at which V_L peaks or WACC troughs — this is your optimal capital structure.
The following concepts are the theoretical foundations of everything the tool computes. Understanding them turns the chart from a set of lines into an actionable strategic framework for capital structure decisions.
Modigliani and Miller's 1963 correction to their 1958 theorem. With corporate taxes, the value of a levered firm equals the value of an all-equity firm plus the present value of the tax shield. Unlike the original irrelevance proposition, MM with taxes implies firms should maximise debt to maximise the tax shield — which is why distress costs are essential to model.
V_L = V_U + t × Debt
The cost of equity rises with leverage in a predictable way: as the firm takes on more debt, equity holders bear greater financial risk (earnings volatility and residual seniority risk), demanding higher returns. However, the tax shield partially offsets this effect, so WACC still falls with leverage below the distress threshold — cheaper debt plus the tax benefit outweighs the rising cost of equity.
r_e = r_A + (r_A − r_d)(1−t)(D/E)
The dominant practical theory of capital structure. Firms balance the tax benefits of debt (which rise with leverage) against the expected costs of financial distress (which also rise with leverage, but non-linearly). The optimal capital structure is the interior D/E ratio where the marginal tax benefit of adding one more unit of debt exactly equals the marginal increase in expected distress costs.
FCF (Free Cash Flow to Firm) measures the firm's total cash generation independent of financing. FCFE (Free Cash Flow to Equity) is the residual after debt service — the cash that belongs to shareholders. As leverage rises, FCFE shrinks because more of FCF is consumed by interest payments. If FCFE turns negative, the firm is effectively transferring value from equity to debt holders.
WACC is the discount rate applied to FCF to derive firm value: V = FCF / WACC (in perpetuity). Minimising WACC is therefore equivalent to maximising firm value. Each unit of debt added below the distress threshold reduces WACC (the cheaper, tax-sheltered debt is substituting for expensive equity), but above the threshold, the distress premium reverses this relationship and WACC rises again.
V_L = FCF ÷ WACC
Direct costs (legal fees, restructuring advisors, court costs) are the out-of-pocket expenses of formal insolvency — typically 3–5% of firm value. Indirect costs (lost customers, key employee departures, forgone investment, supplier credit tightening) are often much larger — 10–30% for customer-facing or knowledge-intensive firms. Both scale with how far leverage exceeds the critical threshold, growing quadratically in this model.
The Capital Structure Analyzer is applicable across a wide range of real-world corporate finance and investment decisions:
The optimal D/E ratio is at the peak of the teal firm-value curve and the trough of the red WACC curve. Hover along the teal line to find the exact D/E at which V_L is maximised. Then set the desired D/E input to that value and read all nine metrics in the results box. This is the capital structure the firm should target to maximise total enterprise value.
The badge next to the desired D/E display has three states that signal your current leverage risk profile at a glance:
Negative FCF (shown in red) means the firm's operations and investment cycle consumes more cash than it generates — before any financing. This is common for high-growth firms with large capex programs. In this case, WACC will be negative or undefined (the tool still computes it from FCF/V_L, which will be negative). Negative FCF firms should interpret the tool as a structural analysis rather than a valuation.
Negative FCFE (shown in red) at high leverage levels signals that interest charges exceed after-tax operating cash flows available to equity holders. While the firm as a whole may still generate positive FCF, equity holders are in a deficit position. This is a strong warning sign in the distress zone.
If the V_L curve continues rising monotonically and never peaks within the chart range, it means either (a) the Critical D/E is set too high relative to the visible chart range, or (b) the distress costs are set very low. Try reducing the Critical D/E or increasing the max distress cost percentages to see the trade-off emerge. A truly flat V_L curve across all leverage ratios would imply the firm has no meaningful distress costs — the pure MM world where ever-more debt is always value-accretive.
Two productivity features — Save Model and Export PDF — are available to Trial and Premium users. Free users can run the full analysis and read every result on-screen; saving and exporting require an account.
| Feature | Free | Trial | Premium |
|---|---|---|---|
| Run Analysis | ✓ Unlimited | ✓ Unlimited | ✓ Unlimited |
| Export PDF | ✗ Not available | ✓ Unlimited | ✓ Unlimited |
| Save Model | ✗ Not available | Up to 3 models | ✓ Unlimited |
| Load Saved Model | ✗ Not available | ✓ All saved models | ✓ All saved models |
| Delete Saved Model | ✗ Not available | ✓ All saved models | ✓ All saved models |
Click the Export PDF button after setting your parameters. The tool generates a formatted A4 landscape PDF entirely in your browser using jsPDF — no data is transmitted to a server — and downloads it immediately.
A model is a named snapshot of all current inputs. Saving a model lets you return to a previous capital structure scenario in any future session with a single click — without re-entering all eleven parameters.
The Save Model button is available to Trial and Premium users. Click it after configuring all parameters for the scenario you want to preserve.
Choose a short, descriptive name — for example TATA-BASE,
HIGHLEVR, or LBO-SCEN. Names are unique per account;
saving under an existing name updates the existing record.
Select any saved model from the Load saved model dropdown. All parameters are restored instantly. Use the Delete button to remove models you no longer need (Trial users: freeing a slot allows saving a new model without upgrading).
During a Trial, you can save up to three distinct capital structure scenarios. Overwriting an existing model (saving under the same name) updates the record without consuming an additional slot. When all three slots are used, overwrite an existing model or upgrade to Premium to save more scenarios.
Premium users can save as many scenarios as needed. This is especially valuable for sensitivity analysis across multiple tax rate environments, distress cost assumptions, or industry comparisons — saving each parameterisation and switching between them instantly for presentation or comparison.
A quick-reference table of every technical term used in the tool and this guide.
| Term | Definition | In this tool |
|---|---|---|
| EBIT | Earnings Before Interest and Tax. The firm's operating profit before financing costs and taxes. It is the pre-leverage, pre-tax measure of the firm's income-generating power. | Core input. Drives FCF and all downstream cash flow calculations. |
| Tax Rate (t) | The corporate income tax rate applied to taxable profits. The higher the tax rate, the more valuable each rupee of interest deduction, and the stronger the incentive to use debt financing. | Core input. Slider range 0–75%. Controls the tax shield magnitude. |
| D/E Ratio | Debt-to-Equity ratio. The total market value of debt divided by the total market value of equity. A ratio of 1.0 means equal debt and equity; 2.0 means twice as much debt as equity. | Desired D/E input drives all results. Chart plots full D/E range from 0 to 2.5× critical. |
| D/C Ratio | Debt-to-Capitalization ratio. Debt as a fraction of total capital (debt + equity). Bounded between 0 and 1, making it more intuitive than D/E for communication. D/C = D/E ÷ (1 + D/E). | Displayed in the results box as the first metric. |
| V_U (Unlevered Firm Value) | The total value of the firm if it were financed entirely with equity and had zero debt. It is the MM baseline — the firm's value before any tax shield or distress effects. Also called the all-equity value. | Core input. The starting point of the V_L curve at D/E = 0. |
| V_L (Levered Firm Value) | The total value of the levered firm — the sum of debt and equity market values. In MM with taxes: V_L = V_U + Tax Shield (below distress). Enterprise Value (EV) in valuation terminology. | Key output metric. Teal line on the chart (left Y-axis). |
| Tax Shield | The present value of the interest tax savings generated by carrying debt. Equals t × Debt in the MM perpetuity model (assuming constant, permanent debt). The source of all capital structure benefit in the MM framework. | Displayed in the results box. Equals t × Debt. |
| FCF | Free Cash Flow to Firm. Cash generated by operations available to all capital providers (debt + equity), before any financing payments. FCF = EBIT(1−t) − Capex + Depreciation − ΔNWC. Capital-structure neutral. | Displayed in results box. Green if positive, red if negative. |
| FCFE | Free Cash Flow to Equity. Cash available to equity holders after debt service. FCFE = (EBIT − Interest)(1−t) − Capex + Depreciation − ΔNWC. Falls as leverage rises because interest absorbs more cash. | Displayed in results box. Green if positive, red if negative. |
| WACC | Weighted Average Cost of Capital. The blended required return of all capital providers, weighted by their proportions. Minimising WACC is equivalent to maximising firm value. WACC = FCF ÷ V_L. | Red line on the chart (right Y-axis). Displayed in results box; teal if safe, red if in distress. |
| Cost of Equity (r_e) | The rate of return required by equity holders given the firm's operating risk and financial leverage. Derived here as FCFE ÷ Equity Value. Rises with leverage as equity risk increases. | Displayed in the results box as the eighth metric. |
| Cost of Debt (r_d) | The pre-tax interest rate on the firm's debt. Determines the interest expense (Interest = Debt × r_d) and feeds into FCFE. The after-tax cost of debt is r_d × (1 − t). | Core input. Default 7%. Slider range 5–30%. |
| Critical D/E | The leverage threshold above which financial distress costs begin to materialise. Below this threshold, only the MM tax shield formula applies. Above it, a quadratic distress premium is added to WACC and subtracted from V_L. | Bankruptcy risk input. Red dashed vertical line on the chart. |
| Direct Bankruptcy Costs | The hard, quantifiable costs of formal financial distress: legal fees, court costs, restructuring advisory fees. Typically 3–5% of pre-distress firm value for large public companies. This is the ceiling value in the model. | Max Direct BK Cost % input. Part of the distress premium formula. |
| Indirect Bankruptcy Costs | The soft, often-larger costs of financial distress: customer defection, employee departures, forgone investment (debt overhang), tighter supplier terms, and management distraction. Typically 10–30% of firm value for knowledge-intensive or customer-facing businesses. | Max Indirect BK Cost % input. Part of the distress premium formula. |
| Distress Premium | The additional WACC penalty imposed when D/E exceeds the critical threshold. Grows as the square of how far D/E exceeds the threshold, multiplied by the sum of the direct and indirect cost percentages. Distress premium = (excess/threshold)² × (direct% + indirect%). | Shown in the bankruptcy warning box when D/E > Critical D/E. |
| Trade-Off Theory | The dominant practical theory of capital structure. Firms optimally balance the tax shield benefit of debt (increasing with leverage) against expected financial distress costs (also increasing with leverage) to find an interior optimal D/E where firm value is maximised. | The entire conceptual framework of this tool. The chart is a visual representation of the trade-off. |
| Capex | Capital Expenditure. Cash spent on acquiring or upgrading fixed assets. Reduces both FCF and FCFE. Not expensed in EBIT (only depreciation is); hence it must be deducted in the FCF formula to get to actual cash flow. | Cash flow input. Default ₹1,00,000. |
| Depreciation | The non-cash charge that allocates the cost of fixed assets over their useful lives. Added back in the FCF formula because EBIT already deducted it as an expense, but no cash actually left the business. | Cash flow input. Default ₹1,00,000. |
| ΔNet Working Capital (ΔNWC) | The annual increase in current assets (receivables, inventory) minus the increase in current liabilities (payables). Positive ΔNWC consumes cash (growth firms). Negative ΔNWC releases cash (retail, subscription businesses). | Cash flow input. Default ₹75,000. |