Cost basis in retirement accounts is the money already taxed before it went in, and it matters because that portion should not be taxed again when it comes out. For most people whose traditional 401(k) or IRA was funded entirely with pre-tax contributions, the basis is zero and every dollar withdrawn is taxable income. Basis only exists when you put after-tax money into the account: a non-deductible IRA contribution, an after-tax 401(k) contribution above the pre-tax limit, a mandatory employee contribution to a government pension, or any Roth contribution. Knowing your basis, and being able to prove it, is what keeps you from paying income tax twice on the same dollars.
Where Basis Comes From
In a regular brokerage account, cost basis is simply what you paid for an investment. Inside a retirement account, the definition shifts. Basis is the running total of every dollar that went in without reducing your taxable income in the year of contribution.
Pre-tax contributions to a traditional 401(k) or a deductible traditional IRA lower your taxable income that year, so they carry no basis. Decades later, when you take them out, that withdrawal is the first time those dollars face income tax. Basis appears only in these situations:
- Non-deductible contributions to a traditional IRA, usually because your income was too high to deduct them.
- After-tax contributions to a 401(k) beyond the standard elective deferral limit but within the overall annual additions cap.
- Mandatory employee contributions to a government or older private-sector pension, taken from already-taxed wages.
- Roth contributions of any kind, since Roth money is after-tax by design.
When you eventually withdraw, the share of the distribution traceable to those after-tax dollars comes back to you without owing additional federal income tax. The share traceable to pre-tax contributions and to investment earnings is taxable.
Tracking Basis in a Traditional IRA
If you have ever made a non-deductible contribution to a traditional IRA, tracking it is your responsibility, not the custodian’s. Your brokerage knows what went in and what came out, but it has no way to know whether a given contribution was deductible. That answer depends on your income, filing status, and whether you had access to a workplace plan in the year of contribution.
The tool for tracking is IRS Form 8606. You file it with your return for any year you make a non-deductible traditional IRA contribution, and again in any year you take a distribution from a traditional IRA that carries basis or convert traditional IRA money to a Roth.1Internal Revenue Service. Instructions for Form 8606 The form keeps a cumulative total of your non-deductible contributions, and that total is your basis.
Your IRA custodian files Form 5498 with the IRS each year showing total contributions.2Internal Revenue Service. About Form 5498, IRA Contribution Information Box 1 reports traditional IRA contributions and Box 10 reports Roth contributions.3Internal Revenue Service. Form 5498, IRA Contribution Information Form 5498 doesn’t say whether a contribution was deductible, but it confirms the amount, which lets you verify your own records. Keep the 5498s alongside your Forms 8606.
The Pro-Rata Rule on Traditional IRA Withdrawals
This is where most people stumble. When a traditional IRA holds both pre-tax and after-tax money, you cannot choose to pull the after-tax portion out first. The IRS applies a proportional split to every distribution, and it treats all of your traditional, SEP, and SIMPLE IRAs as a single pool for the calculation.4Office of the Law Revision Counsel. 26 USC 408 – Individual Retirement Accounts
The math: divide your total non-deductible contributions by the combined value of all your traditional, SEP, and SIMPLE IRAs. The account values are measured as of December 31 of the distribution year, plus any distributions taken during that year.4Office of the Law Revision Counsel. 26 USC 408 – Individual Retirement Accounts The ratio is the percentage of each distribution that comes out tax-free.
Example: your non-deductible contributions total $15,000, and the combined balance across all your traditional, SEP, and SIMPLE IRAs on December 31 is $150,000. The basis ratio is 10%. If you withdraw $10,000 that year, $1,000 is tax-free and $9,000 is taxable. The result is the same whether the after-tax money sits in the same IRA you drew from or in a completely separate one. The pro-rata rule ignores the account you chose.
Two practical consequences follow. Distributions taken early in the year get diluted by growth over the rest of the year, since the December 31 value drives the ratio. And a self-employed person with a large SEP IRA and a small traditional IRA carrying non-deductible contributions will see a very small tax-free percentage, because the SEP balance gets pulled into the same denominator.
Roth IRA Basis Works Differently
Every dollar in a Roth IRA started as after-tax money, so the whole balance has basis in some form. But the pro-rata rule does not apply. Roth withdrawals follow an ordering rule: regular contributions come out first, then conversion and rollover amounts, then earnings.5Office of the Law Revision Counsel. 26 USC 408A – Roth IRAs Regular contributions can be pulled out tax-free and penalty-free at any age, regardless of how long the account has been open.
The bigger question with a Roth is whether the distribution is “qualified,” meaning the earnings also come out tax-free. Two conditions must both be satisfied: the account must have been open at least five tax years (measured from January 1 of the year you first funded any Roth IRA), and you must be at least 59½, disabled, or meet another limited exception.6Internal Revenue Service. Publication 590-B – Distributions from Individual Retirement Arrangements (IRAs)
Below the qualified line, the ordering rules give you room. You can pull out up to your total contribution amount at any time without tax. Once you cross into conversion amounts, a separate five-year clock applies to each conversion: withdraw a converted amount within five years and under age 59½, and the 10% early distribution penalty applies even though the conversion was taxed at the time.6Internal Revenue Service. Publication 590-B – Distributions from Individual Retirement Arrangements (IRAs) Earnings withdrawn before the distribution qualifies are taxed as ordinary income and may also carry the penalty.
Basis in 401(k) Plans and Pensions
Many 401(k) plans allow after-tax (non-Roth) contributions once you have hit the standard elective deferral limit ($24,500 for 2026) but before hitting the overall annual additions cap of $72,000.7Internal Revenue Service. 401(k) Limit Increases to $24,500 for 2026; IRA Limit Increases to $7,500 The contributed dollars are basis; the earnings on them are pre-tax and will be taxed at withdrawal.
Government pensions and some older private defined benefit plans create basis when the employee is required to contribute a share of salary from already-taxed wages. Those mandatory contributions are the employee’s cost basis in the pension.
Tracking basis in an employer plan is easier than tracking it in an IRA. The plan administrator keeps pre-tax, Roth, employer match, and after-tax contributions in separate buckets. When distributions begin, Box 5 of Form 1099-R reports the after-tax portion.8Internal Revenue Service. Instructions for Forms 1099-R and 5498 If your statements don’t clearly break out the after-tax amount, ask the administrator for a breakdown before you retire.
The Simplified Method for Pension Annuities
Pensions that pay a monthly annuity recover your basis on a fixed schedule instead of using a pro-rata calculation. Divide your total after-tax contributions by a number of anticipated monthly payments taken from an IRS table, and that quotient is the tax-free portion of each payment. The IRS calls this the Simplified Method, and it applies to annuities from qualified retirement plans.9Internal Revenue Service. Publication 575 – Pension and Annuity Income
The number of payments depends on your age when payments begin:9Internal Revenue Service. Publication 575 – Pension and Annuity Income
- 55 or under: 360 payments
- 56 to 60: 310 payments
- 61 to 65: 260 payments
- 66 to 70: 210 payments
- 71 or older: 160 payments
Retire at 62 with $52,000 of after-tax contributions in the pension, and you divide $52,000 by 260 to get $200. Every monthly payment includes $200 that is tax-free. That exclusion continues at $200 per month until you have recovered the full $52,000, even if you outlive the 260-month estimate. After the basis is fully recovered, every remaining payment is fully taxable.10Internal Revenue Service. Topic No. 411, Pensions – The General Rule and the Simplified Method Nonqualified plans and some other annuities instead use the General Rule, which relies on IRS life expectancy tables.9Internal Revenue Service. Publication 575 – Pension and Annuity Income
Rollovers, Conversions, and the Backdoor Roth Trap
If your 401(k) holds after-tax contributions, you can split a rollover so that the pre-tax portion goes to a traditional IRA and the after-tax portion goes directly to a Roth IRA. The IRS treats simultaneous rollovers to different destinations as one distribution for purposes of separating the two buckets. Earnings on after-tax contributions count as pre-tax and go with the pre-tax portion. A partial distribution cannot be limited to only after-tax dollars; it must include some pre-tax money.11Internal Revenue Service. Rollovers of After-Tax Contributions in Retirement Plans
The pro-rata rule also applies to Roth conversions from a traditional IRA. In a backdoor Roth, you make a non-deductible contribution to a traditional IRA and convert it. If the traditional IRA is otherwise empty, the conversion is nearly tax-free because almost all of it is basis. If you also hold other traditional, SEP, or SIMPLE IRA balances, the conversion is treated as coming proportionally from pre-tax and after-tax money across every one of those accounts.4Office of the Law Revision Counsel. 26 USC 408 – Individual Retirement Accounts A large pre-tax IRA balance can turn a supposedly tax-free backdoor Roth into a mostly taxable one. Some savers move existing traditional IRA balances into a current employer’s 401(k) first, because 401(k) balances are excluded from the IRA aggregation.
Inherited Accounts Do Not Get a Stepped-Up Basis
When someone inherits a retirement account, the original owner’s cost basis transfers to the beneficiary. Retirement accounts do not receive the stepped-up basis that applies to inherited stocks, real estate, and most other assets. The beneficiary pays income tax on distributions the same way the original owner would have.
If the deceased had non-deductible contributions in a traditional IRA, that basis carries over, and the beneficiary excludes the same proportional amount from income on each distribution.12Internal Revenue Service. Publication 590-B – Distributions from Individual Retirement Arrangements (IRAs) A survivor receiving pension annuity payments uses the same recovery method the employee would have used.13Internal Revenue Service. Retirement Topics – Beneficiary
The practical risk is knowing the basis existed. If the deceased never filed Form 8606 and never mentioned making non-deductible contributions, an heir can easily pay tax on money that was already taxed. A beneficiary files their own Form 8606 for distributions from an inherited IRA that has basis, and a separate Form 8606 is required for each decedent if IRAs are inherited from more than one person.1Internal Revenue Service. Instructions for Form 8606 An inherited IRA’s basis cannot be combined with the beneficiary’s own IRA basis.12Internal Revenue Service. Publication 590-B – Distributions from Individual Retirement Arrangements (IRAs)
Reporting Basis and Fixing Old Mistakes
Form 8606 is the only place the IRS tracks non-deductible IRA contributions. File it with your 1040 for any year you make one, take a distribution from a traditional IRA that carries basis, or convert to a Roth.1Internal Revenue Service. Instructions for Form 8606
Retirement plans issue Form 1099-R for distributions. On IRA distributions, Box 2a (taxable amount) is often blank or marked “Taxable amount not determined,” because the custodian has no basis history. Calculating the taxable amount on Form 8606 and reporting it on the 1040 is on you.
The penalty for failing to file Form 8606 when required is $50, and the penalty for overstating non-deductible contributions is $100 per overstatement; both can be waived for reasonable cause.14Internal Revenue Service. Instructions for Form 860615Office of the Law Revision Counsel. 26 USC 6693 – Failure to Provide Reports on Certain Tax-Favored Accounts or Annuities; Penalties Relating to Designated Nondeductible Contributions The bigger cost of skipping the filing is losing the paper trail for basis, which can mean paying income tax on money that was already taxed once.
If you made non-deductible contributions in past years and never filed Form 8606, the basis still exists. You didn’t forfeit it by not reporting it. The IRS allows late Forms 8606 for prior years to establish or correct the record. To reclassify a contribution between deductible and non-deductible, file Form 1040-X for that year with a corrected Form 8606 attached, within the amendment window.1Internal Revenue Service. Instructions for Form 8606
Reconstructing a lost basis means gathering old tax returns showing IRA contributions, Forms 5498 from the custodian, and bank records of the deposits. If you have already been taking distributions without claiming your basis, you’ve been overpaying tax on those withdrawals; you can amend the last three years’ returns to recover the overpayment, but not returns beyond the amendment window. From then on, filing Form 8606 every year the rules require it is what protects the after-tax dollars you have already earned.