Yes, you can trade stocks in your 401k, but only if your employer’s plan offers a self-directed brokerage window. Without that feature, you’re limited to the plan’s standard menu of mutual funds and target-date funds. If the window is available, you can buy and sell individual stocks and ETFs inside the account, and every gain and dividend stays tax-deferred until you withdraw.
Why the Standard Menu Doesn’t Include Stocks
Federal law requires 401k plan sponsors to act as fiduciaries and to diversify plan investments to minimize the risk of large losses.1Office of the Law Revision Counsel. 29 USC 1104 – Fiduciary Duties Most employers meet that duty by building a menu of 15 to 30 options — typically mutual funds, target-date funds, and collective investment trusts — that offer broad market exposure. Individual stocks concentrate risk in one company, so plan sponsors usually leave them out of the standard lineup. The absence isn’t a legal ban on stock trading; it’s the plan’s risk management showing through.
Check Whether Your Plan Has a Brokerage Window
A self-directed brokerage account, sometimes called a brokerage window or brokerage link, is a sub-account inside your 401k that connects to a third-party brokerage firm. Through it you can buy thousands of individual stocks and ETFs listed on public exchanges.2Internal Revenue Service. Retirement Topics – Participant-Directed Accounts
The legal safe harbor that lets employers offer this is 29 U.S.C. § 1104(c), also known as ERISA Section 404(c). When a plan lets you direct your own investments, the fiduciary isn’t liable for losses from your choices.3Office of the Law Revision Counsel. 29 USC 1104 – Fiduciary Duties
Not every plan has this feature. Plans that do often cap how much of your balance can move into it, and the most common cap is 50 percent of the account.4U.S. Department of Labor. Understanding Brokerage Windows in Self-Directed Retirement Plans Log in to your plan’s website or ask your benefits administrator whether the window exists and what limits apply.
Setting Up the Sub-Account
If the window is available, opening it usually takes a few steps:
- Request the self-directed brokerage account (SDBA) acknowledgment form from your plan administrator. It typically includes a waiver confirming you understand the risks and that your employer isn’t responsible for your investment outcomes.
- Provide your plan ID and Social Security number so the brokerage firm can link the sub-account to your existing 401k balance.
- Keep a minimum cash balance in your core 401k account, commonly $1,000 to $2,500, before you can transfer money into the window.
- Move money in by selling shares of existing plan holdings or redirecting future contributions. Mutual fund redemptions may take one to two business days to settle as available cash.
Some plans charge monthly maintenance fees for the brokerage window, ranging from nothing at some providers to $15 or more per month. Review the fee schedule before you enroll.
What You Can and Cannot Trade
Once funds settle in the sub-account, you place trades much as you would in any brokerage account: enter a ticker, choose a market or limit order, and specify shares or a dollar amount. Most major firms now charge $0 commissions on online stock and ETF trades, though a few plans still carry per-trade fees. U.S. stock trades settle on a T+1 basis — one business day after the trade date.5SEC Office of Investor Education and Advocacy. New T+1 Settlement Cycle – What Investors Need to Know
Several categories are off-limits inside a 401k, even with a brokerage window:
- Collectibles. Under 26 U.S.C. § 408(m), buying a collectible in a participant-directed retirement account is treated as an immediate taxable distribution. That covers artwork, rugs, antiques, gems, stamps, most coins (with narrow exceptions for certain U.S. Mint gold and silver coins), and alcoholic beverages, plus anything else the IRS designates as a collectible.6Office of the Law Revision Counsel. 26 USC 408 – Individual Retirement Accounts7Internal Revenue Service. Investments in Collectibles in Individually Directed Qualified Plan Accounts
- Margin borrowing. Retirement accounts don’t allow full margin, so you can’t borrow against your holdings to fund trades.
- Short selling. Betting a stock will fall by selling shares you don’t own requires a margin account and isn’t permitted.
- Naked options. Writing uncovered options contracts is prohibited. Some plans allow covered calls or cash-secured puts, but that varies.
- Self-dealing. Under 26 U.S.C. § 4975, you can’t use your 401k to buy from or sell to your employer (outside of legitimate employer stock programs) or engage in other transactions with disqualified persons, which include plan fiduciaries, service providers, and certain family members.8Office of the Law Revision Counsel. 26 USC 4975 – Tax on Prohibited Transactions
How Trades Are Taxed Inside the Plan
A qualified 401k plan holds its assets in a trust that is exempt from federal income tax under 26 U.S.C. § 501(a).9Office of the Law Revision Counsel. 26 USC 401 – Qualified Pension, Profit-Sharing, and Stock Bonus Plans Because the trust itself is tax-exempt, everything that happens inside the account happens in a tax-free environment. Buy a stock, sell it a week later for a gain, collect a dividend — none of it triggers a tax event. You won’t receive a Form 1099-B for the sale or a 1099-DIV for the dividend, and no capital gains tax is owed no matter how often you trade.
The other side of that coin: losses inside the plan have no tax benefit. You can’t use a stock sold at a loss in your 401k to reduce your tax bill.
The Wash Sale Trap That Reaches Into Your 401k
Trades inside your 401k don’t create taxable events, but they can still spoil a tax move you made in a regular brokerage account. Under 26 U.S.C. § 1091, if you sell a stock at a loss and buy a substantially identical security within 30 days in any account you control, the loss is disallowed.10Office of the Law Revision Counsel. 26 USC 1091 – Loss From Wash Sales of Stock or Securities
The IRS confirmed in Revenue Ruling 2008-5 that this rule reaches into retirement accounts. A taxpayer who sold stock at a loss in a taxable account and bought the same stock in an IRA the next day lost the deduction, and the basis in the retirement account was not increased to make up for it.11IRS.gov. Revenue Ruling 2008-5 – Loss From Wash Sales of Stock or Securities The same logic applies to a 401k brokerage window. If you’re harvesting a loss in your taxable account, wait at least 31 days before buying the same stock inside your 401k.
Taxes and Penalties When You Withdraw
Tax deferral ends when money leaves the plan. Under 26 U.S.C. § 402(a), any amount distributed from a qualified 401k trust is taxable to you as ordinary income in the year you receive it.12Office of the Law Revision Counsel. 26 USC 402 – Taxability of Beneficiary of Employees Trust Stock gains that would have qualified for long-term capital gains rates in a taxable account are taxed at your ordinary income rate on the way out.
Withdrawals before age 59½ also carry a 10 percent early distribution penalty under 26 U.S.C. § 72(t), on top of ordinary income tax.13Office of the Law Revision Counsel. 26 USC 72 – Annuities, Certain Proceeds of Endowment and Life Insurance Contracts Exceptions cover distributions after separation from service at age 55 or older, disability, death, qualified domestic relations orders, and a few other narrow situations. Generally, you can receive a distribution upon reaching age 59½, separating from your employer, becoming disabled, or when the plan terminates.14Internal Revenue Service. 401(k) Resource Guide – Plan Participants – General Distribution Rules
If you’re taking a cash distribution and hold individual stocks in the brokerage window, you usually need to sell those positions and convert them to cash first, though some plans and IRA rollovers allow in-kind transfers.
Required minimum distributions start at age 73, or the year you retire if later. You have to satisfy the RMD each year even if your brokerage window holds stocks you’d rather not sell; you can generate the cash from other holdings in the plan, but the total has to hit the minimum. Missing an RMD triggers a 25 percent excise tax on the shortfall, reduced to 10 percent if you correct it within two years.15Internal Revenue Service. RMD Comparison Chart – IRAs vs. Defined Contribution Plans
Contribution Limits Still Apply
Money you move into the brokerage window comes from the same pool as the rest of your 401k, so trading stocks doesn’t give you additional room to contribute. For 2026, the IRS set the employee elective deferral limit at $24,500. If you’re 50 or older, you can add $8,000 in catch-up contributions, and a higher $11,250 super catch-up applies if you’re between 60 and 63.16Internal Revenue Service. 401(k) Limit Increases to $24,500 for 2026, IRA Limit Increases to $7,500 Employer matching doesn’t count toward those limits.