Roth IRAs offer some significant tax benefits, but like all tax-advantaged retirement accounts, they're subject to annual contribution limits set by the IRS. In 2020, most people can contribute up to $6,000 to a Roth IRA or $7,000 if they're 50 or older. But things get messier if you earn a lot of money.

Here's a closer look at how the IRS decides how much you're allowed to contribute to a Roth IRA annually.

Road sign with Roth spelled out, against a blue sky with a few clouds.

Image source: Getty Images.

How much can I contribute to a Roth IRA in 2020?

Your Roth IRA contribution limit depends on your tax filing status and your modified adjusted gross income (MAGI). If you don't know your MAGI, see below for information on how to calculate it.

The following table outlines how much you can contribute to your Roth IRA in 2020.

Tax Filing Status

You may contribute up to the annual limit if your MAGI is under:

You may contribute a reduced amount if your MAGI is between:

You may not contribute directly to a Roth IRA if your MAGI is over:

Single, Head of Household, or Married Filing Separately if you did not live with your spouse at all during the year

$124,000

$124,000 and $139,000

$139,000

Married Filing Jointly or Qualifying Widow(er)

$196,000

$196,000 and $206,000

$206,000

Married Filing Separately if you lived with your spouse at any point during the year

N/A

$0 and $10,000

$10,000

Source: IRS.

Those who are able to contribute a "reduced amount" to their Roth IRA will have to calculate their maximum contribution based on their income. Keep reading for more on how to do this.

For those who earn too much money to contribute directly to a Roth IRA in 2020, you still have options. You can use a backdoor Roth IRA in which you contribute money to a traditional IRA and then convert it to a Roth IRA. Or, if your income is that high, you may be better off contributing to a tax-deferred retirement account that will save you money this year rather than paying taxes now.

How do I calculate my modified adjusted gross income (MAGI)?

For many people, adjusted gross income (AGI) is the same as their MAGI. However, your MAGI is not listed on your tax return, so you will have to calculate it to be sure. To do this, start with your AGI. (Note that your AGI from past years is listed on previous tax returns if you want to start there, but you may have to do the math if you're looking for your AGI for the current year.) To calculate AGI, take your gross income -- all the money you earn during the year -- and subtract certain tax-deductible expenses, including:

  • Half of self-employment taxes, if applicable
  • Student loan interest
  • Tax-deferred retirement plan contributions
  • Health insurance premiums, if self-employed
  • Tuition and fees
  • Health savings account (HSA) contributions
  • Educator expenses
  • Moving expenses, if a member of the military
  • Penalties on early retirement account withdrawals
  • Alimony paid, depending on the year of divorce

Then, because MAGI actually includes a few of those, add back these more common deductions, including:

  • Student loan interest
  • IRA contributions
  • Tuition and fees
  • Half of self-employment taxes
  • Employer-paid adoption expenses
  • Passive losses or passive income
  • Rental losses
  • Taxable Social Security payments (excluding SSI)
  • Foreign earned income or housing exclusions
  • Any losses from publicly traded partnerships

How much can I contribute to a Roth IRA if I'm a high earner?

Use the following formula to determine how much you're eligible to contribute to a Roth IRA in 2020 if you are a high earner:

  1. Calculate your MAGI.
  2. Follow the appropriate next step based on your tax filing status:
    • If you're filing as single, head of household, or married filing separately (if you didn't live with your spouse all year), subtract $124,000 from your MAGI.
    • If you're married filing jointly, subtract $196,000 from your MAGI.
    • If you're married filing separately and did live with your spouse during the year, proceed with your MAGI straight to the next step.
  1. Divide your result from Step 2 by $15,000 -- or by $10,000 if you're married filing jointly, a qualifying widow(er), or married filing separately if you lived with your spouse at any point during the year.
  2. Multiply your result from Step 3 by the annual contribution limit for the year ($6,000 or $7,000 if you're aged 50+).
  3. Subtract your result in Step 4 from your annual contribution limit ($6,000, or $7,000 if 50+).

To illustrate how this works, consider a 40-year-old married couple filing jointly with a MAGI of $200,000. They would subtract $196,000 from this amount, leaving them with $4,000. Dividing this by $10,000 leaves them with 0.4. Then, they would multiply this by the $6,000 contribution limit for adults under 50 to get $2,400. Finally, they would subtract the $2,400 from the $6,000 limit and end up with a maximum contribution limit of $3,600 for the year.

Keep in mind that all of your IRA contributions count toward the same limit, so if you've also contributed some money to a traditional IRA this year, that could reduce your maximum Roth IRA contribution even further. You must make sure your total annual IRA contributions remain under $6,000, or $7,000 if you're 50 or older.

Most people won't have to worry about Roth IRA income limits, but if you're a high earner, keep these in mind so you don't accidentally contribute too much to your account. Income limits may change from year to year, so check them every year to figure out exactly how much you're allowed to contribute.