ryan was the second son of william ryan. he graduated from trinity college, cambridge in 1814 and while at cambridge, he became friends with john herschel, charles babbage, and george peacock. ryan took his ma in 1817 and was called to the bar by lincoln's inn in the same year. it was herchel's sharing of his scientific interests and enthusiasms that encouraged ryan to join the royal astronomical society in 1820.