We develop a q theory of investment with endogenous leverage, payout, hedging, and risk-taking dynamics. The key frictions are costly equity issuance and incomplete markets. We show that the marginal source of external financing on an on-going basis is debt. The firm lowers its debt when making...