Company stock in a 401(k): the plan's cost taxed as income, the growth as a long-term gain
Net unrealized appreciation is the rise in value of your employer's stock while it sat in your workplace retirement plan. When the shares come out in a lump-sum distribution, only the plan's cost of the shares is taxed as income then; the rise is taxed as a long-term capital gain when you sell, instead of as income.
In a lump-sum distribution the shares' cost to the plan is income in the year they come out, and the net unrealized appreciation is untaxed until you sell, then taxed as a long-term gain. For the couple below, taking $200,000 of company stock that cost $50,000 this way costs $22,009 of federal tax in 2027, against $34,579 rolled to an IRA and withdrawn the same year.
| 2027 | 2026 | |
|---|---|---|
| Long-term gains taxed at 0%, married filing jointly, taxable income up to | $102,100 | $98,900 |
| Long-term gains taxed at 15%, married filing jointly, taxable income up to | $633,600 | $613,700 |
| Long-term gains taxed at 15%, single, taxable income up to | $563,200 | $545,500 |
| Net investment income tax (3.8%) from modified AGI, married filing jointly | $250,000 | $250,000 |
| Additional tax on the taxable part before 59½ | 10% | 10% |
| Rule of 55: no additional tax after leaving the employer in or after the year you turn | 55 | 55 |
Sources: IRS Rev. Proc. 2026-35 (Nov 2026) for 2027, IRS Rev. Proc. 2025-32 (Oct 2025); IRS IR-2025-103 (OBBBA amendments) for 2026; IRS, "Retirement topics - Exceptions to tax on early distributions". Gains above the 15% line are taxed at 20%.
A married couple, both 63, with a $40,000 pension, has $200,000 of company stock in a 401(k) that cost the plan $50,000, so the net unrealized appreciation is $150,000. All of it is taken in one year: either rolled to an IRA and withdrawn, or taken out as shares under the NUA rule and sold.
| Rolled to an IRA and withdrawn | Taken as shares and sold (NUA) | |
|---|---|---|
| Pension | $40,000 | $40,000 |
| Taxed as income from the stock | $200,000 | $50,000 |
| Taxed as a long-term gain | None | $150,000 |
| Federal tax for the year | $34,579 | $22,009 |
From the ReadyAimRetire tax engine on the 2027 brackets. On the NUA route the couple's modified AGI is $240,000, under the $250,000 line where the net investment income tax starts.
In this one year the NUA route costs $12,570 less federal tax. Spreading IRA withdrawals over several years, or selling the shares over several years, gives other figures; this example compares a single year.
Rolled into an IRA, every dollar of the shares is income when it comes out: $34,579 of federal tax for the couple above if all of it comes out in 2027, against $22,009 on the NUA route. IRA withdrawals have no NUA rule, so once the shares are in an IRA their growth is taxed as income like the rest.
The NUA rule needs a lump-sum distribution: the whole balance of all of the employer's plans of one kind, within one tax year, after one of these: death, age 59½, separation from service (an employee), disability (a self-employed person). The company stock must come out as shares.
ReadyAimRetire does not model NUA: money in a 401(k) is Pre-Tax and is taxed as income when it comes out. Shares already distributed can be entered as a Taxable account with their "Cost basis" on the Accounts page, and the planner taxes their gain as a capital gain when it sells them. The Estate tab's "Step-up Basis" then treats the whole account as stepped up at death, which the NUA part is not.
Free to get started.
Sources: IRS Publication 575, Pension and Annuity Income (Lump-Sum Distributions); 26 USC 402(e)(4); 26 CFR 1.1411-8 (net investment income and plan distributions); 26 USC 1014; IRS, "Retirement topics - Exceptions to tax on early distributions"; IRS Rev. Proc. 2026-35 (2027 tax brackets). For education only, not tax advice. Rules checked November 2026.
The rise in value of your employer's stock while it was in your workplace retirement plan. If the shares come out in a lump-sum distribution, that rise is taxed as a long-term capital gain when you sell, not as income.
Someone taking the whole balance of all of the employer's plans of one kind within one tax year, after one of these: death, age 59½, separation from service (an employee), disability (a self-employed person). The company stock must come out of the plan as shares.
No. The additional tax before 59½ applies only to the part of a distribution included in income, which is the plan's cost of the shares. The NUA is not income when the shares come out.
No. IRA withdrawals have no NUA rule: once the shares are in an IRA, every dollar that comes out is taxed as income.