Joseph Farnham was born on 22 June 1816 into the Farnham family of Boothbay, Maine, who had settled near Linekin Neck, a point of land on the coast, in the 1780s. Like his parents, he married a cousin.
He was most likely a son of Joseph Farnham and his wife, Nancy, who was a Farnham too and her husband’s cousin. The younger Joseph married Dorcas Holbrook, a daughter of Ezekiel Holbrook and Dorcas Farnham, and so most likely his first cousin.