Cost basis in an IRA is a two-part answer, and most people only need the first part: what you paid for the stocks, funds, or bonds held inside the account has no bearing on your federal taxes. Trades made within a Traditional or Roth IRA don’t produce capital gains or losses, so the purchase price of any individual holding is bookkeeping your brokerage does for its own reference. There’s a second meaning of basis, though — the total after-tax money you’ve contributed to the account — and that number can decide how much tax you owe when withdrawals begin. Confusing the two is where people get into trouble.
Why the Purchase Price of Your Investments Doesn’t Matter
In a taxable brokerage account, every sale triggers a gain or loss calculation that lands on Form 8949 and Schedule D.1Internal Revenue Service. Instructions for Form 8949 An IRA skips that entire process. The account is tax-exempt under federal law, and the IRS doesn’t tax activity happening inside it.2Office of the Law Revision Counsel. 26 USC 408 – Individual Retirement Accounts
Inside a Traditional IRA, you can buy and sell as often as you want, rebalance the portfolio, and take profits or cut losers without generating a taxable event. When you eventually withdraw money, the custodian reports the gross distribution on Form 1099-R and the IRS taxes it as ordinary income.3Internal Revenue Service. About Form 1099-R, Distributions From Pensions, Annuities, Retirement or Profit-Sharing Plans, IRAs, Insurance Contracts, etc. Whether the withdrawal traces back to a stock that tripled or one that collapsed makes no difference. The tax result is identical.
A Roth IRA goes further. Contributions are after-tax, and qualified distributions are entirely tax-free.4GovInfo. 26 USC 408A – Roth IRAs A fund that triples inside a Roth produces zero capital gains tax, ever. So if you’re asking whether you need to track lot-by-lot cost basis, wash sales, or holding periods inside your IRA, you don’t. The tax compliance shifts entirely to what goes in and what comes out.
The Basis That Actually Matters: Non-Deductible Contributions
Basis becomes financially significant when you make a non-deductible contribution to a Traditional IRA. That money has already been taxed, and the total of those after-tax contributions is your basis in the account. Tracking it is the only way to avoid paying tax on the same dollars twice when you withdraw them.5Internal Revenue Service. Publication 590-A (2025), Contributions to Individual Retirement Arrangements (IRAs)
Non-deductible contributions happen when your income sits above the phase-out for deducting a Traditional IRA contribution, which applies when you or your spouse are covered by a workplace retirement plan. For 2026, the IRA contribution limit is $7,500, or $8,600 if you’re 50 or older.6Internal Revenue Service. 401(k) Limit Increases to $24,500 for 2026; IRA Limit Increases to $7,500 Anyone with earned income can contribute up to that amount, but past the phase-out you get no deduction. The money still grows tax-deferred; you just don’t get the upfront break.
Consider what happens over a career. Fifteen years of $5,000 non-deductible contributions builds $75,000 of basis. Without records proving those contributions were after-tax, the IRS treats every dollar you eventually withdraw as taxable ordinary income. That’s $75,000 taxed a second time.
How the Pro-Rata Rule Splits Every Withdrawal
You cannot choose which dollars come out of a Traditional IRA. Federal law treats all your Traditional, SEP, and SIMPLE IRAs as one pool, and every distribution is a proportional mix of pre-tax and after-tax money under the pro-rata rule.2Office of the Law Revision Counsel. 26 USC 408 – Individual Retirement Accounts
The calculation is simple. Divide your total non-deductible basis by the combined December 31 value of all your Traditional, SEP, and SIMPLE IRAs. That percentage is the tax-free portion of any distribution taken that year.7Internal Revenue Service. Publication 590-B (2025), Distributions from Individual Retirement Arrangements (IRAs)
Suppose you have $40,000 of non-deductible basis and $400,000 total across all your Traditional IRAs at year-end. Your tax-free percentage is 10%. If you withdraw $20,000, only $2,000 is a tax-free return of basis; the other $18,000 is taxable ordinary income. That ratio applies no matter which account you pull from or which investments you sell to fund the withdrawal.
The aggregation surprises people. Keeping non-deductible contributions in a separate IRA from a rollover IRA does nothing to isolate them. The IRS lumps everything together, and a large pre-tax rollover balance dilutes the tax-free share of every withdrawal.
Roth Basis and the Withdrawal Ordering Rules
Roth IRAs have their own version of basis, and it works differently. Your Roth basis is the total you’ve contributed with after-tax dollars over the life of the account. Those contributions can always be withdrawn tax-free and penalty-free, at any age, for any reason, with no waiting period.
The IRS enforces a strict ordering rule for Roth withdrawals.8eCFR. 26 CFR 1.408A-6 – Distributions Regular contributions come out first, always tax-free and penalty-free. Conversion amounts come out second, on a first-in, first-out basis, with the previously taxable portion of each conversion coming out ahead of any non-taxable portion. Earnings come out last, only after all contributions and conversions have been exhausted.
This ordering shields most casual withdrawals from surprise taxes, because contributions come out before anything else. Problems appear when you reach conversion amounts or earnings without meeting the qualified distribution requirements. Each conversion carries its own five-year clock; withdrawing converted amounts before that clock expires while you’re under 59½ triggers a 10% early withdrawal penalty on the pre-tax portion of that conversion.9Office of the Law Revision Counsel. 26 USC 72 – Annuities; Certain Proceeds of Endowment and Life Insurance Contracts Earnings withdrawn before age 59½ or before the five-year period for your first Roth contribution is complete face both ordinary income tax and the 10% penalty.4GovInfo. 26 USC 408A – Roth IRAs
Knowing your Roth contribution basis tells you exactly how much you can access at any time with no tax consequence. Lose track of it and you may end up reporting a tax-free return of contributions as a taxable withdrawal of earnings.
How You Prove Basis: Form 8606
The IRS does not track your non-deductible IRA basis for you. That job is yours, and Form 8606, “Nondeductible IRAs,” is the tool. File it with your tax return in any year you make a non-deductible Traditional IRA contribution.10Internal Revenue Service. About Form 8606, Nondeductible IRAs File it again in any year you take a distribution from a Traditional IRA that contains basis, because the form is where you run the pro-rata calculation between the taxable and non-taxable portions.7Internal Revenue Service. Publication 590-B (2025), Distributions from Individual Retirement Arrangements (IRAs)
Part I records the current year’s non-deductible contribution and carries forward the cumulative basis. Part II handles the pro-rata split for distributions using the December 31 value of all Traditional, SEP, and SIMPLE IRAs. Filed year after year, the form builds a paper trail proving which dollars have already been taxed.
The statutory penalty for failing to file Form 8606 is $50 per form, with an exception for reasonable cause.11Office of the Law Revision Counsel. 26 USC 6693 – Failure to Provide Reports on Individual Retirement Accounts or Annuities The $50 is not the real cost. Without the filings, you have no documentation that your contributions were after-tax, and the IRS can treat every distributed dollar as fully taxable.
Records to Keep
The IRS instructs taxpayers to keep the following until every dollar has been distributed from all IRAs, including Roth IRAs:12Internal Revenue Service. Instructions for Form 8606 – Nondeductible IRAs
- Page 1 of your Form 1040 for every year you made a non-deductible contribution
- Every Form 8606 you have ever filed, along with any supporting worksheets
- Form 5498 statements from your IRA custodian, showing annual contributions and year-end account values
- Form 1099-R statements for every year you received a distribution
Potentially a lifetime of records. Digital copies work, provided they’re somewhere you can still reach decades from now.
Basis in Inherited IRAs and Divorce
Non-deductible basis in a Traditional IRA transfers to a beneficiary at death. The beneficiary is not taxed on the after-tax portion but must file their own Form 8606 when taking distributions to claim it.12Internal Revenue Service. Instructions for Form 8606 – Nondeductible IRAs If the original owner never tracked their basis, the beneficiary inherits the tax problem along with the account. Tell your beneficiaries about any basis and where to find the paperwork.
Basis also transfers in divorce. An IRA moved between spouses or former spouses under a divorce is a tax-free transfer, and the receiving spouse steps into the original owner’s basis.13Office of the Law Revision Counsel. 26 USC 1041 – Transfers of Property Between Spouses or Incident to Divorce The basis does not reset. If your former spouse had $30,000 in non-deductible basis, you carry that $30,000 forward and file Form 8606 on future distributions.
What About Losses Inside an IRA?
Before 2018, a taxpayer who closed out all Roth IRAs, or all Traditional IRAs with basis, for less than total contributions could claim the shortfall as a miscellaneous itemized deduction on Schedule A. That deduction is gone. The Tax Cuts and Jobs Act eliminated miscellaneous itemized deductions subject to the 2% floor for tax years 2018 through 2025, and the provision has been extended.14Internal Revenue Service. Tax Cuts and Jobs Act – Individuals
If your IRA investments lose money, you absorb the loss. There is no way to deduct it on your return. That’s the trade-off for tax-sheltered growth: gains inside an IRA are never taxed as capital gains, and losses cannot offset other income either.