Castelplanio is a comune (municipality) in the Province of Ancona in the Italian region Marche, located about 35 kilometres (22mi) southwest of Ancona. As of 31 December 2004, it had a population of 3,303 and an area of 15.1 square kilometres (5.8sqmi).