That 401k plan your employer offers as a workplace benefit could be your ticket to riches. Just ask Fritz Gilbert. Saving in a 401(k) made him a millionaire.
Gilbert started setting aside a portion of each paycheck in a 401(k) in 1985. By 2013, he had $1 million saved up. He plans to retire in June 2018 at the age of 55 and never work another day in his life. He's been blogging about his journey to early retirement at The Retirement Manifesto.
Although a recent GOBankingRates survey found that 42 percent of Americans have less than $10,000 saved for retirement, your 401(k) could make you a millionaire if you make the most of it, as Gilbert did.
More from GOBankingRates
What social security will look like in 2035
20 jobs you're most (and least) likely to live paycheck to paycheck
20 hidden sources of income lying around your house
Start saving as soon as possible
When Gilbert got his first job out of college as a customer service representative, his employer gave him the option of saving in a 401(k). "I started saving with my very first paycheck," he said. That's played a key role in his ability to become a 401(k) millionaire.
Gilbert wasn't earning much — just $21,500 a year — so he didn't contribute big bucks to his 401(k) during the early years of his career. But even those small contributions helped his balance grow to $1 million thanks to the power of compound interest. "Those early dollars are the most important because they have the most time to compound," Gilbert said.
Compound interest is interest calculated on the principal (the amount deposited) plus the interest that is earned. For example, you could have $1 million by age 65 if you started investing $188 per month at age 25 and earned 10 percent annually. If you waited until age 35 to start saving, you'd have to invest $507 per month with a 10 percent annual return to have $1 million by age 65.
"It was the earliest contributions that got me to the millionaire status," Gilbert said.
Take advantage of matching employer contributions
Not only did Gilbert get started saving early, but he also contributed enough to get the full 401k matching contribution his employer offered. His employer offered to match 50 cents for every $1 Gilbert contributed up to 6 percent of his pay. So he opted to save 6 percent of each paycheck to get the additional 3 percent contribution from his employer.
"I didn't think of it as a 50 percent return," Gilbert said. But now he knows that contributing enough to get his employer's full matching contribution played a big role in growing his 401(k) to $1 million.
If your employer matches your contribution, you should take advantage of this workplace benefit. After all, it's free money, and it will help you grow your 401(k) faster. For example, if you earn $40,000 a year and contribute just 3 percent of your salary but your employer offers a 50-cent match up to 6 percent of your deferred salary, you're missing out on $600 in free money.
Focus on increasing earnings
There's only so much you can afford to set aside in savings if you're not earning a lot — which was the case for Gilbert when he started his career. Even with compound interest, it would be tough to save $1 million by setting aside 6 percent of a $21,500 annual salary plus a 3 percent employer match.
So Gilbert focused on increasing his earnings to save more. By going above and beyond what was expected of him, Gilbert got pay raises and promotions that doubled his salary in the first five years of his career. That was a much better path to creating wealth than trying to increase his savings rate on a lower salary, he said.
Admittedly, Gilbert said it would be harder now for young adults to see that sort of rapid income growth because of wage stagnation. On the plus side, he said, there are so many ways to increase your income now — including side hustles — that weren't available in the 1980s when he was starting out.
Boost savings with each pay raise
Avoiding lifestyle inflation with each pay raise was key to Gilbert's ability to save $1 million. "I've seen almost everybody as they make more money spend more money," he said. To avoid falling into that trap, he increased his 401(k) contribution with each pay raise.
For example, if he got a 3 percent pay increase, he would increase his 401(k) contribution by 2 percent and take home an extra 1 percent. So he got a slight boost in take-home pay but a bigger boost in his savings rate. "It's a really good way to ramp up your 401(k) without sacrificing your lifestyle," Gilbert said.
If you don't think you can afford to contribute to your 401(k) now, start with your next pay raise, he said. You won't miss the extra money you're setting aside in savings because you're already used to living on your pre-raise income.
Max out 401(k) contributions
By the time Gilbert was in his early 30s, he was contributing the maximum pre-tax amount allowed to his 401(k). Maxing out his contributions as soon as he could afford to helped his balance grow to $1 million. Currently, the maximum you can contribute to a 401(k) from your paycheck before taxes are taken out is $18,500.
Gilbert's employer also allows after-tax contributions to a 401(k) up to a maximum of $50,000. He's been contributing that maximum amount for the past five years, he said, which has helped his balance grow beyond the $1 million mark.
Don't be afraid to make lateral moves in your career
Another way Gilbert increased his earnings was a willingness to make lateral career moves. It sounds counterproductive, but taking positions in his company that didn't always come with a pay increase actually helped him get better promotions down the road.
That's because by moving from department to department, he gained a better understanding of how his company worked. "It was because I made those moves that I was able to get into more senior positions," Gilbert said.
Just keep in mind that changing jobs just for a pay raise isn't always worth it if you lose access to a 401(k) or workplace retirement plan in the process — especially one with an employer match. Check the vesting schedule for your matching contributions to make sure you don't need to stay in your job for a certain period of time to receive what your employer contributed.
Living within in his means has played a key role in Gilbert's ability to become a 401(k) millionaire. When he was starting out, he drove a $500 Subaru and lived in a basement apartment with a roommate. He's continued to live frugally, even after getting married, having a child and climbing the career ladder. That's allowed him to max out his 401(k) contributions to have enough to retire comfortably.
"I would much rather make minor lifestyle adjustments early than make radical lifestyle adjustments later," Gilbert said. "If you can't afford to save, what are you going to do when you're 65 — live on cat food in a mobile home?"
Watch out for 401(k) fees
Retirement plans such as 401(k)s charge fees to cover the cost of administering the plan and managing the plans' investments. "Just like returns compound, fees compound," Gilbert said. The higher the fees, the more they'll eat into your investment returns.
For example, if the fees and expenses on your account are 1.5 percent, your balance will be 28 percent smaller at retirement than if the fees had been just 0.5 percent, according to the U.S. Department of Labor. Gilbert said he's been fortunate because his employer's 401(k) has low fees. If you have a 401(k) with high fees, contribute enough to get your employer's full match if it offers one, Gilbert said. You could then open a Roth IRA with a low-fee investment firm such as Vanguard.
Keep investments simple
To become a 401(k) millionaire, you don't have to get lucky by picking a hot stock that soars. "I've always kept it simple," Gilbert said.
He invested in low-cost mutual funds, primarily stock funds, in his 401(k). If your 401(k) plan offers a target-date fund or index fund, either can be a good place to start. A target-date fund adjusts your holdings of stocks and bonds automatically over time to reduce your risk as you near retirement age. An index fund tracks a major market index, such as the S&P 500, and typically has low fees.
Stay the course
Not only did Gilbert start saving early, but he also continued to set aside money for retirement throughout his career. "I've never gotten a paycheck that I haven't contributed to a 401(k) in 33 years of work," he said.
Even during stock market downturns, he didn't get scared, stop contributing or pull his money out of the market. In fact, he increased his contributions when the stock market fell. "I was high-fiving my wife every day because you're buying cheap," Gilbert said. He took advantage of the drop in prices to buy more shares. That helped his account balance grow more when the market bounced back and played a key role in getting his savings to $1 million.
Like this story? Like CNBC Make It on Facebook.
Don't miss: Here's where the ultra-rich live around the world