Shares of Goldman Sachs Group, Inc. (GS), JPMorgan Chase & Co. (JPM), and Bank of America Corp. (BAC) surged to annual highs after the banks posted stellar second-quarter earnings results that beat market expectations.

GS stock led the climb among banking stocks, surging more than 9% after its record Q2 results triggered a buy-in. JPM stock rose 2.5% after its results surged past Wall Street expectations, while BAC stock also soared nearly 2% to a record high.

Goldman Sachs Soars To Record High

climbed to a record high of $1,143.84 on Tuesday after the company reported record Q2 results that tore past analysts’ expectations.

Goldman Sachs posted quarterly revenue of $20.98 billion, significantly higher than Wall Street's $16.4 billion estimate, according to Koyfin data. The investment bank also reported earnings of $15.91 per share, ahead of the $14.40 consensus estimate, while net income reached a record $6.32 billion for the quarter.

The strong results were fueled by robust performance in investment banking, equities trading, and asset management, as companies continued to tap capital markets and pursue AI-related financing and strategic deals.

"There's a lot of capital out there," CEO David Solomon said in an  with CNBC on Tuesday. "I'm not concerned about the ability for the capital to be available for things that make sense."

GS stock has surged nearly 25% so far this year. On Stocktwits, retail sentiment was ‘extremely bullish’ at the time of writing.

JPMorgan Jumps As Trading Revenue Strengthens 

climbed to a 52-week high of $344.73 on Tuesday, driven by strong Q2 results that boosted investor interest in the company.

The bank posted revenue of $57.35 billion versus a consensus estimate of $51.3 billion, while earnings per share (EPS) came in at $7.70 per share versus an expectation of $ 5.80 per share, based on Fiscal.ai data.

JPMorgan delivered its strongest trading quarter on record, with trading revenue jumping 35% year over year to $12.1 billion. CEO Jamie Dimon said every business segment achieved record results, noting that market conditions remain favorable for sustained activity. Investment banking fees climbed 30% from a year earlier to $3.3 billion, marking their highest level since 2021, while net interest income rose 10% year over year to $25.6 billion.

Meanwhile, Goldman Sachs raised the price target on the bank to $418 from $411 and kept a ‘Buy’ rating on the shares after its Q2 earnings beat, as per TheFly.

JPM stock has gained more than 5% so far this year as retail sentiment improved from ‘bullish’ to ‘extremely bullish’ over 24 hours.

Bank Of America Surges Amid Strong AI Funding Demand 

BAC stock also climbed to a record high of $61.21 on Tuesday, driven by Q2 results that demonstrated a strong investment banking pipeline amid growing AI demand.

The bank reported revenue of $31.6 billion, ahead of analyst estimates of $30.7 billion. Meanwhile, earnings per share (EPS) came in at $1.21, beating expectations of $1.13 EPS.

Investment banking revenue climbed 50% year-over-year, with sales and trading revenue rising 30%. A surge of more than 70% in equities trading was the standout performer, contributing to one of the bank's best quarters in recent years.

"We still have very strong pipelines in investment banking. The IPOs and deals are still getting done, and very strong interest in doing transactions,” CEO Brian Moynihan told CNBC in an interview. "The AI buildout still has a lot of debt funding and other funding required, so it's a very good environment."

Meanwhile, Jefferies raised the price target on Bank of America to $75 from $70 and kept a ‘Buy’ rating on the shares after a "strong quarter," as per TheFly.

BAC stock has gained more than 8% so far this year as retail sentiment improved from ‘neutral’ to ‘bullish’ over 24 hours.