NEW YORK (Reuters) - U.S. bank executives and investors expect a long-term boost from the new federal tax code, but the biggest lenders will first need to book multi-billion-dollar charges that will muddle fourth-quarter results.

Lower Manhattan including the financial district is pictured from the Manhattan borough of New York, U.S. June 1, 2016. REUTERS/Carlo Allegri/File Photo

Banks will adjust deferred tax assets and liabilities to account for a lower corporate rate, and also take charges related to other tax changes. But analysts said the overall benefit from lower taxes will make up for any short-term hit.

Citigroup Inc C.N could report a quarterly loss of more than $15 billion and Goldman Sachs Group Inc GS.N will likely have lost about $3 billion, based on analyst estimates and recent profit warnings.

JPMorgan Chase & Co, JPM.N which reports first on Friday morning, could show a 35 percent plunge in net income from a year earlier. Bank of America Corp BAC.N, which reports the following Wednesday, could show a 50 percent drop.

“It is no doubt going to be a messy quarter,” said Jason Goldberg, bank stock analyst at Barclays.

Citigroup is expected to take a $20 billion charge, largely because its losses during the 2007-2009 financial crisis will offset future taxes less now that the corporate tax rate has been cut to 21 percent from 35 percent.

Goldman is expected to take a $5 billion charge, mostly due to a new repatriation tax on income kept outside of the United States.

Meanwhile, banks with deferred tax liabilities will be able to write those down thanks to the lower tax rates.

DELETE

In an extreme case, Wells Fargo & Co WFC.N is expected to report a $2.5 billion boost to its bottom line largely because it will owe less tax in the future on income from a set of businesses including mortgage servicing.

But most analysts and institutional investors brush aside big one-time items, viewing them as accounting charges that reveal little about underlying financial performance or future profits.

Instead, they are confident that big banks will be largely better off from paying a lower tax rate. Still, just how much each bank will benefit will vary based on where they earn their income.

Bank of America could earn $4.5 billion, or 19 percent, more in 2019 than it would have without the lower rates, said Keefe, Bruyette & Woods analyst Brian Kleinhanzl. That would more than cover an expected $3 billion fourth-quarter charge.

But Citigroup might get a profit pickup in 2019 of only $1.7 billion, or 11 percent, Kleinhanzl said. That would be far less than the $19.7 billion he expects in total fourth-quarter charges.

Bank of America earns about 90 percent of its income in the United States, according to estimates by analyst Richard Ramsden of Goldman Sachs. Citigroup, meanwhile, has been getting only about 50 percent of its earnings at home, so will not benefit as much from lower U.S. tax rates.

Analysts plan to push executives in conference calls for clues about whether investors will benefit as much as they hope.

Banks could provide a boon by putting more money toward stock buybacks and dividends. But there is worry they will be too quick to shift those dollars towards trying to beat competitors with lower prices on loans and better services for customers.

“Banks benefit from a lower corporate tax rate,” said Barclays’ Goldberg, “but what will they do (with the extra money)?”