He served in the Breadalbane Fencibles, a local militia, gaining the rank of Major by 1793.
From 1807 to 1810 he served as Deputy Postmaster General in Scotland, being succeeded by James Sinclair, 12th Earl of Caithness.
[5] In 1822 he commissioned Robert Smirke to build Kinfauns Castle.
In 1825 he further commissioned William Trotter to execute suites of furniture for the castle.
They had three daughters (one of whom, Jane Anne, was first wife of the soldier Charles Philip de Ainslie) and one son, John Gray, 15th Lord Gray who succeeded to the baronetcy.