Grainger was educated at Auckland Grammar School before attending the University of Auckland to read physics.
In 1998, he returned to New Zealand to accept a Lectureship at the University of Canterbury, where he conducted new instrumental work to measure aerosol properties.