A company's capital structure, which is comprised of debt and equity, impacts its cost of capital in two ways. First, the cost of debt is typically lower than the cost of equity, so the more debt a company has, the lower its overall cost of capital. Second, the higher the debt-to-equity ratio, the higher the perceived risk of the company, which can lead to a higher cost of capital.