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

Here Is Your Market Playbook During This Tariff-Driven Selloff

Here Is Your Market Playbook During This Tariff-Driven Selloff

Marriott CEO on Tax Cuts, Trade War Worries and China's Economy

Marriott CEO on Tax Cuts, Trade War Worries and China's Economy

These 12 Stocks Are Looking Gloomy as Trump Fuels Trade War Fears

These 12 Stocks Are Looking Gloomy as Trump Fuels Trade War Fears

What Angela Merkel's Uncertain Political Future Means for Greece's Debt Woes

What Angela Merkel's Uncertain Political Future Means for Greece's Debt Woes

Jim Cramer: 4 Stocks Could Get Throttled By a 'Knock Down Drag Out' With China

Jim Cramer: 4 Stocks Could Get Throttled By a 'Knock Down Drag Out' With China