Three steps to calculate social security benefits. 1  First, a worker’s previous earnings are restated in terms of today’s wages to reflect wage growth. 2  Second, earnings for the highest 35 years are averaged and divided by the number of months in 35 years to arrive at Average Indexed Monthly Earnings (AIME).