Gilbert was born in Boston, Massachusetts, on March 21, 1932. Gilbert attended Harvard University for undergraduate and graduate studies, earning a first degree in chemistry and physics in 1953 and a master's degree in physics in 1954. 