Here’s how much you should have saved by 40

Here's how much you should save at every age

By the time you reach the big 4-0, you should have a nice chunk of change put away for the future.

Experts recommend having the equivalent of three times your annual salary in the bank by 40 if you plan to retire at 67 and live a similar lifestyle, according to a recent report by financial services company Fidelity.

That's up from the amount you should have socked away by 35, which is double your salary.

And that's a lot to have saved, especially considering that few Americans are on track to reach these goals. The median amount of retirement savings for working-age families in the U.S., those ages 32 to 61, is just $5,000. Additionally, 35 percent of all adults in the U.S. have only several hundred dollars in their savings accounts and 34 percent have zero, according to a 2016 GOBankingRates survey.

Hero Images | Getty Images

How do you get to triple your salary? Save as much as you can as early as you can. Fidelity recommends putting away 15 percent of your income per year starting at age 25 and investing more than 50 percent of your savings over your lifetime.

"The good news is that that 15 percent also includes any employer match," Ken Hevert, senior vice president of retirement at Fidelity, tells CNBC Make It. That means if you're eligible for a 5 percent match on your 401(k) plan and you contribute 5 percent of your salary to the account, you're already putting away 10 percent.

Three big factors determine if you're on track for retirement: amount, account and asset allocation. In addition to saving 15 percent of your income, you should be investing it back into the market. The easiest way to get started is to sign up for your employer's 401(k) plan and take full advantage of any company match, which essentially gives you free money.

25 successful leaders give kids their best money-saving tips

Regardless of whether your employer offers a 401(k), you can contribute to a Roth IRA or traditional IRA, which are both individual retirement accounts that offer tax breaks.

In addition to saving and investing, you also want to create a diversified portfolio. "The purpose of diversification, ultimately, is that through different economic cycles and different policy cycles, some asset classes will perform better than others," Hevert says.

As the market swells and declines over the years, a mix of various types of investments will keep you from being at the mercy of how one specific stock, or kind of stock, is performing.

One woman paid off over $8,000 in credit card debt in 90 days—here's how she did it

Accruing triple your annual income by 40 represents an ideal scenario, especially if you choose to divert savings to other goals, such as buying a home or having kids. But as a general rule, if you're aiming to save around 15 percent of your income — or as close as you can get — and invest it, "you're going to be in the right ballpark," Hevert says.

At the end of the day, how much you'll want to save for retirement will depend on the lifestyle that you want to maintain during your golden years. Do you want to travel? Pursue a hobby? Go back to school? "This is all about giving people the confidence that they're going to be able to maintain a desired lifestyle, while also putting themselves in the best position to not run out of money," Hevert says.

Like this story? Like CNBC Make It on Facebook

Don't miss:

Saved: The case of the $1,100 takeout budget
Related Video
Here's how much you should save at every age