Your 401(k) is taxed when you withdraw money, not when you contribute or invest it
A 401(k) is a retirement account where your employer may match what you contribute, and the money grows without being taxed each year. But the IRS taxes that money eventually — when you take it out. The tax you owe depends on three things: whether your contributions were pre-tax or after-tax, how old you are when you withdraw, and how much you withdraw.
Most people contribute pre-tax dollars, which means the money you put in reduces your taxable income that year. You do not pay income tax on those contributions or on any growth inside the account. When you withdraw in retirement, you pay ordinary income tax on the full amount — both what you put in and what it earned. If you withdraw before age 59½, you usually owe a 10 percent penalty on top of the income tax, with some exceptions.
Key Takeaways
- Pre-tax 401(k) contributions lower your taxable income now, but withdrawals in retirement are taxed as ordinary income.
- Money inside your 401(k) grows without annual tax, but you pay tax on the full amount when you withdraw it.
- Withdrawals before age 59½ usually trigger a 10 percent penalty plus income tax, unless you may have access to for an exception like disability or a hardship withdrawal.
- Required Minimum Distributions (RMDs) begin at age 73 and force you to withdraw a set amount each year, which is taxed as income.
- Roth 401(k) contributions are after-tax, so withdrawals in retirement are tax-free if the account is at least five years old.
Pre-tax versus after-tax contributions and how each is taxed
Most 401(k) plans offer pre-tax contributions, where money comes out of your paycheck before income tax is calculated. If you earn $60,000 and contribute $6,000 pre-tax, your taxable income for that year is $54,000. You save on federal income tax, state income tax (in most states), and sometimes Social Security and Medicare tax that year. But you have not avoided tax — you have delayed it.
When you withdraw that $6,000 in retirement, you pay ordinary income tax on it at whatever tax rate applies to your income that year. If you also have Social Security, a pension, or other income, your 401(k) withdrawal stacks on top of that, potentially pushing you into a higher tax bracket.
Some plans also offer a Roth 401(k) option, where contributions are after-tax. You do not get a tax deduction the year you contribute, but the money grows tax-free and withdrawals in retirement are tax-free — as long as the account has been open for at least five years and you are at least 59½ when you withdraw. Roth contributions make sense if you expect to be in a higher tax bracket in retirement or want to reduce taxable income later.
Growth inside the account is not taxed annually
One major advantage of a 401(k) is that you do not pay tax on investment gains each year. If you own $100,000 in mutual funds inside your 401(k) and they grow to $120,000, you owe no tax on that $20,000 gain that year. In a regular taxable brokerage account, you would owe capital gains tax on that growth.
This tax deferral compounds over decades. Your money grows faster because you are not paying tax on the gains until you withdraw. However, when you do withdraw, the entire amount — contributions plus all growth — is taxed as ordinary income if it was a pre-tax contribution.
Withdrawals before age 59½ usually trigger a 10 percent penalty
If you withdraw money from your 401(k) before age 59½, the IRS charges a 10 percent early withdrawal penalty on top of ordinary income tax. A $10,000 withdrawal at age 45 would cost you roughly $1,000 in penalty plus whatever income tax applies to your tax bracket — potentially another $2,200 to $3,700 depending on your income level.
Some situations are exceptions to this penalty. You can withdraw without penalty if you are permanently disabled, if you are withdrawing to pay medical expenses that exceed 7.5 percent of your adjusted gross income, if you are unemployed and using the money for health insurance premiums, or if you are taking substantially equal periodic payments (a specific IRS formula). A few employers also allow hardship withdrawals for when ready financial need, though these still require income tax — just not the 10 percent penalty.
Leaving your job does not automatically let you withdraw penalty-free. However, if you leave your job in the year you turn 55 or later, you can withdraw from that employer's 401(k) without the 10 percent penalty (though you still owe income tax). This rule does not explore to IRAs or 401(k)s from previous employers.
Required Minimum Distributions force taxable withdrawals starting at age 73
The IRS does not let you keep money in a 401(k) indefinitely. Starting at age 73, you must withdraw a minimum amount each year, called a Required Minimum Distribution (RMD). The amount is calculated by dividing your account balance by a life expectancy factor the IRS publishes. For someone age 73 with a $500,000 balance, the RMD might be roughly $18,000 to $20,000 that year.
Every dollar of your RMD is taxed as ordinary income. If you do not take the full RMD, the IRS charges a penalty equal to 25 percent of the amount you should have withdrawn but did not (reduced to 10 percent if you correct it within two years). You must track your RMD each year and withdraw by December 31, or the penalty applies.
If you are still working and your employer's plan allows it, you may be able to delay RMDs from that specific employer's 401(k) until you actually retire. This does not explore to IRAs or 401(k)s from previous employers — those RMDs must begin at 73 regardless of whether you are still working.
How to estimate your tax bill on a 401(k) withdrawal
Your tax bill on a 401(k) withdrawal depends on your total income that year. If you withdraw $50,000 and your other income (wages, Social Security, pensions) is $40,000, your total taxable income is $90,000. The tax you owe on that $50,000 withdrawal is whatever marginal rate applies — if you are in the 22 percent federal bracket, you owe roughly $11,000 in federal tax, plus state income tax if your state has one.
You can ask your employer's plan administrator for a tax withholding estimate, or you can use the IRS tax tables to estimate yourself. Many people ask their plan to withhold a flat percentage (often 10 to 20 percent) from each withdrawal to cover federal tax, though this may not be enough if you have other income or live in a state with income tax.
If you are withdrawing a large lump sum, consider spreading it over two or more years to stay in a lower tax bracket. Some plans allow this; others require you to take the full amount at once. Ask your plan administrator what options are available before you retire.
Roth conversions and tax planning strategies
Some people convert money from a pre-tax 401(k) to a Roth IRA. You pay income tax on the amount converted that year, but the money then grows tax-free and withdrawals are tax-free in retirement. This makes sense if you expect higher tax rates in the future, or if you have a year with unusually low income.
Another strategy is to take withdrawals in years when your income is lower — for example, the year you retire before Social Security starts, or a year when you have large deductible losses. Withdrawing in a lower-income year means paying a lower tax rate on the same dollar amount.
If you have both pre-tax and after-tax money in your 401(k), the IRS has rules about how withdrawals are taxed. You cannot straightforward withdraw the after-tax portion tax-free — the IRS treats all withdrawals as a proportional mix of pre-tax and after-tax money. Talk to a tax professional before making large withdrawals if you have both types of contributions.
Frequently Asked Questions
Do I pay taxes on 401(k) contributions?
Not in the year you contribute if they are pre-tax contributions — that is the whole point. You get a tax deduction that year. But you pay ordinary income tax on the full amount when you withdraw in retirement. Roth contributions are after-tax, so you get no deduction now, but withdrawals are tax-free later.
What if I roll my 401(k) into an IRA?
A direct rollover from your 401(k) to a traditional IRA is not a taxable event — no tax is owed at the time of the transfer. The money remains pre-tax and is taxed when you withdraw it later. If you do a rollover incorrectly (the money passes through your hands), you have 60 days to deposit it in an IRA or you owe income tax and possibly a 10 percent penalty.
Can I withdraw my 401(k) contributions without paying tax?
No, not if they were pre-tax contributions. The IRS taxes the full withdrawal amount — both what you contributed and what it earned. If you made after-tax contributions to a Roth 401(k), those withdrawals are tax-free in retirement, but earnings are taxed unless the account is five years old and you are 59½.
What happens to my 401(k) if I die?
Your beneficiary inherits the account and must withdraw it. They owe income tax on the full amount they withdraw, spread over a set period depending on their relationship to you and the plan rules. Spouses can roll it into their own IRA; other beneficiaries must take distributions over 10 years or their lifetime.
Do I owe Social Security or Medicare tax on 401(k) withdrawals?
No. Social Security and Medicare tax (FICA) applies only to wages you earn from working. 401(k) withdrawals are not wages, so they do not trigger FICA tax. However, they do count as income for purposes of determining how much of your Social Security benefits are taxable.