You can avoid paying surprise taxes by picking the best investment accounts. Here's how

When building a portfolio, you need to weigh the location of your assets to avoid surprise taxes. Here's what to consider, according to experts.

You can avoid paying surprise taxes by picking the best investment accounts. Here's how

dowell | Moment | Getty Images

If you're looking for ways to trim your yearly tax bill, experts may check your portfolio, since some assets are more likely to trigger taxes in certain accounts.

Your 401(k) account offers tax-deferred growth, meaning you won't owe levies on yearly income, such as dividends and capital gains.

By contrast, you may owe taxes for selling assets or receiving income in a brokerage account, which may be a surprise for some investors.

More from Personal Finance:
Biden administration making big change to student loan repayment
Medicare expenses in retirement could top $383,000 for a couple
This entrepreneur built a $3 million business buying cars at auctions

"I definitely take that into consideration when I'm designing portfolios for clients," said JoAnn May, a certified financial planner at Forest Asset Management in Berwyn, Illinois. "I always keep the taxability of assets in mind when strategizing where things are going to go."

If you have three types of accounts — brokerage, tax-deferred and tax-free — you can pick the best spot for each asset, said May, who is also a certified public accountant. 

Since bonds may have less growth but distribute income, they may be suitable for tax-deferred accounts like your 401(k) plan, she said, and investments most likely to appreciate may be ideal for tax-free accounts, like a Roth individual retirement account.

Biden's billionaire tax gains traction at the state level

However, if you don't have the three account options, there may be other opportunities for tax efficiency, May said.

For example, if you have a large enough bond portfolio, you may have to put some assets in a brokerage account. But depending on your income, you may consider municipal bonds, she suggested, which generally avoid federal levies and possibly state and local taxes on interest. 

Other assets to avoid in a brokerage account are real estate investment trusts, or REITs, which must distribute 90% of taxable income to shareholders, said Mike Piper, a CPA at the firm in his name in St. Louis.

"If you have to have [funds] in taxable accounts, you want to make sure it's generally something with low turnover," he said.

Exchange-traded funds or index funds generally spit off less income than actively-managed mutual funds, which typically have year-end payouts.

Of course, taxes aren't the only factor when deciding where to keep your assets. You'll also need to consider your goals and timeline.

There's a tax risk for all-in-one funds

Bymuratdeniz | E+ | Getty Images

Another investment that's better suited in tax-deferred or tax-free accounts is all-in-one funds, which attempt to create a whole portfolio, such as target-date funds, an age-based retirement asset.   

Since all-in-one funds contain different types of assets, there's no ability to put certain portions, such as bonds spitting off income, into a more tax-efficient spot, Piper explained.  

These investments also limit your ability to use tax-loss harvesting, or sell assets at a loss to offset gains, because you can't change the underlying holdings, he said. 

For example, let's say your all-in-one fund has U.S. stocks, international stocks and bond funds. If there's a dip in domestic stocks, you can't harvest those losses by selling only that portion, whereas you may have that choice if you own each fund individually.

You may also see excess turnover from the underlying funds, creating capital gains that may be taxed at regular income rates, depending on the length of ownership.   

"They're really just not a great fit for taxable accounts," Piper added.