Born in Hull, Pirie is the son of Douglas Pirie and Eva Madsen.
He graduated with an MA in History from the University of Edinburgh (1970), with a PhD in Philosophy from the University of St Andrews (1974), and with an MPhil in Land Economy from Pembroke College, Cambridge (1997).