Morgan Stanley said on Wednesday that it had reached a $2.6 billion settlement with the Justice Department over the sale of mortgage securities before the financial crisis.

Other large banks have already struck similar settlements, with Bank of America agreeing to pay a record $16.7 billion last year and JPMorgan Chase settling for $13 billion in 2013.

Compared with other Wall Street banks, Morgan Stanley was responsible for a smaller volume of securities backed by troubled mortgages, the investments at the heart of the settlements.

The $2.6 billion price tag, which will be included in Morgan Stanley’s final fourth-quarter earnings results, will more than wipe out the $1 billion in quarterly profits that the firm had announced last month. It will also reduce the firm’s profits for the year by more than 40 percent, taking the bank’s earnings for 2014 to $1.61 a share from $2.96 a share.