When markets are incomplete, social security can partially insure against idiosyncratic and aggregate risks. We incorporate both risks into an analytically tractable model with two overlapping generations. We derive the equilibrium dynamics in closed form and show that the joint presence of both risks leads to overproportional risk exposure for households. This implies that the whole benefit from insurance through social security is greater than the sum of the benefits from insurance against each of the two risks in isolation. We measure this through interaction effects which appear even though the two risks are orthogonal by construction. While the interactions unambiguously increase the welfare benefits from insurance, they can increase o...