 McCarty grew up in Portsmouth, Virginia, and earned both his bachelor's and his master's degrees from Old Dominion University.He earned his Ph.D. in pathobiology from what is now the Bloomberg School of Public Health at Johns Hopkins University in Maryland in 1976.McCarty began his career at the National Institute of Mental Health, where he worked as a research associate in pharmacology.