A 401(k) is a prime way to build wealth, but there are plenty of pitfalls to watch for.

Anytime money is withdrawn from the account before the age of 59.5, a 10% penalty typically applies. 

"If you look at the mistake millenials make, one out of three, when they leave their [job], cash out the 401k plan," said David Bach, founder of AE Wealth Management and a panelist on TheStreet's Investing Strategies for Millennials webinar. "If you want to destroy your retirement plan, leave your company and cash out it out."

Check out our entire millennial investing roundtable here.

More from Video

Rewind: Jim Cramer's Reveals His Concern About Earnings Season

Rewind: Jim Cramer's Reveals His Concern About Earnings Season

Market of the Week: E-mini S&P 500

Market of the Week: E-mini S&P 500

China's Landmark Day Headlines An Earnings Bonanza: What to Watch This Week

China's Landmark Day Headlines An Earnings Bonanza: What to Watch This Week

Tinley CEO Jeff Maser Breaks Down the Beverage Industry

Tinley CEO Jeff Maser Breaks Down the Beverage Industry

Should Yahoo Finance Be Afraid of the Big, Bad Apple? Jim Cramer Says Yes

Should Yahoo Finance Be Afraid of the Big, Bad Apple? Jim Cramer Says Yes