The family was in Pakistan early Thursday, and the White House was preparing to release a statement once they are safely in American hands, according to people who described their status on condition of anonymity because the details have not yet been made public.
Media in the region reported that the Pakistani military had initially taken custody of the family.
The family was freed with the help of another country, the person said, but it was not clear what if any concessions were made to the Haqqani network, the Taliban faction that had seized Caitlan Coleman, 31, and her Canadian husband, Josh Boyle, 34.
The pair was taken in October 2012 while backpacking in the Wardak Province, a militant stronghold near Kabul. At the time of her abduction, Ms. Coleman was pregnant. She had two more children in captivity, adding pressure to resolve an already desperate situation.
Previously the Haqqani network had demanded the release of Anas Haqqani, one of their commanders.
The Afghan government managed to capture him in 2014, and he was sentenced to death.
The group had threatened to kill the family if the Afghans executed him.