 McCarty began his career at the National Institute of Mental Health, where he worked as a research associate in pharmacology.He also served as a lieutenant commander in the U.S. Public Health Service.In 1978, he was appointed assistant professor of psychology at the University of Virginia, where he remained until 1998.