Farquhar was born in Newhall, Aberdeenshire, near Aberdeen in 1774 as the youngest child of Robert Farquhar and Agnes Morrison, his father's second wife.[1] His brother, Arthur, two years his senior, rose to the rank of rear admiral in the Royal Navy, and received a knighthood for his distinguished services during the Napoleonic Wars.