Crofton is a census-designated place and planned community in Anne Arundel County, Maryland, United States, located just west of the state capital Annapolis. Crofton is located 24 miles south of Baltimore, 9.8 miles west of Annapolis, and 24 miles east-northeast of Washington, D.C. The community was established in 1964. As of the 2010 census, it had a population of 27,348.