| Index | Middleburg | Pennsylvania | National |
| Average Test Scores | 57% | 55% | 48% |
| Student/Teacher ratio | 15:1 | 16:1 | 16:1 |
| Total public schools | 2 | 2,563 | 79,221 |
| Total private schools | n/a | 1,626 | 24,874 |
| Total post-secondary schools | n/a | 406 | 7,963 |

| Index | Middleburg | Pennsylvania | National |
| Completed 8th grade | 77.7% | 86.9% | 84.3% |
| Completed high school | 76.8% | 85.6% | 83.0% |
| Completed some college | 36.0% | 53.6% | 59.4% |
| Completed associate degree | 22.8% | 37.4% | 38.5% |
| Completed bachelors | 13.9% | 29.3% | 30.3% |
| Completed masters | 3.1% | 11.5% | 11.5% |
| Completed professional degree | 0.2% | 3.3% | 3.3% |
| Completed doctorate | 0.0% | 1.4% | 1.3% |
There are a total of 2 public schools, n/a private schools and n/a post-secondary schools in Middleburg. Using the proficiency score averages, the average test scores for Middleburg, PA schools is 57%. The average student to teacher ratio is 15:1. In Middleburg, PA, an average of 77.7% of students have completed 8th grade and an average of 76.8% have completed high school.
| City | Population | Avg. Test Scores | National Avg. |
| Lewisburg, PA | 5,861 | 76% | 57.3% |
| Selinsgrove, PA | 6,107 | 68% | 40.6% |
| Herndon, PA | 386 | 60% | 24.5% |
| Montandon, PA | 910 | 60% | 24.0% |
| Beaver Springs, PA | 796 | 60% | 24.0% |
| Middleburg, PA | 1,649 | 57% | 19.1% |
| City | Population | Avg. Test Scores | National Avg. |
| Vienna, IL | 1,649 | 35% | 26.6% |
| Dauphin Island, AL | 1,649 | 70% | 45.8% |
| Van Buren, ME | 1,648 | 32% | 32.8% |
| Kettle Falls, WA | 1,650 | 48% | 1.0% |
| Archer City, TX | 1,650 | 66% | 37.0% |
| Middleburg, PA | 1,649 | 57% | 19.1% |