Stocks rose on Wednesday as investors cheered strong quarterly earnings from major banks like Goldman Sachs and Bank of America.

The Dow Jones Industrial Average rose 141.57 points to 24,207.16 as Goldman Sachs outperformed. The gained 0.2 percent to close at 2,616.10, led by a 2.2 percent gain in financials. The Nasdaq Composite climbed 0.15 percent to 7,034.69.

Goldman Sachs posted blowout quarterly earnings, sending the stock up 9.54 percent, its biggest one-day gain since 2009. Bank of America also rose 7.16 percent after reporting a record quarterly profit. The reports follow the releases of fourth-quarter results from Citigroup, J.P. Morgan Chase and Wells Fargo earlier this week. Morgan Stanley, another major bank, is scheduled to report on Thursday.

"Overall, Goldman had a good quarter," said Ken Leon, an analyst at CFRA Research. Also, "we did not see a multibillion dollar reserve for Malaysia," he added referring to the 1MDB scandal.

"For Bank of America, they performed well in their traditional banking areas," said Leon. "We did see better-than-peers deposit and loan growth. There was also healthy growth in consumer banking." Leon added Bank of America also had "more balanced and positive view than the other banks."

Separately, United Continental surged more than 6 percent after the company posted better-than expected earnings on Tuesday.

More than 6 percent of S&P 500 companies have reported calendar fourth-quarter earnings, according to FactSet. Of those companies, 85.3 percent have reported better-than-expected earnings.

However, strong earnings growth will be hard to find moving forward, according to Nick Raich, CEO of The Earnings Scout. "While stocks are in rally mode, S&P 500 EPS growth expectations are continuing to fall," Raich said in a note to clients. "Negative earnings momentum is a powerful force though investors should not become complacent."

The moves Wednesday follow solid gains in the previous session. The Dow closed more than 100 points higher on Tuesday as tech shares outperformed.