In 1885, Ayrton married the widower William Edward Ayrton, a physicist and electrical engineer who was supportive of her scientific endeavours. Ayrton honoured Barbara Bodichon by naming her first child, a daughter born in 1886, Barbara Bodichon Ayrton (1886–1950). The daughter was called "Barbie", and she later became a member of Parliament for the Labour Party. Her daughter's son was the artist Michael Ayrton.