Gilbert earned a B.A. in government at the University of Virginia in 1993 and a J.D. from Southern Methodist University School of Law in 1996. His professional experience includes working as a prosecutor for the City of Lynchburg and Shenandoah County.