He was born in Port Glasgow in 1782 the eldest son of John Cunninghame, a banker in Greenock.
He was apprenticed as a lawyer with Mr McNab WS[1] who had offices at 89 Princes Street in Edinburgh.
[2] In 1805 he is listed as John Cunningham Writer to the Signet operating from 5 George Street in Edinburgh.
[6] In 1837 he succeeded David Williamson, Lord Balgray as a Senator of the College of Justice.
He resigned due to ill health in 1853 and died in Edinburgh on 26 October 1854 and is buried in Dean Cemetery in the west of the city.