Funds that are rolled over from a traditional IRA to a qualified retirement plan (not including traditional IRAs) are considered to have come from tax-deferred contributions first. Any remaining amounts from the roll-over are considered to be after-tax contributions.
Nondeductible employee contributions that are included in a rollover from a qualified employee plan to either a traditional or SEP IRA should be added to the basis of the IRA on line 2, Form 8606, Nondeductible IRAs. If a taxpayer cannot deduct all or a portion of an allowable IRA contribution, the taxpayer can choose to make a nondeductible contribution.
To designate contributions as nondeductible, file Form 8606. Contributions that are otherwise deductible can be designated as nondeductible if the taxpayer chooses to do so. As long as the nondeductible contributions are in the IRA, the earnings on the contributions are not taxed until distributed.