The largest U.S. bank by assets, whose results are often seen as a barometer of the economy, has benefited from a tax windfall and a strong economy that has led to higher interest rates and kept loan defaults in check.

All four of JPMorgan's main businesses recorded a rise in revenue, with the consumer banking unit notching the biggest jump in revenue due to a healthy appetite for borrowing. Trading was the only weak spot in the results.

Chief Executive Jamie Dimon praised President Donald Trump's tax cuts and deregulatory efforts, but cautioned on inflation and "geopolitical issues bursting all over the place."

"The U.S. and the global economy continue to show strength, despite increasing economic and geopolitical uncertainties, which at some point in the future may have negative effects on the economy," Dimon said.

JPMorgan shares fell 2 percent late Friday afternoon. Worries about lacklustre trading and weak loan growth have weighed on bank stocks this year, with the S&P Financial index <.SPSY> falling about 5 percent and underperforming the broader S&P 500.

JPMorgan is the best performing stock among the big six U.S. banks. Including losses from the market carnage over the past two days that saw the Dow Jones Industrial Average drop more than 1,300 points, the stock is the only one among the big banks to be in positive territory for the year.

The bank's average core loan book rose 6 percent in the third quarter and outperformed Citigroup 4 percent growth even as higher rates crimped borrowing in areas such as mortgage loans.

Trading revenue fell 2.5 percent amid an escalating trade war between Beijing and Washington and worries about slowing global growth.

Bond trading revenue fell 10 percent - in sharp contrast to Citigroup 9 percent increase - while equity trading revenue was up 17 percent.

JPMorgan's total revenue rose 5.2 percent to $27.82 billion (£21.2 billion). Net income rose 24.5 percent to $8.38 billion, or $2.34 per share. Analysts had expected earnings of $2.25 per share, according to I/B/E/S data from Refinitiv.

"Everything looks nice and steady for JPMorgan," Octavio Marenzi, CEO of capital markets management consultancy Opimas said. "This portends well for the rest of the US banking industry."

Net interest income - the difference between what the bank earns on loans and pay on deposits - rose 7 percent to $14.1 billion as the U.S. Federal Reserve raised rates four times since the third quarter of last year, bringing it to 2.25 percent.

JPMorgan's non-interest expenses were $15.6 billion, up 7.2 percent. Analysts had expected about $15.7 billion of expenses in the quarter.

Operating costs have risen across the industry as banks are spending more on technology and expanding their business amid a strengthening economy.

(Reporting by Sweta Singh in Bengaluru and David Henry in New York; Editing by Saumyadeb Chakrabarty)

By Sweta Singh and David Henry