We examine the impact of the U.S. bankruptcy procedure on the valuation of corporate securities and capital structure decisions. We provide closed-form solutions for corporate debt and equity values when defaulting firms can either liquidate their assets or renegotiate outstanding debt under court protection. We show that the possibility to renegotiate the debt contract (i) has an ambiguous impact on leverage choices and (ii) increases credit spreads on corporate debt. The sharing rule of cash flows during bankruptcy has a large impact on optimal leverage. By contrast, credit spreads on corporate debt show little sensitivity to this very parameter.