He was the elder brother of zoologist George Robert Gray and son of the pharmacologist and botanist Samuel Frederick Gray (1766–1828).
Ai ishte vëllai më i madh i zoologut George Robert Gray dhe i biri i farmakologut dhe botanistit Samuel Frederick Grey (1766-1828).