Skip to main content

HomeAll guides

How 401(k) Contributions and Withdrawals Are Taxed

Tax treatment depends on which type of 401(k) you have

A traditional 401(k) and a Roth 401(k) are taxed at opposite ends of the timeline. With a traditional 401(k), you pay no tax when the money goes in, but you pay income tax on every dollar you withdraw in retirement. With a Roth 401(k), you pay income tax on the money before it enters the account, but withdrawals in retirement are tax-free. The type of account you have determines when the IRS collects its share.

Your employer's plan documents will tell you which type or types your workplace offers. Many employers offer both, and you can split your contributions between them in the same year. The tax treatment is locked in by account type, not by your choice each year.

Key Takeaways

  • Traditional 401(k) contributions reduce your taxable income in the year you make them, but withdrawals in retirement are taxed as ordinary income.
  • Roth 401(k) contributions are made with after-tax dollars, but may have access to withdrawals in retirement are completely tax-free.
  • You must be age 59½ to withdraw from either account without a 10 percent early withdrawal penalty, with narrow exceptions.
  • Required minimum distributions (RMDs) begin at age 73 for traditional 401(k)s and are taxed as ordinary income; Roth 401(k)s have RMDs during your lifetime but withdrawals are tax-free.

How traditional 401(k) taxes work during your working years

When you contribute to a traditional 401(k), the money comes out of your paycheck before federal income tax is calculated. This means your taxable income for the year is reduced by the amount you contribute. If you earn $60,000 and contribute $7,000 to a traditional 401(k), you report only $53,000 as taxable income to the IRS.

You still pay Social Security and Medicare taxes (FICA) on the full $60,000. The income tax reduction applies only to federal and state income tax, depending on your state's rules. Your employer withholds less income tax from your paycheck because your reported income is lower.

This tax reduction happens every year you contribute. The money grows inside the account without any tax on the gains, dividends, or interest earned. You do not report this growth on your tax return while the money remains in the account.

How traditional 401(k) taxes work in retirement

When you withdraw money from a traditional 401(k) in retirement, the full amount of each withdrawal is taxed as ordinary income in that year. If you withdraw $40,000 from your traditional 401(k) in a given year, you add $40,000 to your taxable income for that year. The IRS taxes it at your marginal tax rate — the same rate applied to your other income.

Your 401(k) plan administrator will withhold federal income tax from your withdrawal unless you tell them not to. The withholding is an estimate; you may owe more or less when you file your tax return. State income tax withholding depends on your state and your plan's rules.

The size of your withdrawal affects your tax bracket for that year. A large withdrawal might push you into a higher tax bracket, meaning you pay a higher rate not just on the withdrawal but on some of your other income too. This is why some people spread withdrawals across multiple years or coordinate them with other income sources.

How Roth 401(k) taxes work during your working years

Roth 401(k) contributions are made with money that has already been taxed. Your employer does not reduce your taxable income by the amount you contribute. If you earn $60,000 and contribute $7,000 to a Roth 401(k), you still report $60,000 as taxable income to the IRS.

You pay income tax on the full $60,000 in the year you make the contribution. The $7,000 comes out of your after-tax pay. Like a traditional 401(k), the money grows inside the account without any annual tax on gains, dividends, or interest.

The trade-off is that you pay tax now instead of later. This makes sense if you expect to be in a higher tax bracket in retirement, or if you want to reduce the size of your taxable income in retirement for other reasons (such as keeping Medicare premiums lower).

How Roth 401(k) taxes work in retirement

Withdrawals from a Roth 401(k) in retirement are tax-free if the account has been open for at least five years and you are age 59½ or older. This means you withdraw the money and owe no federal income tax on it. The five-year rule is per account; if you have multiple Roth 401(k)s, each one has its own five-year clock.

If you withdraw before age 59½ or before the five-year period ends, the earnings portion of your withdrawal is taxed as ordinary income and subject to a 10 percent early withdrawal penalty. The contributions themselves can be withdrawn tax-free and penalty-free at any time. Your plan administrator can tell you how much of your balance is contributions versus earnings.

Because Roth withdrawals are tax-free, they do not increase your taxable income for the year. This can be valuable in retirement if you want to keep your income below certain thresholds that affect Medicare premiums, Social Security taxation, or other benefits.

Early withdrawal penalties and exceptions

If you withdraw from either type of 401(k) before age 59½, you owe a 10 percent early withdrawal penalty on the amount withdrawn, in addition to income tax. A $10,000 withdrawal at age 50 costs you $1,000 in penalty plus income tax on the full $10,000.

The IRS allows penalty-free withdrawals in specific situations: permanent disability, a series of substantially equal periodic payments (SEPP), medical expenses that exceed 7.5 percent of your adjusted gross income, health insurance premiums while unemployed, and a few others. The rules for each exception are strict. For example, SEPP requires you to take the same amount every year for five years or until age 59½, whichever is longer; breaking this schedule triggers the penalty retroactively.

Roth 401(k) contributions can always be withdrawn penalty-free and tax-free, regardless of age or account age. Only the earnings portion is subject to the early withdrawal penalty and tax.

Required minimum distributions and taxes

Starting at age 73, you must withdraw a minimum amount from a traditional 401(k) each year, calculated by the IRS using your age and account balance. This is called a required minimum distribution (RMD). The amount is taxed as ordinary income. If you do not take the full RMD, you owe a 25 percent penalty on the amount you failed to withdraw (reduced to 10 percent if you correct it within two years).

Roth 401(k)s also have RMDs during your lifetime, calculated the same way. However, the withdrawals are tax-free if the five-year rule is met. After your death, beneficiaries of either type must follow different RMD rules depending on their relationship to you and the account type.

You can satisfy your RMD by withdrawing the money yourself, or your plan can distribute it automatically. Some plans allow you to transfer a traditional 401(k) to an IRA, which may offer more flexibility in how you take RMDs, though the tax treatment remains the same.

Frequently Asked Questions

Do I pay taxes on 401(k) employer matching contributions?

Employer matching contributions to a traditional 401(k) are treated the same as your own contributions: they reduce your taxable income in the year they are made, and you pay income tax on them when you withdraw in retirement. Matching contributions to a Roth 401(k) are made with after-tax dollars by the employer and follow Roth tax rules for withdrawals.

What happens to my 401(k) taxes if I change jobs?

You can roll a traditional 401(k) to a traditional IRA or to your new employer's plan without triggering taxes, as long as the money moves directly between accounts. A Roth 401(k) can be rolled to a Roth IRA or Roth account at your new employer. If you take the money as a check, you have 60 days to deposit it or you owe income tax and a 10 percent penalty on the full amount.

Can I convert a traditional 401(k) to a Roth 401(k)?

Some plans allow in-plan Roth conversions, which let you move money from a traditional 401(k) to a Roth 401(k) within the same plan. You pay income tax on the amount converted in that year. Not all plans offer this option; check your plan documents or ask your plan administrator.

How does a 401(k) withdrawal affect my Social Security taxes?

A large 401(k) withdrawal can increase your combined income, which may cause up to 85 percent of your Social Security benefits to become taxable. This depends on your total income from all sources. Roth withdrawals do not count toward this calculation, which is one reason some people prefer Roth accounts in retirement.

This guide is for general information only and is not medical, financial, legal, or other professional advice. For decisions specific to your situation, consult a qualified professional. See our Editorial Policy.