Cosamaloapan is a city and municipality located along the Papaloapan river in the central part of the Mexican state of Veracruz, about 240 km from Xalapa, the state capital. It has a surface of 323.26 km2. It is located at 18°22′N 95°48′W / 18.367°N 95.800°W.