The company took on a one-off charge of $10.4bn as a result of changes to card rules, wiping out what would have been a $3.1bn dollar profit for the third quarter.
Legislation recently signed by President Barack Obama including rules on the amount banks can charge firms to swipe their cards and pay for goods.
"The charge results from the limits to be placed on debit interchange fees under the financial reform legislation enacted in July 2010, which will reduce future revenues in the global card services business," the firm said.
"This change moves away from a dependence on penalty fees, which the industry had adopted over the years, and provides the customer with a better banking experience."
But the company's CEO was upbeat, as other business areas continued to recover.
"Our results this quarter demonstrate continued traction with each customer group - consumers, businesses, and institutional investors," said Chief Executive Officer Brian Moynihan. "Our strategy is to leave nothing to chance in our goal of doing everything we can for each of our customers."
The earnings compare to a one billion dollar loss in the same period last year.
Bank of America was among the hardest hit during the credit crisis. It received $45bn in bailout funds from the federal government, and repaid the money last year.
The firm has recently been embroiled in a scandal over its apparent failure to process foreclosures correctly.
The bank had introduced a nation-wide repossession freeze, but on Monday said proceedings would resume in 23 states.