Abstract We study the optimal design of a fair public pension system in a multi-period overlapping generations model with occupation-specific morbidity and mortality that depends on the retirement age. The fairness constraint acts as institutional device ensuring that lifetime returns to contributions are equal across occupational groups. We consider group-specific replacement rates and a calculatory interest rate for early contributions as policy instruments. Calibrating the model to Germany, we find that the transition to optimal fair pension policies may induce early retirement of blue-collar workers and significantly raises their lifetime pension benefits and welfare. Aggregate welfare increases in all fair pension scenarios.