Wells Fargo ( WFC) reported an expected drop in third-quarter earnings Wednesday, though results beat expectations on higher net interest margin and "tremendous" growth in deposits.

The San Francisco-based bank reported net income dropped 24% to $1.64 billion, or 49 cents per share, from $2.17 billion, or 64 cents per share, a year earlier, reflecting an industry-wide deterioration in loan performance. Results also include $646 million in charges for investments in the failed investment bank Lehman Brothers, as well as in mortgage finance giants Fannie Mae ( FNM) and Freddie Mac ( FRE), which were taken over by the government last month.

Wells Fargo's net interest margin rose to 4.79% from 4.55%, however, as revenue climbed 5% to $10.38 billion from $9.85 billion. Chief Financial Officer Howard Atkins attributed the rise to double-digit growth across several businesses, including asset-based lending, commercial banking, credit cards, mortgage banking, insurance, international and wealth management. Wells also saw a "tremendous inflow" of deposits as customers veered away from instability in the equities and debt markets.

Analysts had expected earnings of 41 cents per share on revenue of $10.96 billion, on average, according to Thomson Reuters.

Wells shares slipped 1.3% to $33.09 in recent pre-market trading.

Despite the better-than-expected results, Wells Chief Credit Officer Mike Loughlin acknowledged that the "current credit cycle continues to be challenging" and that "several consumer loan portfolios remain under stress. Wells charged off nearly $2 billion in loans due to poor performance last quarter, reflecting 1.96% of its portfolio, compared with 1.01% a year earlier. The company also boosted credit reserves by $500 million, raising the total allowance for future credit losses up to $8 billion.

If you liked this article you might like

How to Make Your Life Successful Just Like Billionaire Warren Buffett

How to Get Rich Using Warren Buffett's Favorite Stock Market Indicators

With the Fed, It's Different This Time

China's Banks Halt Business With North Korea Per United Nations Sanctions

How to Live Just Like Billionaire Warren Buffett