The settlement resolves all disputes between the two firms related to home loan deals during the subprime housing boom, BofA said.
The payment, less a credit of about $13 million toward the settlement for loans BofA had already repurchased from Freddie Mac, releases the bank from potentially being forced to repurchase about 716,000 mortgages originated from 2000 to 2009.
"We are pleased to have reached this agreement with Bank of America, which now allows both companies to move forward," said Donald H. Layton, chief executive of Freddie Mac.
"We continue to make very good progress in recovering funds that are due to the American taxpayer," he said.
BofA said the $404-million settlement was covered by money set aside by the bank in reserves.
The payment adds to the price tag for settlements, repurchases and litigation related to mortgages sold by BofA and by
Among those payments was more than $10 billion to
As of Sept. 30, the bank said it had paid about $19 billion in claims and had set aside about $14 billion in reserves for future payments.
Freddie Mac and sibling firm Fannie Mae were seized by the federal government in 2008 as they teetered near bankruptcy because of soured mortgages they purchased and guaranteed during the subprime housing boom.
Taxpayers pumped about $187.5 billion into Fannie and Freddie in the largest financial crisis bailout. As the housing market has recovered, the finances of the companies have improved and they will have paid about $185.3 billion in dividends to the government on the bailouts by the end of the year.