How Roth IRA gains are taxed depends on when and why you withdraw the money. You can typically withdraw growth inside a Roth IRA completely tax-free if you meet certain IRS rules. However, early withdrawals or non-qualified distributions may trigger income tax and even penalties. It can be extremely beneficial to understand the distinction between contributions and earnings, as well as how the five-year rule and qualifying events impact the taxation of your withdrawals.
A financial advisor can help you determine when your Roth IRA withdrawals may be tax-free.
When Roth IRA Earnings Are Tax-Free
Roth IRA earnings are tax-free when you meet two conditions:
- You must meet the five-year rule for tax-free earnings.
- You must have a qualifying event, such as:
- Reaching age 59 ½
- Death (withdrawals by beneficiaries)
- Disability
- Using up to $10,000 for a first-time home purchase
Once you fulfill both conditions, you can withdraw your Roth IRA gains tax-free for the rest of your life, regardless of how much your investments grow.
When Roth IRA Earnings Are Taxable
Roth IRA earnings become taxable when you take a non-qualified withdrawal. This can occur when you withdraw investment gains before age 59 ½ or before completing the five-year rule, for example.
Common situations that trigger taxes include withdrawing earnings early to cover everyday expenses, making withdrawals soon after opening your Roth IRA and tapping into gains during a financial emergency before meeting IRS requirements.
The Five-Year Rule Explained
The five-year rule states that you may only withdraw tax-free earnings after a minimum of five tax years beginning with the tax year of your first Roth IRA contribution. The clock officially starts on January 1 of the year you made your first Roth contribution.
Roth conversions work similarly, using their own separate five-year clocks to prevent early access to converted funds without penalty. However, the five-year period that determines whether Roth IRA earnings can be part of a qualified distribution is separate from the five-year periods that apply to individual conversions for purposes of the 10% additional tax.
The five-year rule interacts with age 59 ½ to determine whether withdrawals of earnings are fully tax-free. For example, if you open your first Roth IRA at age 58 and reach 59 ½ the following year, you still owe taxes on any earnings you withdraw. This is because the five-year requirement is not met, even though you satisfy the age requirement.
How Roth IRA Gains Are Taxed

Roth IRA contributions use after-tax dollars, which is why qualified distributions of both contributions and earnings are tax-free. However, if you do not meet IRS rules for a qualified withdrawal, Roth IRA earnings may be subject to tax.
There are several key details to note regarding the tax structure of a Roth IRA.
- Contributions are always tax-free and penalty-free to withdraw.
- Earnings may be taxed if you take a non-qualified withdrawal (e.g., withdrawing before meeting the five-year rule or age 59 ½).
- The IRS uses ordering rules to determine which funds you withdraw first.
If Roth IRA gains are taxable, they use your ordinary income tax rate, not long-term capital gains rates.
Roth IRA Ordering Rules and Why They Matter
The IRS has strict rules for ordering withdrawals from a Roth IRA to determine which dollars you withdraw first. This system protects investors by ensuring that contributions, which are always tax-free to withdraw, take priority above any potentially taxable earnings.
Withdrawals occur in a specific order.
- Contributions. Because you withdraw contributions first, you can access contributions at any age without taxes or penalties.
- Conversions and rollover contributions. These generally come out next on a first-in, first-out basis. Within each conversion or rollover, the taxable portion is generally treated as distributed before the nontaxable portion. A separate five-year period can apply to each conversion or rollover for purposes of the 10% additional tax.
- Earnings. Earnings are the final layer; if you withdraw them early, they may be taxable.
How the Ordering Rules Can Keep Gains Out of an Early Withdrawal
A Roth IRA’s account balance can include both contributions and investment gains, but withdrawing money does not mean that a proportional amount of gain automatically becomes taxable. The IRS ordering rules treat regular contributions as coming out before earnings.
Suppose you contributed $30,000 to Roth IRAs over several years and the accounts are now worth $45,000, including $15,000 of investment growth. Assume you have made no conversions or previous withdrawals. If you take a $20,000 non-qualified distribution, the full $20,000 would generally be treated as coming from your regular contributions under the ordering rules. Because those contributions were made with after-tax money, the $20,000 would generally not be included in income or subject to the 10% additional tax.
After that withdrawal, $10,000 of regular contributions would remain ahead of the earnings in the distribution order. A later withdrawal that goes beyond the remaining contribution amount could reach earnings, at which point the qualified-distribution rules would determine whether those earnings are taxable.
This calculation can be different when the Roth IRA includes conversion or rollover amounts. Roth IRAs are generally aggregated when applying the ordering rules, so keeping records of contributions, conversions and prior distributions can help identify which portion of a withdrawal is treated as coming out of the account first.
Exceptions That Avoid the 10% Penalty (But Not Taxes)
Some early withdrawals of Roth IRA earnings may be exempt from the 10% penalty. However, this does not make them tax-free. Taxpayers still owe income tax on the earnings portion of a non-qualified withdrawal, even if a penalty exception applies.
Examples of penalty-free (but still taxable) withdrawals include:
- Higher-education expenses, such as tuition or fees
- Health insurance premiums while unemployed
- Birth or adoption expenses (up to $5,000)
- Unreimbursed medical expenses above 7.5% of AGI
Strategies to Avoid Taxes on Roth IRA Gains
Roth IRAs are most powerful when you follow the guidelines for qualified withdrawals. To avoid taxes on Roth IRA earnings, it helps not only to understand IRS rules but also to plan ahead.
There are several strategies you can adopt to minimize your tax impact.
- Wait until you satisfy both requirements for a qualified distribution. Reaching age 59 ½ by itself does not make earnings tax-free if the applicable five-year period has not been completed.
- Stick to contributions instead of relying on earnings. Consider using contributions to avoid unnecessary taxes and penalties through early withdrawals.
- Watch your timing. Time Roth conversions strategically, keeping separate five-year clocks in mind.
- Coordinate withdrawals. Use lower-income years to reduce potential tax liability if earnings must be tapped.
- Build a sufficient emergency fund so you don’t have to use Roth IRA earnings for unplanned expenses.
For 2026, the combined annual contribution limit for traditional and Roth IRAs is $7,500, or $8,600 if you are age 50 or older, subject to compensation and income rules. Direct Roth IRA contributions begin to phase out at modified adjusted gross income of $153,000 for single and head-of-household filers and $242,000 for married couples filing jointly. Direct contributions are generally unavailable at $168,000 and $252,000, respectively.
Bottom Line

Roth IRA gains can be either tax-free or taxable, depending on how and when you withdraw them. Earnings are tax-free only when you meet both the five-year rule and a qualifying event, while contributions are always accessible without tax or penalty. Early withdrawals that do not satisfy IRS requirements may trigger income tax and, in some cases, a 10% penalty.
Retirement Tax Planning
- A financial advisor can help manage retirement taxes by coordinating withdrawals, timing Social Security and RMDs, and using strategies such as Roth conversions to reduce lifetime tax exposure. Finding a financial advisor doesn’t have to be hard. SmartAsset’s free tool matches you with vetted financial advisors who serve your area, and you can have a free introductory call with your advisor matches to decide which one you feel is right for you. If you’re ready to find an advisor who can help you achieve your financial goals, get started now.
- Mandatory distributions from a tax-deferred retirement account can complicate your post-retirement tax planning. Use SmartAsset’s RMD calculator to see how much your required minimum distributions will be.
Photo credit: ©iStock.com/FabrikaCr, ©iStock.com/Piotrekswat, ©iStock.com/Inside Creative House
