J.P. Morgan Chase & Co. has reached a tentative deal to pay a record $13 billion to the Justice Department to settle a number of outstanding probes of its residential mortgage-backed securities business, according to a person familiar with the decision.

The deal, which was struck Friday night, doesn’t resolve a continuing criminal probe of the bank’s conduct, which could result in charges against individuals or the bank itself and possibly increase the penalty tab. The two sides continued to disagree over an admission of wrongdoing that would end the criminal probe and decided instead to resolve the civil allegations related to the mortgage securities.

The deal includes $4 billion to settle claims by the Federal Housing Finance Agency that J.P. Morgan misled Fannie Mae and Freddie Mac about the quality of loans it sold them in the run-up to the 2008 financial crisis, another $4 billion in consumer relief, and $5 billion in penalties paid by the bank, according to a second person close to the talks. How the consumer relief and penalties get dispersed and distributed is largely up to the government, and those details are still unclear, this person said.