The results show that by relying on the cost-benefit model provided here to formulate pretrial-detention decisions, judges could unlock significant societal benefits— including approximately $78 billion in economic value, increased safety, and, potentially, more equitable outcomes for detainees.