NUA Advisor Match

ESPP vs. 401(k) Employer Stock: Which Qualifies for Net Unrealized Appreciation?

Many corporate employees retire with company stock in two completely separate places: shares they purchased through an Employee Stock Purchase Plan (ESPP), and employer stock held inside their 401(k). These positions look similar on paper — both are company shares, both may have large unrealized gains — but they are governed by different tax rules, sit in different account types, and only one of them can qualify for the NUA election. If you've been assuming your ESPP shares are the NUA opportunity, or you've been ignoring the employer stock inside your 401(k), this distinction could be worth $50,000–$200,000 in lifetime taxes.

The short answer: ESPP shares do not qualify for NUA — they're already in a taxable brokerage account and were never inside a retirement plan. The NUA election under IRC § 402(e)(4) applies only to employer securities distributed in-kind from a qualified retirement plan (401(k), ESOP, profit-sharing). The 401(k) employer contributions your company deposited as company stock — the match or profit-sharing shares that have been growing tax-deferred for years — almost certainly do qualify. That's the position worth modeling.

What is an ESPP and where do the shares live?

An Employee Stock Purchase Plan (ESPP) is a company benefit that lets employees buy company stock at a discount — typically up to 15% below market price — through after-tax payroll deductions.1 Most plans have an offering period (often 6–24 months) during which contributions accumulate, then purchase the stock at the discounted price at the end of that period.

Critically: when an ESPP purchases shares for you, they are deposited directly into a taxable brokerage account — your Fidelity, E*TRADE, Morgan Stanley, or Schwab account. They are not in your 401(k). They never were. You funded them with after-tax payroll deductions, and the moment the shares were purchased, they were yours in a standard taxable account.

This structural fact — that ESPP shares live outside any retirement plan — is the entire reason they can't qualify for NUA.

Why ESPP shares can't qualify for NUA

The NUA election under IRC § 402(e)(4) applies to employer securities distributed from a qualified retirement plan as part of a lump-sum distribution triggered by a qualifying event (retirement, separation, death, disability, or age 59½).2 The critical requirement is that the stock must be distributed from a qualified plan — it must have been inside the plan, tax-deferred, accumulating value.

ESPP shares fail this test on every dimension:

The NUA election exists because taking employer stock out of a retirement plan in kind — rather than selling it inside the plan and rolling cash — allows the appreciation to be taxed at capital gains rates rather than ordinary income rates. ESPP shares are already in a taxable account and will already be taxed at capital gains rates when you sell them. There's no "ordinary income trap" to escape from, so there's no NUA election to make.

ESPP shares have their own favorable tax treatment (qualifying vs. disqualifying dispositions, which determine how much of your gain is ordinary income vs. long-term capital gains). That's worth planning around separately — but it has nothing to do with NUA.

What 401(k) employer stock is — and what qualifies for NUA

Inside your 401(k), employer stock typically gets there in one of three ways:

Employer matching contributions made in company stock. Rather than depositing cash to your 401(k) as a match, some employers deposit shares of company stock directly into your plan account. Every dollar matched as stock rather than cash creates a low-basis position: the basis is the stock price at the time of contribution, often representing decades of low prices for long-tenure employees. This is the most common source of NUA-qualifying stock at established public companies.

Profit-sharing contributions in stock. Discretionary profit-sharing contributions may also be allocated as company shares. Long-service employees at profitable companies can accumulate large low-basis positions through profit-sharing allocations made over 20-30-year careers.

Employee-directed company stock within the plan. If you used your own 401(k) salary deferrals to buy shares through a "Company Stock Fund" option inside the plan, those shares also qualify for NUA — even though you directed the purchase yourself. The NUA election applies to any employer securities inside a qualified plan, regardless of whether the employer or the employee contributed the funds used to buy them. The cost basis is whatever the plan paid for those shares at the time of purchase.3

ESOP allocations. If your employer maintained a separate Employee Stock Ownership Plan, company shares contributed to your ESOP account over your career are the primary NUA opportunity for those participants. See the NUA for ESOP participants guide for plan-specific mechanics — ESOP plans have additional requirements (put option rights, plan-document distribution restrictions) not found in standard 401(k)s.

In every qualifying case, the common thread is the same: the stock was inside a tax-deferred qualified plan, it has grown in value since it was acquired, and you can distribute it in-kind at retirement rather than rolling it to an IRA — capturing the appreciation as capital gains rather than converting it all to ordinary income.

How to tell which stock you have and where

If you've worked at a company for 10–25+ years, you may have both ESPP shares and 401(k) employer stock and not be sure which is which. Here's how to sort it out quickly:

CharacteristicESPP Shares401(k) Employer Stock
Where it livesTaxable brokerage account (Fidelity, E*TRADE, Schwab, Morgan Stanley)Inside your 401(k) or ESOP account
How it was fundedAfter-tax payroll deductions you contributedEmployer contributions (match, profit-sharing) or your 401(k) deferrals directed to company stock fund
Tax form at sale/distribution1099-B (capital gains/losses)1099-R at plan distribution (Box 6 shows NUA amount)
Current tax statusAlready in taxable account — you pay tax when you sellTax-deferred inside plan — no tax until distribution
NUA election available?No — not in a qualified planYes, if plan allows in-kind distribution and lump-sum requirements are met

Practical step: Log into your 401(k) account (Fidelity NetBenefits, Vanguard, Empower, Alight, etc.) and look for a line item called "Company Stock," "[Your Company] Stock," or an ESOP fund. If you see it, note the current value and then call the recordkeeper to ask: "What is the cost basis — or average cost per share — for the employer stock in my 401(k) account?" That's the number that determines whether NUA is worth pursuing.

If the basis is very low relative to current value (say, $80K basis on a $900K position — a 11.25:1 ratio), you almost certainly have a substantial NUA opportunity. Use the NUA vs. rollover calculator to estimate the tax savings.

Coordinating ESPP and 401(k) NUA strategy

If you have both ESPP shares and 401(k) employer stock, the decisions are independent — but they interact at the tax-planning level.

The 401(k) NUA decision is time-sensitive and irreversible. The NUA election must be made at the lump-sum distribution — at retirement or another qualifying event. If you roll the employer stock to an IRA first, the opportunity is permanently gone. This decision needs to be made correctly, once.

The ESPP decision is ongoing and reversible. You can sell ESPP shares whenever you want, donate them to charity, hold them for estate step-up, or give them to family. There's no one-shot window. The main tax question is qualifying vs. disqualifying disposition: to get all-capital-gains treatment on ESPP shares, you generally need to hold them for at least two years from the offering date and at least one year from the purchase date.1

After completing the NUA election, the coordination opportunity: Having a large pool of already-in-taxable employer stock (from NUA distribution) plus ESPP shares in the same taxable account creates income planning flexibility. In retirement years when your ordinary income is low, you may be in the 0% long-term capital gains bracket ($49,450 or below for single filers; $98,900 or below for married filing jointly in 2026) and can sell ESPP shares or post-NUA employer stock tax-free.4 See the 0% LTCG bracket guide for mechanics.

Worked example: tech company employee with both

Wei, 62, has spent 19 years at a public tech company. As he approaches retirement:

ESPP shares: Already in a taxable account. These are not NUA-eligible. Wei will plan their sale around capital gains timing — perhaps spreading sales over several retirement years to stay in the 15% rather than 20% LTCG bracket, and donating the most appreciated lots directly to his donor-advised fund.

401(k) employer stock — NUA vs. IRA rollover comparison:

ScenarioTax at DistributionFuture Tax on $536K NUATotal Federal Tax
IRA rollover — full $580K$0 now$580K × ~24%+ OI rate = $139,200+$139,200+ (plus tax on all future growth)
NUA in-kind distribution$44K basis × 24% = $10,560$536K NUA × 15% LTCG = $80,400~$90,960 federal
NUA advantage~$48,240 federal savings (more if income-managed to 15% bracket; more still if estate holds stock for step-up)

Wei's ESPP shares had nothing to do with this decision. The NUA opportunity was entirely inside his 401(k) — and would have been permanently destroyed if he had followed the default HR recommendation to roll everything to an IRA.

Common mistakes when you have both ESPP and 401(k) stock

Assuming the ESPP is the NUA opportunity. Employees who've carefully tracked their ESPP positions and know they have appreciated company stock sometimes assume that's the NUA they've heard about. It's not. The ESPP position is already in a taxable account and doesn't qualify. The NUA opportunity — often larger and lower-basis — is sitting in the 401(k) account they haven't looked at as carefully.

Rolling all 401(k) assets to an IRA because "the company stock is already in a taxable account." The logic goes: "I have $210K of company stock in a brokerage account from ESPP anyway, so rolling the 401(k) employer stock to an IRA is fine." This logic is exactly backward. The 401(k) employer stock has a 7.6:1 appreciation ratio and qualifies for NUA. Rolling it to an IRA permanently converts $536K of future capital gains into future ordinary income — a five-figure tax error.

Not realizing employer stock is in the 401(k) at all. If employer matching contributions were made in stock form — especially 10–20 years ago when the stock was much cheaper — employees may not realize how much has accumulated, or even that any stock is there at all. One phone call to the recordkeeper ("what's my employer stock balance and its cost basis?") can reveal a six-figure NUA opportunity hiding in plain sight.

See the 7 NUA mistakes guide for the full set of common errors that permanently disqualify the election.

Have both ESPP and 401(k) employer stock? Get them modeled properly.

A fee-only NUA specialist will sort through all your stock positions, identify the in-kind distribution opportunity in your 401(k), and model the exact tax savings against an IRA rollover — before you sign any distribution paperwork. Free match, no obligation.

Sources

  1. IRC § 423 — Employee Stock Purchase Plans: statutory requirements for qualified ESPPs, 15% maximum discount, holding period rules for qualifying dispositions (2 years from offering date, 1 year from purchase date for all-LTCG treatment). ESPP shares are purchased into a taxable account, not a qualified retirement plan.
  2. IRC § 402(e)(4) — Lump-sum distribution and NUA election: NUA applies only to employer securities distributed from a qualified plan (401(k), ESOP, pension, profit-sharing). Shares already in a taxable account cannot satisfy the "distributed from a qualified plan" requirement.
  3. IRS Topic No. 412 — Lump-Sum Distributions: includes employee-directed purchases of company stock inside a 401(k) plan as qualifying employer securities for NUA treatment; not limited to employer-contribution stock.
  4. Kiplinger — 2026 Capital Gains Tax Thresholds: 0% LTCG rate applies below $49,450 (single) / $98,900 (MFJ); 15% to $545,500 (single) / $613,700 (MFJ); 20% above. NIIT 3.8% applies above $200K/$250K MAGI. Verified against IRS Rev. Proc. 2025-32.
  5. IRS Instructions for Forms 1099-R and 5498: Box 6 reports NUA excluded from current income at in-kind distribution; ESPP shares generate a 1099-B (not 1099-R) at sale since they are held in a taxable account, not distributed from a qualified plan.

IRC § 402(e)(4) and § 423 as in effect for 2026. NUA rules are unchanged by OBBBA, SECURE 2.0, or the Social Security Fairness Act. 2026 LTCG thresholds from IRS Rev. Proc. 2025-32. This page does not constitute tax or legal advice — consult a qualified specialist before making any distribution decision.