Bank of America is completing an agreement to pay $8.5 billion to settle claims by investors that purchased mortgage securities that soured when the housing bubble burst, according to people briefed on the deal. It represents what is likely to be the single biggest settlement tied to the subprime mortgage boom and the subsequent financial crisis of 2008.

The settlement would wipe out all of the company’s earnings in the first half of this year, and it could also provide a template for deals with other big banks that face tens of billions in similar claims.

“I think this is huge,” said Michael Mayo, a bank analyst with Crédit Agricole in New York. “It’s about time the industry resolves issues from the financial crisis and focuses more on righting their companies and improving the economy. This is the most significant step since the financial crisis that helps do that.”

The proposed settlement is with a group of more than 20 investors that include the asset managers Pimco, Metropolitan Life and BlackRock, as well as the Federal Reserve Bank of New York. Together they hold mortgage-backed securities that represent more than $100 billion in home loans from Bank of America, the nation’s biggest bank by assets.