You do not pay taxes on investment gains inside a Roth IRA while the money stays in the account
The core rule is simple: money you invest inside a Roth IRA grows tax-free. If you buy a stock that doubles, or a mutual fund that earns 8% a year, you owe no federal income tax on those gains as long as the money remains in the Roth account. This is the defining feature that separates a Roth from a regular taxable brokerage account, where you would owe capital gains tax every time you sell something at a profit.
The tax-free growth applies to all types of investment gains: stock appreciation, dividend income, interest from bonds, and profits from selling securities within the account. You can buy and sell as much as you want inside the Roth without triggering any tax bill. The IRS does not track or tax these internal transactions at all.
Key Takeaways
- Investment gains inside a Roth IRA are never taxed, whether you hold them for one year or thirty years.
- You already paid income tax on the money you contributed to the Roth, so the tax-free growth is the reward for that upfront payment.
- Withdrawing gains before age 59½ and before the account has been open for five years triggers a 10% penalty plus income tax on the gains portion only.
- Once you reach age 59½ and the five-year rule is met, you can withdraw gains tax-free and penalty-free.
Why gains are tax-free: you already paid tax on the contribution
The reason Roth gains escape taxation is that you funded the account with after-tax dollars. When you contribute to a Roth IRA, you use money you have already paid income tax on. The IRS allows the growth on that money to compound without ever taxing it again, as a trade-off for the fact that you did not get a tax deduction when you put the money in.
This is different from a traditional IRA, where your contribution may be tax-deductible in the year you make it, but then all withdrawals—including gains—are taxed as ordinary income. With a Roth, you pay the tax upfront and then never again.
What happens when you withdraw gains before age 59½
The tax-free growth only applies if you follow the Roth withdrawal rules. If you withdraw gains before you turn 59½ and before your Roth account has been open for at least five years, the IRS treats the withdrawal as an early distribution. You will owe income tax on the gains portion of the withdrawal, plus a 10% early withdrawal penalty on that same amount.
The five-year rule is tied to the account itself, not to individual contributions. If you opened your first Roth IRA in 2020, the five-year clock started then. Any Roth you open later has its own separate five-year clock. You must wait until 2025 to withdraw gains from the 2020 account without penalty, even if you contributed to it in 2024.
Contributions themselves can be withdrawn at any time without tax or penalty, because you already paid tax on them. It is only the gains that face the early withdrawal penalty.
may have access to withdrawals: when gains are truly tax-free
A may have access to withdrawal is one where you withdraw both contributions and gains tax-free and penalty-free. To may have access to, you must be at least 59½ years old and your Roth IRA must have been open for at least five years. Once both conditions are met, every dollar you withdraw—whether it is your original contribution or investment gains—comes out with no tax bill.
There are a few other situations where you can withdraw gains penalty-free before 59½, though you will still owe income tax on the gains themselves. These include a first-time home purchase (up to $10,000 lifetime), certain medical expenses, disability, or death. These exceptions waive the 10% penalty but not the income tax on gains.
How the IRS tracks which part is gains versus contributions
The IRS uses a calculation called the pro-rata rule when you have both traditional and Roth IRAs and you withdraw money. However, within a single Roth IRA, the account custodian (your bank or brokerage) tracks contributions and gains separately. When you request a withdrawal, they can tell you exactly how much is contribution and how much is gain.
You do not need to do anything special to track this yourself. Your custodian will report the breakdown on the tax form they send you (Form 1099-R) if you take a distribution. If you withdraw only contributions, the form will show that. If you withdraw gains, it will show the taxable portion.
State taxes on Roth IRA gains
Federal tax law exempts Roth gains from federal income tax, but state tax treatment varies. Most states follow federal rules and do not tax Roth IRA gains. However, a small number of states tax retirement account income differently or have special rules. Pennsylvania, for example, does not tax IRA distributions at all. New York taxes them like federal income.
Check your state's tax authority website or speak with a tax preparer about your specific state, especially if you live in a state with high income tax or unusual retirement account rules. The difference is usually small, but it is worth knowing before you plan a large withdrawal.
Roth conversions and the tax bill on gains
If you convert money from a traditional IRA to a Roth IRA, you will owe income tax on the gains portion of what you convert. The conversion itself is not a withdrawal—it is a transfer—but the IRS treats it as a taxable event. You pay tax on the amount converted in the year you do the conversion, and then that money grows tax-free in the Roth going forward.
This is why people sometimes do partial conversions: they convert only the contribution portion of a traditional IRA (which has no tax bill) and leave the gains in the traditional account to convert later, or not at all. The tax bill on a full conversion can be substantial, so it is worth planning carefully.
Frequently Asked Questions
Do I owe taxes every year on the gains in my Roth IRA?
No. You owe no tax on gains while the money is in the account, and you file no special forms to report them. The tax-free growth is automatic. You only owe tax if you withdraw gains before meeting the age and five-year requirements.
What if my Roth IRA loses money—do I get a tax deduction?
No. Investment losses inside a Roth IRA cannot be deducted on your tax return. You cannot use them to offset other income or capital gains. This is the trade-off for the tax-free growth: losses stay inside the account and do not help your taxes.
Can I avoid the early withdrawal penalty by taking only contributions out?
Yes. You can withdraw contributions at any age without penalty or tax. The penalty applies only to gains withdrawn before age 59½ and before the five-year rule is met. Your custodian can tell you how much of your balance is contributions versus gains.
If I inherit a Roth IRA, do I owe taxes on the gains?
As the beneficiary, you do not owe tax on the gains themselves, but you must follow distribution rules based on your relationship to the original owner. Spouses can treat the Roth as their own. Non-spouse beneficiaries must withdraw the entire balance within ten years (as of 2024 rules), but the withdrawals themselves are not taxed because the original owner already paid tax on contributions.
Does the 3.8% net investment income tax apply to Roth IRA gains?
No. The 3.8% net investment income tax applies only to gains on investments held outside retirement accounts. Money inside a Roth IRA is sheltered from this tax, just as it is sheltered from regular income tax on gains.