McNair was born in Lake City, South Carolina. He earned degrees at North Carolina A&T State University (B.S.) and the Massachusetts Institute of Technology (Ph.D.). He also held four honorary doctorates and many fellowships. He was married to Cheryl Moore. The couple had two children.