The ordering rule that makes it possible
The IRS treats money leaving a Roth IRA as coming out in a fixed order, no matter which investment you sell. Publication 590-B lists it: regular contributions first, then conversion and rollover amounts, then earnings. Because your contributions were made with money already taxed, getting them back is not taxed or penalized. That is the little-known feature that makes a Roth IRA more flexible than most retirement accounts.
When are earnings tax-free?
A “qualified distribution” is tax-free in full, earnings included. The IRS says it must meet two tests: it is made after a 5-year period that starts with the first tax year you contributed to any Roth IRA, and it is made after you reach 59½, because you are disabled, to your beneficiary after your death, or for a first-time home purchase up to a $10,000 lifetime limit.
Myth vs fact
Myth A Roth IRA locks up all your money until 59½.
Fact Only the earnings. Your contributions are available any time.
Myth The 5-year rule restarts with every contribution.
Fact For contributions, the clock starts with the first year you contributed to any Roth IRA.
Myth You can put it back later.
Fact Only within the normal yearly limit. The extra tax-free growth is gone.
A worked example
Sam, 34, has put $20,000 into a Roth IRA over five years. The account is now worth $26,000, so $6,000 is earnings. Sam’s car breaks down and he needs cash.
Sam can take out up to $20,000 without owing anything. But every dollar he takes out stops growing tax-free, and he can only put back $7,500 a year (the 2026 limit). Taking $4,000 for the repair, not $20,000, keeps most of the account working.
Exceptions to the 10% penalty
Earnings before 59½ may avoid the 10% additional tax for
- A first home
- Up to $10,000 over your lifetime, and tax-free too if the 5-year test is met.
- Disability
- Also counts as qualified after 5 years.
- Certain medical costs, health insurance while unemployed, and higher education
- The 10% may be waived, but earnings can still be taxable.
What research says
Before you withdraw
- 1Check your emergency fund first
Savings should be the first stop.
- 2Know your contribution total
Only that amount is tax- and penalty-free.
- 3Take only what you need
Leave the rest growing.
- 4Report it
Your brokerage sends Form 1099-R; tax software uses Form 8606 to show the withdrawal came from contributions.
- 5Restart contributions when you can
Even small amounts rebuild the account.
See what leaving the money in could be worth in the retirement calculator. Compare options in 401(k) loan vs hardship withdrawal and Roth IRA vs traditional IRA.







