This study examines the effects of pay-as-you-go social security programs in aging economies when the middle-aged both educate their dependent children and subsidize the retirement of the old. Using an overlapping generations framework in which agents are three-period lived but timing of death in the third period is uncertain, we analyze the effects of social security tax schemes, under various demographic assumptions, on capital accumulation, education expenditures, social welfare, and economic growth. We find that in many cases social security crowds out education, and reduces economic growth and social welfare