Rye is a city in Westchester County, New York, United States, within the New York City metropolitan area. It received its charter as a city in 1942, making it the most recent such charter in the state. Its area of 5.85 square miles has a population density of 2,729.76/sq mi.