No. Selling a stock inside a Traditional or Roth IRA does not trigger a tax bill, and that is the short answer to whether you pay taxes when you sell stock in an IRA. The IRS treats buys and sells inside the account as internal activity, so gains from trading or rebalancing are not reported and not taxed as long as the money stays in the IRA. Tax enters the picture only when you take a distribution, and how much you owe then depends on which type of IRA you have and how old you are.
Why the Sale Itself Isn’t Taxed
In a regular brokerage account, every profitable sale creates a capital gain you report that year. Short-term gains are taxed at your ordinary income rate, long-term gains at a lower rate, and everything flows through Schedule D and Form 8949.1Internal Revenue Service. About Form 8949, Sales and Other Dispositions of Capital Assets
None of that applies inside an IRA. The account is a tax-sheltered wrapper, and the IRS only cares about money going in (contributions) and money coming out (distributions). You can sell a stock for a $50,000 gain, reinvest the full amount into something else the same afternoon, and report nothing on your return. No capital gains tax. No holding-period distinction. No wash-sale worry within the account itself. That is the core advantage of a retirement account over a taxable one, and it compounds over decades because every dollar stays invested instead of being trimmed by tax each year.
Your custodian will not send you a Form 1099-B for trades inside the IRA. That form reports sale proceeds to the IRS and is only generated for taxable accounts; the IRS instructions for Form 1099-B specifically exempt IRAs.2Internal Revenue Service. Instructions for Form 1099-B (2026) If you look for a trade confirmation on your tax return, you will not find one, and you should not put one there.
When Tax Does Show Up: Withdrawals
The tax on IRA activity is charged at the exit, not on the trade. What you owe depends on whether the IRA is Traditional or Roth.
Traditional IRA
Every dollar you withdraw from a Traditional IRA is generally taxed as ordinary income. Your contributions were deducted from your taxable income when you made them, so the IRS collects on the way out. The distribution lands on your return like wages, at whatever marginal bracket you fall into that year.
If you are younger than 59½, a 10% early withdrawal penalty is added on top of the ordinary income tax.3Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions Exceptions exist for unreimbursed medical expenses above 7.5% of AGI, qualified higher education costs, a first-time home purchase up to $10,000, substantially equal periodic payments, IRS levies, permanent disability, and a handful of narrower situations Congress has added over time. Ordinary income tax still applies even when the penalty is waived.
One wrinkle if you ever made nondeductible contributions: you already paid tax on that money going in, so a portion of each withdrawal should come out tax-free. The IRS uses a pro-rata rule, not first-in-first-out, so every distribution is treated as a proportional mix of pre-tax and after-tax dollars based on your total basis relative to the combined value of all your Traditional IRAs. You track that basis on Form 8606, and you should keep every 8606 you have ever filed, because losing the paper trail means paying tax twice on the same dollars.4Internal Revenue Service. Instructions for Form 8606 – Nondeductible IRAs
Roth IRA
A Roth flips the model. Contributions go in after tax, and qualified withdrawals come out completely tax-free, growth included. Distributions are treated as coming from your regular contributions first, then conversion amounts (first-in, first-out), then earnings.5Internal Revenue Service. Publication 590-B, Distributions From Individual Retirement Arrangements Regular contributions come out tax-free and penalty-free at any age, for any reason.
Earnings are the tighter category. To pull earnings out tax-free and penalty-free, two conditions must both be met: at least five tax years must have passed since your first Roth contribution, and the withdrawal must be tied to reaching age 59½, disability, death, or a first-time home purchase up to $10,000.6GovInfo. 26 USC 408A – Roth IRAs Miss either condition and the earnings portion is taxed as ordinary income and hit with the 10% penalty. The ordering rules give you a buffer, because you would have to withdraw more than your total contributions before touching earnings.
The One Trap for Stock Sellers: Wash Sales Across Accounts
The tax-free trading inside an IRA can actually work against you if you sell stock in a taxable brokerage account for a loss and buy the same stock inside your IRA within 30 days, in either direction.
The IRS treats that pair of trades as a wash sale. In an ordinary wash sale between two taxable accounts, the disallowed loss gets added to the cost basis of the replacement shares, so it is deferred rather than lost. When the replacement purchase happens inside an IRA, there is nowhere for the basis to go, because IRAs do not track individual cost basis for tax purposes. The loss is permanently disallowed. The IRS confirmed this in Revenue Ruling 2008-5, and it applies to both Traditional and Roth IRAs.
If you are harvesting losses in a taxable account, check that you are not simultaneously buying the same or a substantially identical security in any of your retirement accounts. This is one of the few situations where owning an IRA can leave you worse off on tax than a taxable account alone.
Selling Stock to Fund a Required Minimum Distribution
Traditional IRA owners cannot defer forever. Required minimum distributions begin at 73 if you were born between 1951 and 1959, and at 75 if you were born in 1960 or later.7Congress.gov. Required Minimum Distribution (RMD) Rules for Original Owners Your first RMD can be delayed until April 1 of the year after you turn 73 (or 75), but every RMD after that is due by December 31, and taking two in the same calendar year can push you into a higher bracket.8Internal Revenue Service. Retirement Topics – Required Minimum Distributions (RMDs)
Missing an RMD, or taking less than required, brings a 25% excise tax on the shortfall, dropping to 10% if corrected within two years.9Internal Revenue Service. Retirement Plan and IRA Required Minimum Distributions FAQs
This is where the “no tax on the sale” rule becomes practically useful. If you need cash to satisfy your RMD, you may have to sell stock inside the IRA to raise it. That sale is still tax-free. Only the distribution that leaves the account is taxed. Roth IRAs have no RMDs during the original owner’s lifetime, so a Roth holder selling stock inside the account has no forced-distribution reason to do so at all.
Two Ways the Wrapper Itself Can Break
Two situations can pierce the IRA’s tax shield without any distribution taking place. Most investors holding publicly traded stocks and funds will never encounter either, but they are worth naming.
A prohibited transaction, such as selling property to your IRA, borrowing from it, or using its assets for personal benefit, causes the account to stop being an IRA as of January 1 of that year. The entire fair market value is then treated as a distribution on that date, meaning ordinary income tax on the full balance, plus the 10% penalty if you are under 59½.10Office of the Law Revision Counsel. 26 USC 4975 – Tax on Prohibited Transactions11Office of the Law Revision Counsel. 26 USC 408 – Individual Retirement Accounts The risk climbs sharply with self-directed IRAs holding real estate or private businesses.
Unrelated business taxable income is the other exception. Standard investment income (dividends, interest, capital gains from stock sales) is explicitly excluded from UBTI, so an IRA trading publicly traded stocks and ETFs does not generate it.12Internal Revenue Service. Publication 598, Tax on Unrelated Business Income UBTI only appears with unusual holdings like operating partnerships or real estate purchased with mortgage debt inside the IRA, and it kicks in once gross unrelated business income exceeds $1,000 in a year.13Internal Revenue Service. Unrelated Business Income Tax
For the ordinary case, an IRA holding stocks, funds, and ETFs, neither of these ever comes up. You sell, you reinvest, and the IRS waits patiently until you take money out of the account.