His father, also named John (1812 – 1894), was a butcher and his mother, Mary, was a milliner. The eldest of four children, Farmer was recognised as
child prodigy, playing violin, piano and harp. His uncle
Henry Farmer (1819–1891) was also a conductor, composer, violinist, and organist in Nottingham. He owned a successful music-warehouse and nurtured his nephew's musical talent. Between 1849 and 1852, Farmer studied piano at the Leipzig Conservatory with
Ignaz Moscheles, after which he studied for a year in
Coburg under Andreas Spaeth, a composer, organist, and clarinetist. Farmer returned to England to briefly work in his parents' millinery business, then travelled to Switzerland in 1853, marrying Mary Elizabeth Stahel (1840–1914) in 1859, the daughter of a Zurich schoolteacher, with whom he eventually had 7 children. His daughter Mary was married to the Scottish classicist
John Burnet. Farmer suffered a stroke at Oxford in 1900 and died in July, 1901. He was buried at
St Sepulchre's Cemetery, Oxford. == Teacher at Harrow School, 1862-1885 ==