AbstractWe examine the long‐run impact of unfunded social security on capital stock and wealth inequality in an overlapping generations (OLG) model where newborn individuals differ in their inheritance. In our model, individuals' decisions are subject to social comparisons, which can lead to overspending on personal consumption and result in zero bequests left within poor families. In this scenario, unfunded social security increases long‐run wealth inequality by redistributing wealth from poor to rich families, who always leave bequests. However, it increases long‐run capital stock, too. We also show that when none or all of the families leave bequests in the long run, our model predicts negative and neutral effects of social security on capital accumulation, in line with the standard OLG models of Diamond and Barro. Thus, our results emphasize the need to account for heterogeneity in bequest behavior in the analysis of social security.