Can You Sell 401(k) Stocks? Penalties, NUA, and RMD Rules

Yes, you can sell stocks in your 401(k) at any time, and the tax result depends entirely on what you do with the proceeds. Keep the money inside the account and there are no taxes at all, no matter how much you sold or how much it gained. Take the money out as cash and you owe ordinary income tax on the full amount, plus a 10% early withdrawal penalty if you’re under 59½ and don’t fit an exception. That single distinction, internal trade versus cash distribution, drives every other rule below.

Selling to Reinvest Inside the Plan

Swapping one investment for another inside your 401(k) is tax-free. You can sell a stock fund and buy a bond fund, shift everything into a money market option, or completely rebuild your allocation without triggering a dollar of capital gains tax. The money never leaves the tax-deferred shell of the plan, so the IRS doesn’t treat it as a taxable event.1Office of the Law Revision Counsel. 26 USC 401 – Qualified Pension, Profit-Sharing, and Stock Bonus Plans You don’t report these trades on your return, and there’s no limit on how often you can trade.

Most participants use this flexibility for rebalancing. If stock funds have surged and now make up a larger share of the portfolio than intended, selling some shares and redirecting the proceeds into bonds or a stable value fund brings the risk level back in line. The trade usually settles within one business day.

One boundary matters even inside a self-directed brokerage window: a 401(k) cannot hold collectibles such as art, antiques, gems, or most coins. Certain precious metals meeting specific purity standards are the narrow exception.2Internal Revenue Service. Retirement Plan Investments FAQs If your plan offers a brokerage option, you’re generally limited to publicly traded securities, mutual funds, and ETFs.

When You Can Sell for Cash

Cashing out is different. The plan can’t hand you a check just because you asked. Federal rules restrict when distributions are allowed, and your plan document may add more limits. Generally, a cash distribution is available when one of these events occurs:3Internal Revenue Service. 401(k) Resource Guide – Plan Participants – General Distribution Rules

  • You reach age 59½, at which point most plans allow penalty-free withdrawals regardless of employment status.
  • You leave your job. Quitting, being laid off, or retiring triggers distribution eligibility for the full vested balance.
  • You become disabled, or you die and the balance passes to your beneficiary.
  • The plan terminates without a replacement defined contribution plan.
  • You qualify for a hardship withdrawal, and only if the plan specifically allows it and only for an immediate, heavy financial need.

Hardship distributions carry their own restrictions. The withdrawal is limited to the amount you actually need, cannot be rolled over, and remains subject to income tax and potentially the 10% penalty.4Internal Revenue Service. Retirement Topics – Hardship Distributions Being eligible to take money out doesn’t make it cheap; it only makes it possible.

The 10% Early Withdrawal Penalty

Take a cash distribution before 59½ and the IRS adds a 10% penalty on top of the income tax you already owe.5Office of the Law Revision Counsel. 26 USC 72 – Annuities; Certain Proceeds of Endowment and Life Insurance Contracts – Section: (t) 10-Percent Additional Tax for Early Distributions On a $50,000 withdrawal in the 22% bracket, that’s $11,000 in federal income tax plus $5,000 in penalties. You walk away with roughly $34,000 before any state tax hits.

Congress has carved out exceptions that remove the 10% penalty, though income tax still applies:6Internal Revenue Service. Retirement Topics – Exceptions to Tax on Early Distributions

  • Separation from service during or after the year you turn 55, using that employer’s plan. Public safety employees qualify starting at age 50.
  • Substantially equal periodic payments (SEPP) calculated using an IRS-approved method. Once you start, you can’t change the schedule until the later of five years or age 59½, or retroactive penalties apply to every payment already taken.7Internal Revenue Service. Substantially Equal Periodic Payments
  • Permanent disability as defined in the tax code.
  • A qualified domestic relations order (QDRO) directing payment to a former spouse during a divorce.8Internal Revenue Service. Retirement Topics – QDRO: Qualified Domestic Relations Order
  • Unreimbursed medical expenses above 7.5% of adjusted gross income.
  • Birth or adoption of a child, up to $5,000 per parent within one year of the event.9Internal Revenue Service. Topic No. 558, Additional Tax on Early Distributions From Retirement Plans Other Than IRAs
  • Terminal illness diagnosis.
  • An IRS levy against the 401(k).
  • Emergency personal expense withdrawals of up to $1,000 per year, if the plan has adopted this SECURE 2.0 option. The withdrawal can be repaid within three years; another emergency withdrawal isn’t available until repayment or the three-year window closes.

Every exception waives only the 10% penalty. You still owe ordinary income tax on the full distribution amount regardless of which exception fits.

Rolling Over Instead of Cashing Out

If you’re leaving a job and don’t need the cash now, a rollover to an IRA or a new employer’s plan avoids both tax and penalty. In a direct rollover, the plan administrator sends the money straight to the receiving account. Nothing is withheld and you never touch the funds.10Internal Revenue Service. Rollovers of Retirement Plan and IRA Distributions

An indirect rollover is where people get hurt. The plan cuts you a check, withholds 20% for federal tax, and starts a 60-day clock to redeposit the full original amount into another eligible retirement account.11Internal Revenue Service. Topic No. 413, Rollovers From Retirement Plans On a $50,000 distribution, only $40,000 reaches you, but you still have to deposit $50,000 to complete the rollover. Come up short and the shortfall is treated as a taxable distribution, penalty included if you’re under 59½. Miss the 60 days entirely and the whole amount becomes taxable.

Borrowing Instead of Selling

If your plan allows loans, borrowing from your own 401(k) gives you cash without triggering any tax, as long as you repay on schedule. The maximum is the lesser of $50,000 or 50% of your vested balance, with a $10,000 floor if your vested balance is between $10,000 and $20,000.12Office of the Law Revision Counsel. 26 USC 72(p) – Loans Treated as Distributions Repayment runs on substantially level installments at least quarterly over five years, with a longer term allowed for a loan used to buy your primary residence.13Internal Revenue Service. Retirement Plans FAQs Regarding Loans Interest goes back into your own account.

The trap is job separation. If you can’t repay the outstanding balance by the tax-filing deadline for the year you left (including extensions), the unpaid balance is treated as a taxable distribution, with the 10% penalty added if you’re under 59½. Rolling the unpaid loan offset amount into an IRA before that deadline can avoid the hit, but it takes planning and available cash.

Selling Employer Company Stock: The NUA Strategy

If your 401(k) holds shares of your employer’s stock, a strategy called net unrealized appreciation (NUA) can substantially reduce the tax on those shares. Normally, every dollar coming out of a 401(k) is taxed as ordinary income. Under NUA, ordinary income tax applies only to the original cost basis of the company stock, and the gain above that basis is taxed at the lower long-term capital gains rate when you eventually sell the shares.14Office of the Law Revision Counsel. 26 USC 402(e)(4) – Net Unrealized Appreciation

The requirements are strict. You must take a lump-sum distribution of your entire plan balance within a single tax year, triggered by separation from service, reaching 59½, disability (for self-employed individuals), or death. The company stock transfers in kind to a taxable brokerage account rather than being sold inside the plan. Other assets can be rolled to an IRA.

The math can be dramatic. If you bought $20,000 of company stock over the years and it’s now worth $120,000, a standard distribution taxes the full $120,000 as ordinary income. Under NUA, you pay ordinary income tax on the $20,000 basis at distribution and long-term capital gains tax on the $100,000 gain when you sell. With a top capital gains rate of 20% versus a top ordinary rate of 37%, the savings on a large block of appreciated stock can reach tens of thousands of dollars. This is specialized enough to be worth running past a tax professional before executing.

When Selling Becomes Mandatory: RMDs

Eventually the IRS requires you to start selling and withdrawing whether you want to or not. Required minimum distributions (RMDs) begin by April 1 of the year after you turn 73.15Internal Revenue Service. Retirement Topics – Required Minimum Distributions (RMDs) If you’re still working for the employer that sponsors the plan and the plan allows it, you can delay RMDs from that plan until you actually retire. A 401(k) from a former employer starts the clock at 73 regardless.

If your account is invested in stocks and funds, the plan will need to sell enough shares each year to generate the required cash. The RMD amount is your prior-year December 31 balance divided by a life expectancy factor from IRS tables. Failing to take the full RMD on time results in a 25% excise tax on the shortfall, reduced to 10% if corrected within two years.

Before the Sale Goes Through

Verify your vesting status first. Your own contributions and their earnings are always 100% yours. Employer contributions like matching funds follow a vesting schedule, and any unvested portion is forfeited when you leave.16Internal Revenue Service. Retirement Topics – Vesting Your annual benefits statement or a call to the plan administrator will confirm the percentage you actually own.

If you’re married, some plans require spousal written consent before processing a distribution. It’s most common in money purchase pension plans and defined benefit plans required to offer a qualified joint and survivor annuity. Many 401(k) profit-sharing plans are exempt as long as the surviving spouse would receive the full death benefit.17Internal Revenue Service. Fixing Common Plan Mistakes – Failure to Obtain Spousal Consent Confirm the rule for your plan before you file paperwork.

Federal law requires 20% income tax withholding on any distribution paid directly to you.3Internal Revenue Service. 401(k) Resource Guide – Plan Participants – General Distribution Rules That’s a prepayment against your actual tax bill, not a fee. If your effective rate is lower than 20%, you get the difference back at filing; if higher, you owe more. State withholding varies widely.

Once you submit the request, the custodian sells the specified investments at the next trading window. Most securities transactions settle one business day after execution.18U.S. Securities and Exchange Commission. Shortening the Securities Transaction Settlement Cycle – A Small Entity Compliance Guide Electronic transfers to your bank typically arrive two to three business days after settlement; mailed checks take longer. In January of the following year, the plan issues a Form 1099-R reporting the distribution to you and the IRS, including any rollover amount, which you’ll report as nontaxable on your return.