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

| Index | Martinsburg | Pennsylvania | National |
| Completed 8th grade | 89.2% | 86.9% | 84.3% |
| Completed high school | 86.2% | 85.6% | 83.0% |
| Completed some college | 40.2% | 53.6% | 59.4% |
| Completed associate degree | 25.3% | 37.4% | 38.5% |
| Completed bachelors | 21.3% | 29.3% | 30.3% |
| Completed masters | 8.4% | 11.5% | 11.5% |
| Completed professional degree | 0.3% | 3.3% | 3.3% |
| Completed doctorate | 0.3% | 1.4% | 1.3% |
There are a total of 2 public schools, 2 private schools and n/a post-secondary schools in Martinsburg. Using the proficiency score averages, the average test scores for Martinsburg, PA schools is 63%. The average student to teacher ratio is 15:1. In Martinsburg, PA, an average of 89.2% of students have completed 8th grade and an average of 86.2% have completed high school.
| City | Population | Avg. Test Scores | National Avg. |
| Cresson, PA | 1,670 | 72% | 50.0% |
| Hollidaysburg, PA | 5,828 | 64% | 32.8% |
| Gallitzin, PA | 1,658 | 54% | 12.5% |
| Altoona, PA | 44,840 | 53% | 11.4% |
| Williamsburg, PA | 1,151 | 52% | 8.3% |
| Martinsburg, PA | 1,874 | 63% | 30.2% |
| City | Population | Avg. Test Scores | National Avg. |
| Horton, KS | 1,873 | 25% | 48.4% |
| Fort Plain, NY | 1,875 | 39% | 18.2% |
| Wynnewood, OK | 1,875 | 23% | 53.1% |
| Marion, KS | 1,873 | 39% | 19.1% |
| Hill City, KS | 1,875 | 22% | 54.2% |
| Martinsburg, PA | 1,874 | 63% | 30.2% |