Sedalia is a city located about 30 miles (48 km) south of the Missouri River at the intersection of U.S. Routes 50 and 65 in Pettis County, Missouri. As of the 2010 census, the city had a total population of 21,387. As the county seat of Pettis County, it is the principal city of the Sedalia Micropolitan Statistical Area, which consists of Pettis County. Sedalia is also the location of the Missouri State Fair and the Scott Joplin Ragtime Festival.