A Roth IRA has strict rules about when you can take money out without penalty

You can withdraw the money you contributed to a Roth IRA at any time, tax-free and penalty-free. But the earnings on that money—the investment gains—are locked until you turn 59½, with narrow exceptions. If you withdraw earnings before that age and don't meet one of those exceptions, you pay income tax on the withdrawal plus a 10% early withdrawal penalty. This is why a Roth IRA is not a savings account: a savings account lets you move money in and out whenever you want. A Roth IRA lets you move in contributions whenever you want, but moving out earnings costs you.

The IRS treats contributions and earnings separately. When you withdraw money, the IRS assumes you are taking out earnings first, even if you think you are taking out contributions. This rule is called the "pro-rata rule," and it applies unless you can prove otherwise through your account records. If your Roth has both contributions and earnings, and you withdraw $5,000, the IRS calculates what percentage of your total balance is earnings, applies that percentage to your $5,000 withdrawal, and taxes the result.

Key Takeaways

  • You can withdraw contributions (the money you put in) anytime without tax or penalty, but earnings (investment gains) are locked until age 59½ unless you meet a narrow exception.
  • The IRS uses the pro-rata rule to determine how much of any withdrawal is earnings, which can trigger tax and penalty even if you intended to withdraw only contributions.
  • A Roth IRA is designed for long-term retirement savings, not short-term cash needs, because the tax and penalty costs can be steep.
  • If you need emergency cash, a traditional savings account, money market account, or line of credit will cost you far less than raiding a Roth IRA.

When you can withdraw earnings without penalty

The IRS allows penalty-free withdrawal of Roth IRA earnings in a few specific situations. You must be at least 59½ years old, or you must meet one of these exceptions: you are disabled, you are a first-time homebuyer (up to $10,000 lifetime), you have unreimbursed medical expenses above 7.5% of your adjusted gross income, you pay health insurance premiums while unemployed, or you inherit the account. Even when an exception applies, you still owe income tax on the earnings unless the account has been open for at least five tax years.

The five-year rule is separate from the age rule. If you open a Roth IRA at age 58 and withdraw earnings at age 59½, you still owe tax on those earnings because the account has not been open for five years. If you open it at age 55 and withdraw at age 59½, you owe no tax if the account has been open since before age 60. The five-year clock starts on January 1 of the year you make your first contribution to any Roth IRA you own.

How the pro-rata rule works against you

Suppose you contributed $20,000 to a Roth IRA over several years, and your investments grew to $30,000. Your contributions are $20,000; your earnings are $10,000. If you withdraw $5,000, the IRS does not let you choose to take out contributions first. Instead, it calculates that 33% of your balance is earnings ($10,000 ÷ $30,000), so 33% of your withdrawal is earnings: $1,650. You owe income tax on that $1,650 at your marginal rate, plus a 10% penalty ($165) if you are under 59½ and do not meet an exception.

The pro-rata rule applies across all Roth IRAs you own. If you have two Roth IRAs—one with only contributions and one with contributions plus earnings—the IRS treats them as a single account for the purpose of calculating what percentage of your withdrawal is earnings. This catches many people off guard. You cannot avoid the rule by withdrawing from the account with only contributions; the IRS looks at your total Roth balance across all accounts.

What happens if you need cash before retirement

If you face an emergency and need cash, withdrawing from a Roth IRA should be your last resort, not your first. The tax and penalty can easily cost you 30% to 40% of the withdrawal amount. A $5,000 withdrawal might net you only $3,000 after taxes and penalty, depending on your tax bracket. You also lose the years of tax-free growth that money would have earned if it stayed invested.

Better options include a high-yield savings account (which earns interest and lets you withdraw anytime), a money market account (similar to savings but with higher rates), a personal loan from a bank or credit union, a line of credit, or a 401(k) loan if your employer plan allows it. A 401(k) loan lets you borrow against your own balance and repay it over time, with no tax or penalty as long as you repay on schedule. None of these options will cost you as much as an early Roth withdrawal.

The difference between contributions and earnings

Your Roth IRA statement should show your total contributions separately from your earnings. If it does not, contact your custodian (the bank or brokerage holding the account) and ask for a breakdown. Knowing this number matters because it tells you how much you can withdraw without triggering the pro-rata rule.

If you have only contributions and no earnings—for example, you opened the account last year and the market has been flat—you can withdraw your contributions without tax or penalty at any age. But the moment your account has earnings, any withdrawal is subject to the pro-rata calculation. Keep records of every contribution you make, because the IRS will ask you to prove how much you contributed if you ever withdraw before 59½.

Roth conversion and the pro-rata rule

If you have a traditional IRA and convert it to a Roth, the pro-rata rule applies to that conversion too. When you convert, you owe income tax on the pre-tax money you convert. But if you later withdraw from your Roth before 59½, the IRS treats the converted amount as earnings for the first five years after the conversion, even though you already paid tax on it. This is called the "five-year holding period for conversions," and it is a separate rule from the five-year rule for the account itself.

Conversions are useful for people who expect to be in a lower tax bracket in the year of conversion, or who want to move money into tax-free growth. But they add complexity to the pro-rata calculation and can make early withdrawals more expensive than you expect. If you are considering a conversion, talk to a tax professional first.

Frequently Asked Questions

Can I withdraw my contributions without paying tax?

Yes. Contributions you made to a Roth IRA can be withdrawn at any age without tax or penalty. The challenge is proving to the IRS that you are withdrawing contributions and not earnings. Keep records of every contribution, and ask your custodian for a statement showing your total contributions versus earnings.

What if I need money for a down payment on a house?

The first-time homebuyer exception lets you withdraw up to $10,000 in earnings penalty-free, but you still owe income tax on those earnings. You can withdraw your contributions anytime without tax or penalty. If you need more than $10,000, you will have to pay tax and penalty on the excess earnings, or use other savings.

Does the pro-rata rule apply if I have multiple Roth IRAs?

Yes. The IRS treats all Roth IRAs you own as a single account when calculating the pro-rata rule. You cannot avoid it by withdrawing from one account instead of another. The rule looks at your total contributions and total earnings across every Roth IRA you own.

Can I put money back into my Roth after I withdraw it?

You can contribute new money up to your annual limit, but you cannot "replace" a withdrawal. If you withdraw $5,000, you cannot put that same $5,000 back in as a new contribution in the same year. You can only contribute what the IRS allows based on your income and age. Any excess contribution triggers a 6% penalty per year until you remove it.

What if I withdraw earnings by mistake and did not know about the penalty?

Contact your Roth IRA custodian and ask about a "recharacterization" or "rollback" if the withdrawal was recent. Some custodians can reverse the transaction within a short window. If you cannot reverse it, you owe the tax and penalty when you file your tax return. You can request penalty relief from the IRS if you have a reasonable cause, but this requires filing Form 5329 and explaining your situation.