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