Nantucket is an island 30 miles (48.3 km) south of Cape Cod, Massachusetts, in the United States. It is both a town and a county (Nantucket County).