Bank of America reported a 27% year-on-year jump in second-quarter net income to $9.1bn, driven by record trading revenue as global market volatility prompted clients to reshuffle portfolios.

The results, released Tuesday, surpassed market expectations and highlighted the lender's ability to maintain profitability amid shifting macro conditions.

Earnings per share came in at $1.21, also beating consensus estimates.

The strong performance in the trading division offset pressures elsewhere, demonstrating the bank's resilience as investors scrutinize net interest income and credit quality across the sector.

The results arrive as major US banks navigate a complex environment of fluctuating interest rates and heightened market activity.

Bank of America's ability to capitalize on volatility for trading gains provides a counterpoint to concerns over margin compression in traditional lending.

Investors will now look to the bank's commentary on credit quality and future guidance for clues on how the broader banking sector is faring.

The Federal Reserve's upcoming rate decision on July 29 will also be a key focus for market participants assessing the outlook for financial stocks.