You can sell company stock from a 401(k) and move the proceeds into other investments the plan offers. For shares bought with your own paycheck deferrals, that right is immediate. For shares your employer contributed as a match or profit-sharing, the right generally begins after three years of service. Selling inside the plan is not a taxable event — no capital gains, no ordinary income, no withholding. Tax only enters the picture when money actually leaves the account, and even then a strategy called Net Unrealized Appreciation can cut the rate on your stock’s growth.
Your Right to Diversify
Federal law splits the question of when you can sell by where the shares came from.
Money you contributed yourself — your elective deferrals — can be moved out of employer stock at any time. There is no waiting period. If your salary deferrals were invested in company shares, you can sell those shares today and reinvest in any of the plan’s other options.1Office of the Law Revision Counsel. 26 USC 401 – Qualified Pension, Profit-Sharing, and Stock Bonus Plans
Employer-contributed shares — matching funds, profit-sharing, or any other company-funded portion — become sellable after you complete three years of service. Once you cross that mark, you can direct the plan to sell the employer stock and reinvest in at least three diversified options with different risk profiles that the plan must make available.1Office of the Law Revision Counsel. 26 USC 401 – Qualified Pension, Profit-Sharing, and Stock Bonus Plans
Your plan cannot impose restrictions on selling employer stock that it doesn’t also impose on selling other investments. The one exception is restrictions required by securities laws, such as trading blackouts for corporate insiders.
Vesting Decides How Many Shares You Actually Own
You can only sell shares you own. Your own deferrals are 100% vested from day one. Employer contributions follow the plan’s vesting schedule, and any unvested shares are forfeited if you leave.
Federal law allows two vesting structures for employer matching contributions. Cliff vesting gives you nothing until three years of service, then 100% all at once. Graded vesting builds ownership over six years, typically 20% a year starting in year two, until you reach full ownership.2Internal Revenue Service. Vesting Schedules for Matching Contributions
Check your vested balance before placing a trade. If your statement shows 500 shares of company stock but you’re only 60% vested in the employer-match portion, the full position isn’t yours to liquidate.
Plan Restrictions on When You Can Trade
Even with vested shares and the statutory right to diversify, timing can be constrained.
The most common constraint is a blackout period — a window when trading in the plan is frozen, usually during administrative transitions like switching recordkeepers. Blackouts can run from a few days to several weeks. Plan administrators must give you at least 30 days’ written notice before a blackout begins, with the expected start and end dates and the investments affected.3eCFR. 29 CFR 2520.101-3 – Notice of Blackout Periods Under Individual Account Plans During a blackout you cannot buy, sell, or transfer affected assets. If you’re planning a large rebalance, leave lead time.
Some plans also cap trading frequency, for example allowing rebalancing only quarterly. Those periodic limits are permitted as long as you get the chance to trade at least once per quarter. Plan-specific restrictions are spelled out in the Summary Plan Description, available through your HR portal or on written request to the plan administrator.
Extra Rules if You’re a Corporate Insider
If you’re an officer, a director, or an owner of more than 10% of the company’s stock, SEC rules attach to your 401(k) trades. Section 16 of the Securities Exchange Act requires you to report changes in your beneficial ownership on Form 4, and that includes selling company stock inside the plan and reinvesting in mutual funds.4U.S. Securities and Exchange Commission. Exchange Act Section 16 and Related Rules and Forms
The Section 16(b) short-swing profit rule generally makes insiders disgorge profit from buying and selling company securities within six months. Transactions inside tax-qualified plans like 401(k)s are typically exempt from short-swing recovery under SEC Rule 16b-3, but the reporting obligation stays. Coordinate with your compliance team before touching company stock in the plan.
How the Sale Actually Happens
The mechanics are simple. Most plans process trades through an online portal run by the recordkeeper. Log in, open your investment options, select the company stock fund, and enter a sell order in shares or dollars. The system asks where the proceeds should go — a target-date fund, a bond fund, an index fund, or whatever else the plan offers.
After you submit the order you’ll get a trade confirmation with the execution price and total value. The standard settlement cycle for stock trades is one business day, known as T+1.5FINRA. Understanding Settlement Cycles: What Does T+1 Mean for You Most 401(k) plans process the reallocation within one to two business days; some daily-valued plans finish overnight. Keep the confirmation. If you later pursue NUA treatment, the acquisition and sale records matter.
To spread out timing risk on a large position, most plans allow automatic periodic rebalancing, so you can move out of the stock over several months instead of on a single day.
Selling Inside the Plan Is Not Taxed
This is the most important point for anyone worried about a tax bill: selling company stock inside your 401(k) and reinvesting the proceeds in other plan options is not a taxable event. No capital gains tax. No ordinary income tax. No withholding. The entire value stays in the account and continues growing tax-deferred, no matter how much the stock appreciated since you acquired it. Shares that tripled in value can be sold in the plan and generate zero current tax.
That’s the whole reason it rarely makes sense to stay concentrated in company stock out of tax fear. The tax cost of rebalancing inside the plan is nothing.
Taxes When Money Leaves the Plan
Tax arrives at distribution, not at sale. A standard distribution is taxed as ordinary income at the same rates that apply to your salary. Under current law, if the Tax Cuts and Jobs Act provisions expire on schedule, 2026 rates run from 10% to 39.6%, above the 37% top rate that ran from 2018 through 2025.
The plan is required to withhold 20% of any taxable distribution you don’t roll directly into another retirement account. You can’t opt out. A $100,000 distribution sends $20,000 to the IRS and $80,000 to you, with the actual liability reconciled on your return.6Internal Revenue Service. 401(k) Resource Guide – Plan Participants – General Distribution Rules
If you’re under 59½ when you take a distribution, add a 10% early withdrawal penalty on the taxable portion. After-tax contributions are not hit by the penalty.7Office of the Law Revision Counsel. 26 USC 72 – Annuities; Certain Proceeds of Endowment and Life Insurance Contracts
One exception is worth knowing. If you separate from service during or after the calendar year you turn 55, distributions from that employer’s 401(k) are exempt from the 10% penalty. This “Rule of 55” applies to 401(k) and 403(b) plans, not IRAs.8Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions If you’re between 55 and 59½ and thinking about rolling to an IRA, you’d lose access to it.
Net Unrealized Appreciation: A Lower Rate on the Growth
If your company stock has grown a lot inside the 401(k), Net Unrealized Appreciation can meaningfully reduce the tax on that growth. Instead of withdrawing the stock as cash and paying ordinary income tax on the entire value, you transfer the actual shares to a regular taxable brokerage account. The appreciation qualifies for long-term capital gains rates, not ordinary income rates.
How NUA Works
Under Section 402(e)(4), the stock’s value is split for tax purposes. The cost basis — what the shares were worth when they entered the plan — is taxed as ordinary income in the year of the distribution. The appreciation above that basis (the NUA itself) is not taxed until you sell the shares from the brokerage account, and when you do sell, that portion is taxed at long-term capital gains rates regardless of how long you’ve held the shares after the transfer.9Office of the Law Revision Counsel. 26 USC 402 – Taxability of Beneficiary of Employees’ Trust
For 2026, long-term capital gains rates are 0%, 15%, or 20% depending on taxable income. Single filers pay 0% on gains up to $49,450, 15% up to $545,500, and 20% above that. Married couples filing jointly pay 0% up to $98,900, 15% up to $613,700, and 20% above that. Set that against ordinary rates that could reach 39.6% and the savings on a large appreciated position add up quickly.
If you’re under 59½ at the time of the distribution, the 10% early withdrawal penalty applies to the cost basis portion, which is the piece taxed as ordinary income. It does not apply to the NUA portion, because that amount isn’t included in gross income at the time of distribution.10Internal Revenue Service. Publication 575 – Pension and Annuity Income
What You Need to Qualify
NUA requires a triggering event and a specific distribution method.
- A qualifying trigger: reaching age 59½, separating from your employer, becoming disabled, or death (in which case the beneficiary claims the treatment).9Office of the Law Revision Counsel. 26 USC 402 – Taxability of Beneficiary of Employees’ Trust
- A lump-sum distribution: the entire balance of the 401(k) has to be distributed within a single tax year. You can’t take the stock this year and the rest next year.
- An in-kind transfer of the stock: the company shares must move as actual shares to a taxable brokerage account. If you sell the shares inside the plan and then withdraw the cash, the NUA benefit is gone.
The lump-sum requirement doesn’t force the whole distribution into a brokerage account. You can roll the non-stock assets — cash, mutual funds, bonds — into a traditional IRA and transfer only the company stock to the taxable account. What matters is that the entire balance leaves the 401(k) within one tax year.11Internal Revenue Service. Topic No. 412 – Lump-Sum Distributions
NUA vs. Rolling the Whole 401(k) Into an IRA
The alternative is simpler. Roll the entire 401(k), stock included, into a traditional IRA. No tax now, everything grows tax-deferred. But every dollar you eventually withdraw from the IRA is taxed as ordinary income, appreciation included, and once the stock enters the IRA the NUA option is permanently gone.
NUA tends to work when the stock’s cost basis is low relative to its current value, because you’re paying ordinary income tax on a small number and capital gains tax on a large one. It also tends to work if you expect your retirement tax rate to be similar to or higher than your current rate. If you expect income to drop sharply in retirement, a full IRA rollover may come out ahead because the ordinary income tax at withdrawal will be applied at a lower rate.
One more factor: stock moved to a taxable account via NUA is out of the retirement system, so it’s not subject to required minimum distributions. Assets rolled to an IRA will trigger annual withdrawals starting at age 73, which can push you into higher brackets.
Reporting an NUA Distribution
The plan administrator issues a Form 1099-R for the distribution. Two boxes carry the numbers you need. Box 6 reports the Net Unrealized Appreciation — the growth taxed at capital gains rates when you sell. Box 5 reports the cost basis or after-tax contributions, the amount taxed as ordinary income in the distribution year.12Internal Revenue Service. Instructions for Forms 1099-R and 5498
Keep the 1099-R and the plan’s trade confirmations permanently. You’ll need the cost basis to calculate capital gains when you sell the shares in your brokerage account. Any appreciation after the transfer is taxed at short-term or long-term rates based on how long you hold the shares after the distribution date.
Don’t Forget State Tax
Federal tax is only part of the calculation. Most states tax retirement distributions as ordinary income, at rates from under 2% to over 13%. Eight states impose no individual income tax. Some states offer partial exclusions for retirement income that often begin at 59½ or 65, but coverage varies and rarely offsets a large distribution. If you’re weighing a major distribution or an NUA election, your state rate belongs in the math, especially if a move before or during retirement is on the table.