Bank of America

(BAC) - Get Report

reported a 41% gain in third-quarter earnings, fueled in part by its acquisition earlier this year of credit-card giant MBNA.

The nation's second-largest bank earned $5.42 billion, or $1.18 a share, up from $3.84 billion, or 95 cents a share, a year ago. Revenue rose 32% to $18.96 billion, surpassing analyst expectations.

BofA had merger and restructuring charges of $269 million, or 4 cents a share, before taxes. Excluding the charges, the bank earned $5.59 billion, or $1.22 a share, on an operating basis.

Analysts were predicting the Charlotte lender to earn $1.15 a share in the quarter on revenue of $17.87 billion, according to Thomson Financial.

Net interest income rose 12%, to $8.89 billion.

Profit from BofA's global consumer and small business banking unit, the largest segment of its business, rose 57% to $2.9 billion. Revenue from that group rose 44% to $10.4 billion.

The results included BofA's purchase of MBNA in January.

But the results from BofA's corporate and investment banking businesses weren't too impressive, despite an overall 24% rise in net income to $1.9 billion.

The division got a big boost in the quarter from the sale of the bank's Brazilian operation, which resulted in a $720 million pretax gain.

Excluding the gain from the sale, profit from the unit would have declined by 4%, while revenue would have inched higher by just 1%.

BofA earnings come on the same day that

Citigroup

(C) - Get Report

, the nation's largest bank, reported a 23% drop in net income. Revenue at Citigroup was flat from a year ago amid weakness at its own investment banking division.

The bank's loans and leases rose 20% to $669 billion. Deposits rose 6.3% to $665 billion.

The stock was up a modest 7 cents, to $53.88, in premarket trading.