Glencorse Barracks are situated in the Civil parish of Glencorse, Midlothian, just outside the town of Penicuik.