Nicholas Fairbairn was the third child and second son of Ronald Fairbairn, the psychoanalyst, who, according to Fairbairn's autobiography A Life is Too Short (1987) adopted the maternal role after his mother rejected him at birth.
He was educated at Loretto School and the University of Edinburgh, where he graduated with an MA and an LLB.