Farmington Hills is the second largest city in Oakland County in the U.S. state of Michigan. Its population was 79,740 at the 2010 census. It is part of the upscale northwestern suburbs of Metropolitan Detroit and is also around 20 miles (32 km) northeast of downtown Ann Arbor. Farmington Hills consistently ranks as one of the safest cities in the United States, as well as in the state of Michigan. In 2010, the area ranked as the 30th safest city in America.