| Index | Petersburg | Illinois | National |
| Average Test Scores | 32% | 33% | 48% |
| Student/Teacher ratio | 19:1 | 18:1 | 16:1 |
| Total public schools | 4 | 3,938 | 79,221 |
| Total private schools | n/a | 1,438 | 24,874 |
| Total post-secondary schools | n/a | 306 | 7,963 |

| Index | Petersburg | Illinois | National |
| Completed 8th grade | 80.7% | 86.2% | 84.3% |
| Completed high school | 77.5% | 84.7% | 83.0% |
| Completed some college | 51.6% | 61.8% | 59.4% |
| Completed associate degree | 28.2% | 40.7% | 38.5% |
| Completed bachelors | 18.1% | 32.9% | 30.3% |
| Completed masters | 5.6% | 12.7% | 11.5% |
| Completed professional degree | 1.4% | 3.4% | 3.3% |
| Completed doctorate | 0.6% | 1.2% | 1.3% |
There are a total of 4 public schools, n/a private schools and n/a post-secondary schools in Petersburg. Using the proficiency score averages, the average test scores for Petersburg, IL schools is 32%. The average student to teacher ratio is 19:1. In Petersburg, IL, an average of 80.7% of students have completed 8th grade and an average of 77.5% have completed high school.
| City | Population | Avg. Test Scores | National Avg. |
| Sherman, IL | 4,619 | 67% | 38.5% |
| Cantrall, IL | 107 | 45% | 6.3% |
| Pleasant Plains, IL | 732 | 38% | 20.1% |
| Athens, IL | 2,433 | 37% | 22.9% |
| Mason City, IL | 2,414 | 26% | 46.9% |
| Petersburg, IL | 2,626 | 32% | 33.9% |
| City | Population | Avg. Test Scores | National Avg. |
| Cave City, KY | 2,626 | 27% | 43.8% |
| Apalachicola, FL | 2,627 | 61% | 27.1% |
| Stone Ridge, NY | 2,627 | 62% | 29.2% |
| Shelby, MI | 2,627 | 33% | 31.9% |
| Mattawan, MI | 2,627 | 64% | 32.3% |
| Petersburg, IL | 2,626 | 32% | 33.9% |