We investigate the impact of bankruptcy codes on firms' capital-structure choices. We develop a theoretical model to … identify how firm characteristics may interact with the bankruptcy code in determining optimal capital structures. A novel and …-friendly bankruptcy code (such as the US's) and one that is relatively more debt-friendly (such as the UK's) should be a decreasing …