Charles Schwab ( SCHW) shares rallied as much as 9.6% Wednesday after the brokerage reported sliding first-quarter profits but beat Wall Street's expectations.

The San Francisco-based brokerage made $218 million, or 19 cents a share, a 29% drop from the $305 million, or 26 cents a share, in the year-earlier period. Revenue fell 15% to $1.11 billion.

The first quarter results were aided by a $26 million pre-tax gain related to Schwab's repurchase of $64 million in outstanding debt. But it also included $14 million related to an impairment charge on mortgage-backed securities collateralized by Alt-A mortgages owned in the firm's investment portfolio and a pre-tax charge of $59 million related to severance and other costs as part of the company's previously announced expense reduction plan, it said.

Still Schwab beat analysts' expectations on earnings by 4 cents a share. The company's revenue also came in slightly above analysts' revenue expectations.

"Our business is about serving our valued clients -- and they stayed actively engaged with us in the first quarter," CEO Walt Bettinger said. "Although the market environment remained challenging for investors, the latter part of the quarter did show some glimpses of improvement."

The company brought in $25.3 billion in net new assets during the quarter, down 39% from a year earlier and 17% from the fourth quarter.

Total client assets totaled $1.099 trillion at the end of the quarter, down 21% from a year earlier and down 3% from the fourth quarter.

In addition, banking accounts and retirement plan participants totaled 508,000 and 1.5 million at quarter-end, up 60% and 20%, respectively, from their March 2008 levels, Schwab said.

The company said it made $1.2 billion in first mortgage originations during the quarter.

The company said that it expects to record approximately $40 million in additional charges in the second quarter related to staffing reductions.

"This strong growth in the midst of so much financial and economic uncertainty reminds us every day that a stable and client focused approach has never been more important to our clients," Bettinger said. "As we continue to expand the base of investors and savers working with Schwab, we remain committed to being worthy of the trust they place in us -- not only as a healthy, enduring institution, but as a reliable ally in working towards a better financial future for every one of them."

Shares rose as high as $17.93, but more recently were surging 4.6% to $17.11.

Schwab's two main rivals -- TD Ameritrade ( AMTD) and E*Trade Financial ( ETFC) are expected to report earnings over the next two weeks.

If you liked this article you might like

Women Control Over 50% of Household Wealth, Says Schwab's Liz Ann Sonders

Women Control Over 50% of Household Wealth, Says Schwab's Liz Ann Sonders

Trading Strategies: Companies Benefiting From Tax Reform, Even in a Downturn

Trading Strategies: Companies Benefiting From Tax Reform, Even in a Downturn

15 Big-Cap Stocks Suffering the Most From Thursday's Market Rout

15 Big-Cap Stocks Suffering the Most From Thursday's Market Rout

Trading Strategies: Bitcoin Is an Ominous Reminder of Market Risk

Trading Strategies: Bitcoin Is an Ominous Reminder of Market Risk

Trading Strategies: Schwab's Sonders Says 2018 Won't Look Like 2017

Trading Strategies: Schwab's Sonders Says 2018 Won't Look Like 2017