The cost of living in Mechanicsburg, Pennsylvania is 9.7% more expensive than Martinsburg, West Virginia.