One of the most important questions you face when changing jobs is what to do with the money in your 401(k) because making the wrong move could cost you thousands of dollars or more in taxes and lower returns.

Let’s say you work five years at your current job. For most of those years, you’ve had the company take a set percentage of your pretax salary and put it into your 401(k) plan. Now that you’re leaving, what should you do?

The first rule of thumb is to leave it alone. You have 60 days to decide whether to roll it over or leave it in the account. Resist the temptation to cash out. The worst thing an employee can do when leaving a job is to withdraw the money from their 401(k) plans and put it in their bank account. Here’s why:

If you decide to have your distribution paid to you, the plan administrator will withhold 20 percent of your total for federal income taxes, so if you had $100,000 in your account and wanted to cash it out, you’re already down to $80,000.

Furthermore, if you’re younger than 59 1/2, you’ll face a 10 percent penalty for early withdrawal come tax time. Now you’re down another 10 percent from the top line to $70,000.

If you separate from service during or after the year you reach age 55 (age 50 for public safety employees of a state, or political subdivision of a state, in a governmental defined benefit plan), there is an exception to the 10 percent early withdrawal tax penalty. This rule only applies to 401(k) plans. IRA, SEP, SIMPLE IRAs, and SARSEP Plans do not qualify for the exception.

In addition, because distributions are taxed as ordinary income, at the end of the year, you’ll have to pay the difference between your tax bracket and the 20 percent already taken out. For example, if you’re in the 32 percent tax bracket, you’ll still owe 12 percent, or $12,000, which lowers the amount of your cash distribution to $58,000.

But that’s not all. You also might have to pay state and local taxes. Between taxes and penalties, you could end up with little over half of what you saved, short-changing your retirement savings significantly.

What Are the Alternatives?

If your new job offers a retirement plan, the easiest course of action is to roll your account into the new plan before the 60-day period ends. A “rollover” is relatively painless to do. Contact The 401(k) plan administrator at your previous job should have all the necessary forms.

The best way to roll funds over from an old 401(k) plan to a new one is to use a direct transfer. With the direct transfer, you never receive a check, you avoid all the taxes and penalties mentioned above, and your savings will continue to grow tax-deferred until you retire.

Many employers require that you work a minimum length of time before you can participate in a 401(k). If that is the case, one solution is to keep your money in your former employer’s 401(k) plan until the new one is available. Then you can roll it over into the new plan. Most plans let former employees leave their assets several months in the old plan.

60-Day Rollover Period

If you have your former employer make the distribution check out to you, the Internal Revenue Service considers this a cash distribution. The check you get will have 20 percent taken out automatically from your vested amount for federal income tax.

But don’t panic. You have 60 days to roll over the lump sum (including the 20 percent) to your new employer’s plan or into a rollover individual retirement account (IRA). Then you won’t owe the additional taxes or the 10 percent early withdrawal penalty.

If you’re not happy with the fund choices your new employer offers, you might opt for a rollover IRA instead of your company’s plan. You can then choose from hundreds of funds and have more control over your money. But again, to avoid the withholding hassle, use direct rollovers.

Leave It Alone

If your vested account balance in your 401(k) is more than $5,000, you can usually leave it with your former employer’s retirement plan. Your lump sum will keep growing tax-deferred until you retire.

However, if you can’t leave the money in your former employer’s 401(k) and your new job doesn’t have a 401(k), your best bet is a direct rollover into an IRA. The same applies if you’ve decided to go into business for yourself.

Once you turn 59 1/2, you can begin withdrawals from your IRA without penalty, and your withdrawals are taxed as ordinary income. The IRS “Rule of 55” allows you to withdraw funds from your 401(k) or 403(b) without a penalty at age 55 or older.

With both a 401(k) and an IRA, you must begin taking required minimum distributions (RMDs) when you reach age 73, whether you’re working or not. As a reminder, beginning in 2023, the SECURE 2.0 Act raised the age that you must begin taking RMDs to age 73. If you reach age 72 in 2023, the required beginning date for your first RMD is April 1, 2025, for 2024.

Questions about IRA rollovers? Help is just a phone call away.