McNair is a census-designated place located in the Oak Hill section of Fairfax County, Virginia, United States. It is directly to the east of Washington Dulles International Airport. The population as of the 2010 census was 17,513. Much of the population resides in the McNair Farms planned community.