Do You Pay Capital Gains Tax on Your Roth IRA?

Investments held inside a Roth IRA do not trigger capital gains tax, and qualified withdrawals come out entirely tax-free. The federal tax code excludes qualified Roth IRA distributions from gross income, so decades of capital gains, dividends, and interest can leave the account at a zero percent rate.1GovInfo. 26 USC 408A – Roth IRAs The catch is that “qualified” has a specific legal meaning. Take earnings out before you meet the requirements and that tax-free growth becomes taxable income, potentially with a 10% penalty added on.

Why Gains Inside a Roth IRA Aren’t Taxed

Buying and selling stocks, funds, or bonds inside a Roth IRA generates no reportable event. There is no distinction between short-term and long-term gains, no Form 8949 to file, and no tax bill in April. The account operates in a tax-free bubble as long as the money stays inside it.2Internal Revenue Service. Roth IRAs

Compare that to a regular brokerage account. Every profitable sale during the year creates a taxable event. Short-term gains on assets held a year or less get taxed at your ordinary income rate; long-term gains get preferential rates of 0%, 15%, or 20%. All of it goes on Form 8949 and Schedule D.3Internal Revenue Service. Instructions for Form 8949 Inside a Roth IRA, none of that applies. You can sell a stock that tripled in value, rebalance the portfolio, and reinvest the proceeds without losing a dollar to taxes. Over a career, the compounding advantage is substantial.

What Makes a Withdrawal Qualified

The tax-free treatment holds at withdrawal only when the distribution meets two requirements at the same time. Miss either, and the earnings portion becomes taxable.

The first is the five-year rule. Your Roth IRA must have been open for at least five tax years, counted from January 1 of the year you made your first contribution to any Roth IRA. If you opened your first Roth IRA with a contribution for 2024, the clock started January 1, 2024, and the earliest distributions could qualify is January 1, 2029.1GovInfo. 26 USC 408A – Roth IRAs The clock runs across all your Roth IRAs, so opening a second account later doesn’t reset it.

The second is a qualifying event. The most common is turning 59½. The others are death (distributions to beneficiaries or your estate), total and permanent disability, and a first-time home purchase up to a $10,000 lifetime cap.4Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions

Only when both boxes are checked does the entire withdrawal come out tax-free and penalty-free. Someone who turns 59½ but opened their first Roth IRA only two years ago still owes tax on the earnings portion.

How Withdrawals Are Ordered

Not every dollar in your Roth IRA receives the same treatment on the way out. The IRS applies a fixed ordering system that determines which money leaves the account first, regardless of your intent.

Regular contributions come out first. Because you already paid income tax on that money before it went in, you can pull it out at any age, at any time, for any reason, with zero tax and zero penalty.1GovInfo. 26 USC 408A – Roth IRAs

Conversion and rollover amounts come out next, on a first-in, first-out basis. Each conversion carries its own separate five-year holding period. The portion that was taxable at conversion can face the 10% early withdrawal penalty if you take it out before age 59½ and before that conversion’s five-year clock expires. Once you turn 59½, this separate clock stops mattering.

Earnings come out last. Capital gains, dividends, and interest generated inside the account sit at the bottom of the stack, and this is the only money that can trigger both income tax and the 10% penalty on a non-qualified withdrawal.

This ordering is what gives Roth IRAs their flexibility. If you contributed $50,000 over the years and the account is now worth $80,000, you can withdraw up to $50,000 at any time without tax consequences, even at age 30. The tax question only arises when withdrawals push past your contributions and into the earnings layer.

What Happens When a Withdrawal Isn’t Qualified

If a withdrawal reaches the earnings tier and doesn’t qualify, two things happen. First, the earnings portion is taxed as ordinary income at your marginal federal rate. You report it on Form 1040.5Internal Revenue Service. Retirement Plans FAQs Regarding IRAs Distributions (Withdrawals) Second, if you’re under 59½, the IRS adds a 10% early withdrawal penalty on top.4Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions

Notice what tax that is. It’s ordinary income tax, not capital gains tax. Even though the growth came from capital appreciation, the IRS does not apply preferential long-term capital gains rates on a non-qualified withdrawal. That’s the trade-off. You get completely tax-free growth if you follow the rules, but if you break them, the earnings get taxed at your full income rate rather than the lower capital gains rate you would have paid in a regular brokerage account. For someone in a high bracket, that can sting.

Taxable non-qualified distributions also raise your adjusted gross income for the year, which can affect eligibility for other credits and deductions.

Exceptions That Waive the Early Withdrawal Penalty

Several situations waive the 10% penalty even when the distribution doesn’t qualify for full tax-free treatment. The earnings portion still gets taxed as ordinary income, but you avoid the extra 10%. Common exceptions include:4Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions

  • Unreimbursed medical expenses above 7.5% of your adjusted gross income.
  • Higher education expenses for you, your spouse, children, or grandchildren.
  • Substantially equal periodic payments calculated on your life expectancy, taken at least annually.
  • A first-time home purchase, up to $10,000 lifetime.
  • Health insurance premiums while unemployed, if you received unemployment for at least 12 consecutive weeks.
  • An IRS levy against the account.
  • Distributions to qualified military reservists called to active duty.

Starting in 2024, additional exceptions took effect. One allows a single withdrawal per calendar year for emergency personal expenses, capped at the lesser of $1,000 or the balance above $1,000; you cannot take another emergency distribution for three years unless you repay the first. Another covers victims of domestic abuse, up to the lesser of $10,000 or 50% of the account balance. Distributions of up to $22,000 for losses from federally declared disasters also qualify.4Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions

Narrow Situations Where a Roth IRA Can Still Owe Tax

The Roth IRA is the closest thing to a tax-free account in the federal code, but a few specific situations can still generate a tax bill. None of them involves ordinary capital gains from stocks and funds.

Unrelated Business Taxable Income

If your Roth IRA holds an interest in a master limited partnership or another investment that produces business income, the account itself can owe tax on that income. This is unrelated business taxable income, or UBTI. Once gross UBTI hits $1,000 in a year, the IRA’s trustee or custodian must file Form 990-T and pay tax at corporate rates.6Internal Revenue Service. Instructions for Form 990-T Most Roth IRA holders never encounter this, but it catches people who buy MLPs in retirement accounts expecting the same treatment as regular stocks.

Prohibited Transactions

Using your Roth IRA in a way the IRS considers prohibited, such as borrowing from it, pledging it as collateral, or buying property for personal use, carries severe consequences. The entire account is treated as if it distributed all its assets to you on January 1 of that year. You owe income tax on any gains, plus the 10% penalty if you’re under 59½.7Internal Revenue Service. Retirement Topics – Prohibited Transactions The account effectively ceases to exist as an IRA. This most commonly affects people holding alternative assets like real estate in self-directed IRAs.

Excess Contributions

Contributing more than the annual limit, or contributing when income exceeds the phase-out range, triggers a 6% excise tax for every year the excess stays in the account.8Office of the Law Revision Counsel. 26 USC 4973 – Tax on Excess Contributions to Certain Tax-Favored Accounts and Annuities You can fix it by withdrawing the excess plus its earnings before your tax-filing deadline, typically April 15. Catch it later and you can still remove the excess within six months and file an amended return, or remove it in a later year and reduce that year’s contribution. The 6% penalty accrues annually until corrected, so catching it early matters.

The Bottom Line for Your Roth IRA

Inside the account, capital gains simply don’t exist as a tax concept. Trading, rebalancing, and reinvesting produce no tax. On the way out, follow the two-part qualified distribution test and the entire withdrawal is tax-free. Fail the test and only the earnings above your contributions get taxed, and they get taxed as ordinary income rather than at capital gains rates. Contributions themselves can always come out clean, which is why so many Roth IRA owners never face a tax question on withdrawals at all.