The authors study optimal capital income taxation in heterogeneous agent economies featuring endogenous government spending. Similar to Aiyagari (1995), they find that the long-run optimal capital tax rate should not be zero as long as the competitive equilibrium risk-free interest rate differs...