The law regarding a child's 'right'* to choose which parent to live with is murky, and varies considerably by State and jurisdiction. Although not a standard by any means, many States have begun to give 'consideration' to a child's declaration of custodial preference when the child reaches the age of twelve or thirteen. The judge is normally given almost unlimited latitude in whether or not he listens to a child and how much weight to give to the child's wishes. In short, there is no specific "age". The judge will decide based on a best interest of the child standard,
Contact a local lawyer to talk specifics.
Good luck to you.
Note: This answer is made available by the lawyer for educational purposes only. By using or participating in this site you understand that there is no attorney client privilege between you and the attorney responding. Check with a lawyer in your own jurisdiction. The law is constantly changing and answers different from place to place.
Sign up to receive a 3-part series of useful information and advice about child custody law.