It lies at the far northeast corner of Aberdeenshire , about 40 miles ( 64 km ) north of Aberdeen , and 17 miles ( 27 km ) north of Peterhead .
It lies at the northeast corner of Aberdeenshire , around 40 miles ( 64 km ) north of Aberdeen , and 17 miles ( 27 km ) north of Peterhead .