Gupta was in charge of the Kanawha-Charleston Health Department from 2009 to 2014. He became the director of the West Virginia Bureau of Public Health in 2015, and focused on reducing overdose deaths from the opioid epidemic.