This article was updated on Dec. 30, 2015.
The size of your monthly Social Security check when you retire will depend largely on how much you earned and how much you paid in Social Security tax during your working years.
It's not as simple as getting your money back, however. The IRS uses special formulas and rules to determine how much you receive in benefits. The maximum amount that you can receive per month if you retire at full retirement age in 2016 is $2,639, but your actual benefits will vary depending on several factors.
Because of the way your benefits are determined, you can't assume that the more you earn, the more you will receive in benefits. Here's how it works.
What factors affect Social Security benefits?
The biggest factor in how much you will receive in Social Security benefits is how much you earned while you were working. For Social Security purposes, what matters is the average amount you earned during your highest-earning 35 years before age 62, adjusted for cost-of-living increases.
The age at which you start taking benefits also affects how much you receive per month once you start. The longer you wait to start taking benefits, up to age 70, the higher your monthly benefits will be.
If you have earned income in the same year you receive benefits and you either have not reached full retirement age or reached full retirement age that year, then your Social Security benefits may be reduced.
Your benefits may also be affected by different types of earnings, and a pension received from a job in which you did not pay Social Security taxes will reduce your benefit.
What factors do not affect Social Security benefits?
Working longer doesn't necessarily mean you get more Social Security benefits. Only your 35 highest-earning years (adjusting for inflation) count, so continuing to work won't boost your benefits unless it increases your average income for the highest-earnings years.
And working fewer hours or for less pay as you near retirement won't hurt your Social Security benefits. Some people mistakenly assume that Social Security benefits are based on the last years worked. Fortunately, you can work as long as you want, and your Social Security benefits are still based on your 35 highest-earning years.
Do you qualify for Social Security benefits?
Not everyone who pays into the Social Security system qualifies to receive retirement benefits. To receive Social Security benefits on your record, you must have at least 40 credits. You generally earn four credits per year that you work. In 2016, you'll receive one credit for each $1,260 you earn, up to four credits per year.
If you don't qualify for benefits under your own record, you may be able to claim benefits under the record of your spouse or former spouse.
Step by step: How are Social Security benefits calculated?
If you qualify for Social Security benefits, here's how the SSA determines the amount of your monthly check.
1. Total earnings: The SSA determines the total amount you earned in the 35 years during which you made the most money, up to a maximum amount per year. The limit is adjusted for inflation -- in 1951, the limit was $3,600. In 2016, it's $118,500.
If you worked fewer than 35 years, the missing years are counted as zero. For example, say you worked 20 years. For calculating your highest earning years, the SSA takes all 20 of the years you worked and factors in 15 years at zero pay.
The amounts you actually earned are also multiplied by an index factor for each year in order to account for inflation.
2. Average indexed monthly earnings: The amount from Step 1 is divided by 420 months (35 years) and rounded down to the nearest dollar to find your average indexed monthly earnings (AIME).
3. Benefit at full retirement age (the age at which you can take full benefits): Your benefit is based on a three-tiered percentage of your average indexed monthly earnings. Confusingly, though, the formula is based on the year when you first become eligible for Social Security. For those who first become eligible for Social Security in 2016, the benefit is calculated as follows:
(90% of your first $856 of AIME) + (32% of AIME above $856 and through $5,157) + (15% of AIME above $5,157)
The sum is your estimated monthly retirement benefit at your full retirement age.
If your AIME is $5,500, then your benefit is calculated as follows:
90% x $856 = $770.40
+ 32% x ($5,157 - 856) = $1,376.32
+ 15% x ($5,500 - $5,157) = $51.45
Total = $2,198.17, which the SSA rounds to the next-lower dime, making a total monthly benefit of $2,198.10.
Full retirement age ranges from 65 to 67 and depends on the year in which you were born. If you were born between 1943 and 1954, then your full retirement age is 66.
4. Benefit if you retire early: If you want to retire early and take Social Security benefits before full retirement age, then your monthly benefit is reduced. If your full retirement age is 66 and you want to retire at age 62, for example, then multiply the result from Step 3 by 75%.
5. Reductions for earned income while receiving benefits: If you are under your full retirement age and working, you can still receive early Social Security benefits. However, for every $2 you earn above the annual limit, your benefits are reduced by $1. This annual limit in 2016 is $15,720, assuming you're under your full retirement age for the entire year.
In the year you reach full retirement age, before the month in which you reach that age you can earn up to a certain limit before the SSA deducts $1 for every $3 you earn. In 2016, that limit is $41,880.
After you reach your full retirement age, you can work as much as you want without worrying about your Social Security benefits.
Social Security benefits can be an important part of your retirement plan. Knowing how your benefits are calculated can help you understand how much you can expect to receive -- and help you maximize your benefits for retirement.
The $15,978 Social Security bonus most retirees completely overlook
If you're like most Americans, you're a few years (or more) behind on your retirement savings. But a handful of little-known “Social Security secrets” could help ensure a boost in your retirement income. In fact, one MarketWatch reporter argues that if more Americans knew about this, the government would have to shell out an extra $10 billion annually. For example: one easy, 17-minute trick could pay you as much as $15,978 more... each year! Once you learn how to take advantage of all these loopholes, we think you could retire confidently with the peace of mind we're all after. Simply click here to discover how you can take advantage of these strategies.
Try any of our Foolish newsletter services free for 30 days. We Fools may not all hold the same opinions, but we all believe that considering a diverse range of insights makes us better investors. The Motley Fool has a disclosure policy.