In a two-period life-cycle model with ex ante homogeneous households, earnings risk, and a general earnings function, we derive the optimal linear labor tax rate and optimal linear education subsidies. The optimal income tax trades off social insurance against incentives to work. Education subsidies are not used for social insurance, but they are only targeted at offsetting the distortions of the labor tax and internalizing a fiscal externality. Both optimal education subsidies and tax rates increase if labor and education are more complementary, because education subsidies indirectly lower labor tax distortions by stimulating labor supply. Optimal education subsidies (taxes) also correct non-tax distortions arising from missing insurance markets. Education subsidies internalize a positive (negative) fiscal externality if there is underinvestment (overinvestment) in education because of risk. Education policy unambiguously allows for more social insurance if education is a risky activity. However, if education hedges against labor-market risk, optimal tax rates could be lower than in the case without education subsidies.