How Roth IRA Investment Gains Are Taxed
Roth IRA gains are not taxed when you withdraw them, as long as you follow the account rules
The core advantage of a Roth IRA is that your investment earnings grow tax-free and come out tax-free in retirement. When you sell a stock inside your Roth IRA for a profit, or your mutual fund gains value, or your bonds pay interest—none of that triggers a tax bill. The IRS does not tax the growth while the money sits in the account, and it does not tax the withdrawals when you take them out, provided you meet two conditions: you are at least 59½ years old and your account has been open for at least five tax years.
This is different from a traditional IRA or a taxable brokerage account, where investment gains create a tax liability. In those accounts, you pay tax on the earnings either when you withdraw the money (traditional IRA) or each year as the gains occur (taxable account). A Roth IRA simply does not work that way. The tax-free growth is the entire point of choosing a Roth over other retirement savings vehicles.
Key Takeaways
- Investment gains inside a Roth IRA are never taxed, whether they happen while you own the account or when you withdraw the money in retirement.
- You pay no tax on Roth IRA withdrawals of earnings if you are at least 59½ years old and your account has been open for at least five tax years.
- If you withdraw earnings before age 59½ or before the five-year mark, those earnings are taxed as ordinary income plus a 10% penalty, though some exceptions exist.
- Contributions you made to your Roth IRA can always be withdrawn tax-free and penalty-free, regardless of your age or how long you have owned the account.
- The tax-free growth applies to all types of investments held in the Roth—stocks, bonds, mutual funds, ETFs—as long as they remain inside the account.
The five-year rule and early withdrawal penalties
The five-year rule is a timing requirement, not a contribution requirement. Your Roth IRA account must have been open for at least five tax years before you can withdraw earnings tax-free. This clock starts on January 1 of the year you open your first Roth IRA, regardless of when during that year you actually fund it. If you open a Roth in December 2024, the five-year period runs through December 31, 2028.
If you withdraw earnings before both conditions are met—before age 59½ and before the five-year mark—the earnings portion of your withdrawal is taxed as ordinary income, and you owe a 10% early withdrawal penalty on top of that tax. For example, if you withdraw $5,000 from your Roth at age 45 and $2,000 of that is earnings, you pay income tax on the $2,000 plus a $200 penalty. Your original contributions come out first and are never penalized.
Some situations allow you to withdraw earnings penalty-free before 59½, such as a first-time home purchase (up to $10,000 lifetime), disability, or medical expenses that exceed a certain threshold. The earnings are still taxed as income in these cases, but the 10% penalty does not apply. The IRS publication 590-B lists all the exceptions in detail.
Contributions versus earnings: which comes out first
Your Roth IRA keeps track of two separate pools of money: contributions (the money you put in) and earnings (the growth on that money). When you withdraw, contributions always come out first. This matters because contributions are never taxed or penalized, no matter your age or how long you have owned the account.
If your Roth IRA has $50,000 in contributions and $15,000 in earnings, and you withdraw $30,000 at age 40, the first $30,000 comes from your contributions and is completely tax-free and penalty-free. You do not touch the earnings at all. Only after you have withdrawn all your contributions can a withdrawal start pulling from the earnings portion.
The IRS uses a specific ordering rule when you have multiple Roth IRAs or when you have made both Roth conversions and regular Roth contributions. If you are in that situation, the IRS treats all your Roth accounts as one combined pool for withdrawal purposes. You cannot choose to withdraw from one account's earnings while leaving another account's contributions untouched. The ordering rule applies across all your Roths together.
How Roth conversions affect the tax-free withdrawal rule
A Roth conversion is when you move money from a traditional IRA, SEP-IRA, or SIMPLE IRA into a Roth IRA. You pay income tax on the converted amount in the year you do the conversion, but once the money is in the Roth, it grows tax-free. However, converted money has its own five-year rule separate from contributions.
If you convert $20,000 from a traditional IRA to a Roth in 2024, that $20,000 must stay in the Roth for five tax years (through 2028) before you can withdraw it penalty-free if you are under 59½. The earnings on that $20,000 follow the standard five-year rule tied to your first Roth IRA opening date. This creates a more complex tracking situation if you do multiple conversions in different years.
The pro-rata rule also applies to conversions. If you have pre-tax money in a traditional IRA and you convert part of it to a Roth, the IRS treats the conversion as coming proportionally from both pre-tax and after-tax money in all your traditional IRAs combined. This can create an unexpected tax bill if you have a large traditional IRA balance alongside a smaller after-tax balance. Many people work with a tax professional before doing a conversion for this reason.
No annual tax reporting on Roth IRA gains
You do not file any tax forms each year to report the gains inside your Roth IRA. The account is shielded from annual tax reporting. Your brokerage does not send you a 1099 form for the interest, dividends, or capital gains that happen inside the Roth. The IRS does not see those transactions as taxable events.
You only report Roth activity on your tax return if you make a contribution (Form 8606 if you convert or make a non-deductible contribution to a traditional IRA in the same year) or if you take a distribution. When you withdraw money in retirement, your brokerage sends you a Form 1099-R showing the total amount withdrawn, but the earnings portion is not taxable income, so you do not owe tax on it.
Comparing Roth gains to traditional IRA and taxable account gains
In a traditional IRA, investment gains are not taxed while they sit in the account, but when you withdraw the money in retirement, the entire withdrawal—contributions and earnings combined—is taxed as ordinary income. You defer the tax, but you do not avoid it. If you contributed $10,000 and it grew to $25,000, you pay income tax on the full $25,000 when you withdraw it.
In a taxable brokerage account, you pay tax on gains as they happen. If you sell a stock for a profit, you owe capital gains tax that year. If a mutual fund distributes dividends, you owe tax on those dividends. The tax bill arrives annually, not in retirement. Over decades, this creates a drag on growth because money goes to taxes instead of staying invested.
A Roth IRA avoids both problems. Gains are not taxed while in the account, and they are not taxed when withdrawn. The only trade-off is that Roth contributions are made with after-tax dollars—you do not get a deduction in the year you contribute. For people who expect to be in a higher tax bracket in retirement, or who want to minimize required withdrawals, a Roth is often the better choice despite the upfront tax cost.
What happens to Roth gains if you inherit the account
If you inherit a Roth IRA from someone other than a spouse, the earnings in that account are still tax-free when you withdraw them, but you must follow specific withdrawal rules. The SECURE Act (passed in 2019) changed the rules for most non-spouse beneficiaries: you generally must withdraw the entire account within ten years of the account holder's death. The earnings come out tax-free as long as the original account owner had satisfied the five-year rule.
If the original account owner died before the five-year rule was met, the earnings portion of your withdrawal is taxed as ordinary income, even though you are the beneficiary. The five-year clock does not restart for you; it continues from when the original owner opened the account. Spouse beneficiaries have more flexibility and can treat the inherited Roth as their own or roll it into their own Roth IRA.
Frequently Asked Questions
Do I pay capital gains tax on stocks I sell inside my Roth IRA?
No. Buying and selling stocks inside a Roth IRA generates no tax, regardless of the profit. You only pay tax on the earnings if you withdraw them before age 59½ and before the five-year mark. Otherwise, all gains—whether from stock sales, dividends, or interest—are completely tax-free.
What if my Roth IRA loses money? Do I get a tax deduction?
No. Losses inside a Roth IRA do not create a tax deduction. You cannot claim the loss on your tax return. This is the trade-off for the tax-free gains: losses stay inside the account and do not offset other income or capital gains.
Can I avoid the five-year rule by withdrawing only contributions?
Yes. Contributions can always be withdrawn tax-free and penalty-free at any age. The five-year rule applies only to earnings. If you need access to your money before retirement, you can withdraw what you contributed without any tax or penalty consequences.
If I convert a traditional IRA to a Roth, do I owe tax on the gains that happen after the conversion?
No. Once money is in the Roth, all future gains are tax-free. You pay income tax on the amount you convert in the year you do the conversion, but the growth after that point is never taxed, provided you follow the withdrawal rules.
Do I have to report Roth IRA gains on my tax return each year?
No. Gains inside a Roth IRA are not reported annually. You only report Roth activity if you make a contribution in a year when you also have a traditional IRA, or if you take a distribution. The account itself generates no annual tax reporting.