Nayar received a B.E. in electrical engineering from Birla Institute of Technology in Mesra, in 1984,[4] and an M.S. in electrical and computer engineering from North Carolina State University in Raleigh in 1986.[5] He received a Ph.D. in electrical and computer engineering from The Robotics Institute at Carnegie Mellon University in Pittsburgh in 1991.