Does cost basis matter in an IRA? Trying to understand what actually gets taxed

Does cost basis matter in an IRA? I've been contributing to a traditional IRA for years and my broker shows a cost basis figure in the account summary. I assumed everything coming out would just be taxed as ordinary income anyway, so I never paid attention to it. Now I'm reading about nondeductible contributions and Form 8606 and I'm not sure if I've been missing something. I've always taken the deduction on my contributions, so I think they were all deductible, but I honestly didn't track it year by year. Trying to figure out if that basis number on my brokerage screen actually changes what I owe when I eventually withdraw.

38 comments

For a fully deductible traditional IRA, cost basis in the usual investing sense doesn't apply the way it does in a taxable account. You never reported those contributions as income, so when money comes out it's all taxable — no basis to subtract. The broker's cost basis figure is for their own records; the IRS only cares about Form 8606 basis, which tracks nondeductible contributions.

Matt P.

Author

That's what I suspected but I wanted to make sure. So as long as every contribution I took a deduction for, there's no Form 8606 situation for me?

Correct. If every dollar going in was deductible, your IRA basis for Form 8606 purposes is zero and distributions are fully taxable as ordinary income. The broker's basis display is just an internal accounting number, not what the IRS uses.

Basis DOES matter if you ever made nondeductible contributions — that's the whole point of Form 8606. Those after-tax dollars already hit your income once, so you get to pull them out tax-free. Without Form 8606 on file for each year you made a nondeductible contribution, the IRS has no record of that basis and you'd pay tax on the same money twice.

Had a family member run into this — decades of nondeductible contributions, no 8606 filed, and reconstructing the history was a real headache. File 8606 every year you put in after-tax money, even if it feels redundant.

Reconstruction is possible but it requires old tax returns or contribution records going back to when the nondeductible amounts started. The IRS doesn't keep that for you.

The short version: in a Roth IRA, contributions are after-tax so you do have a kind of basis — your contributions come out first and tax-free. In a traditional IRA it only matters if some contributions were nondeductible. Inside either account, gains and dividends are not tracked by lot the way they are in a brokerage account because you're not reporting trades to the IRS from inside an IRA.

Matt P.

Author

The Roth piece is useful, I hadn't thought about that angle. I do have a small Roth too.

Had this exact confusion last year. I uploaded my 1099-R, my old returns and the contribution records I could find to taxr.ai and it went through each year and flagged which ones had a deduction taken and which didn't, then showed me what my Form 8606 line 14 carryforward should have been. Really made clear that my broker's basis number was meaningless for IRS purposes — what matters is the running total on 8606. Worth doing before you take your first distribution.

Matt P.

Author

My situation is probably simpler but I may do the same just to confirm. My worry is I think I deducted everything but I don't have the actual returns in front of me.

That's exactly why I did it — I thought I deducted everything too. Turns out one year I was over the income limit and my contribution that year was partially nondeductible. Found it because the numbers didn't add up once everything was laid out side by side.

Something people miss: if you rolled over after-tax money from a 401(k) into a traditional IRA, that also creates Form 8606 basis. It's not just contributions you made directly. The rollover doesn't reset the clock — that after-tax amount follows the same pro-rata rules when you take distributions.

Good point. The pro-rata rule is what catches people. You can't just pull out the after-tax portion cleanly if you have other pre-tax IRA money sitting there.

Right, the IRS looks at all your traditional IRAs combined when calculating the taxable portion of a distribution. You can't cherry-pick which account the after-tax money comes from.

To be clear about what Form 8606 actually does: Part I figures your nondeductible contribution for the year, Part II handles Roth conversions if any, and line 14 is the running total of your remaining basis that carries forward. That carryforward number is the only basis the IRS cares about for a traditional IRA. Your broker has no obligation to track that — it's on you.

Matt P.

Author

Line 14 carryforward — that's what I need to look up on my old returns then. Appreciate the specifics.

I gave Taxr my 1099-R from last year along with the 8606 I'd filed and it checked whether the taxable amount in box 2a was consistent with my reported basis and flagged that my prior-year line 14 amount hadn't been carried into the current year's calculation. I wouldn't have caught that on my own. Saved me from understating the tax-free portion of the distribution.

Box 2a on the 1099-R is where the payer reports the taxable amount, but they often don't have visibility into your 8606 history. So that number can be wrong if you have basis.

That's exactly what happened. The payer treated the whole thing as taxable because they don't know my nondeductible contribution history. The correct taxable amount is lower once you apply the 8606 calculation.

Gains inside an IRA aren't tracked lot by lot because you're not paying capital gains tax on them — ever, in a Roth, or until withdrawal in a traditional. So wash sale rules don't apply, 1099-B isn't issued for trades inside the account. The concept of cost basis per share inside the IRA is irrelevant to the IRS.

This is one of the things that confuses people who switch from taxable accounts to IRAs. You can sell and rebuy freely inside without any wash sale or capital gains concern. Completely different world.

Exactly. The only tax event is the distribution itself, and the only basis question is whether any after-tax dollars went in, tracked via Form 8606.

One scenario where this really bites people: they convert a traditional IRA to a Roth and assume they can just convert the nondeductible portion tax-free. The pro-rata rule means the taxable and nontaxable portions are spread across all your traditional IRA balances proportionally. You can't isolate just the after-tax amount unless your only IRA has only after-tax money in it.

Learned this the expensive way. Had pre-tax rollover IRAs sitting there and tried to do a backdoor Roth — the pro-rata calculation made most of it taxable. Would've been better to roll the pre-tax IRA into my employer plan first.

Rolling pre-tax IRA money into a 401(k) or 403(b) that accepts incoming rollovers is exactly the workaround. Clears the deck so a subsequent conversion is mostly nontaxable. Not every employer plan accepts it though, so you have to check the plan document.

Publication 590-B has the full rules on partly taxable distributions and walks through how Form 8606 figures the nontaxable portion. The IRS page for 590-B is at https://www.irs.gov/publications/p590b — chapter 1 covers the basis calculation in detail. Worth reading before your first withdrawal if you have any uncertainty about your contribution history.

Roth IRA basis works differently from traditional. Your contributions to a Roth are always your basis and they come out first in the ordering rules, then conversions, then earnings. No Form 8606 is needed just to track that the contributions went in — but you do need 8606 if you take a distribution that might include earnings before the account is qualified.

Matt P.

Author

My Roth is fairly new so I doubt I'll touch it for a long time. Good to know the ordering rules exist though.

The situation where cost basis really starts to matter in a traditional IRA: required minimum distributions. Once you hit RMD age, you're taking distributions whether you want to or not. If you have 8606 basis sitting there, each RMD has a nontaxable portion — but you have to calculate it correctly each year or you're overpaying.

Had a parent in exactly this situation. The RMDs were being reported as fully taxable for years because nobody updated the 8606 calculation. Getting it corrected required going back through old returns.

Just to round out the picture: the basis that DOES matter for a taxable brokerage account — cost per share, wash sales, holding period — none of that applies inside an IRA. If you're used to watching cost basis in a regular account, don't bring that habit into how you think about your IRA.

If you're not sure whether past contributions were deductible, your old Form 1040 Schedule 1 would show the IRA deduction if you took it. If there's no deduction there, that year's contribution may have been nondeductible and a Form 8606 should have been filed. This is worth going back through before your first distribution.

Matt P.

Author

This is the step I actually need to take. Pull the old 1040s and check Schedule 1 for each year. That tells me whether I need to track down any missing 8606s.

Exactly right. And if you find a year where you should have filed 8606 but didn't, you can still file a standalone Form 8606 to establish that basis — just be aware there's a penalty for a late standalone 8606, though the IRS can waive it for reasonable cause.

One more wrinkle: if you inherit a traditional IRA, the basis question follows the account. The beneficiary gets whatever 8606 basis the original owner had. If the decedent never tracked it, the beneficiary often ends up paying tax on money that was already taxed once. This is a situation where a CPA or enrolled agent who handles estate work is worth talking to.

Agreed — inherited IRAs have their own distribution rules layered on top of the basis question now. It's not simple and the cost of getting it wrong over a 10-year distribution window adds up.

To pull the thread together for the original question: cost basis in the IRA investing sense doesn't matter. What matters is your Form 8606 nondeductible contribution history. If every contribution was deductible, your basis is zero and distributions are fully taxable. If any were nondeductible, file or reconstruct 8606 before you take money out.

Matt P.

Author

This is the clearest summary I've seen. Sounds like my next step is pulling old returns, checking Schedule 1 for the IRA deduction each year, and confirming I have no missing 8606s. Thanks everyone.