Arriving in Edinburgh in November 1809, Barry began studies at the Medical School as a 'literary and medical student'. Barry's short stature, unbroken voice, delicate features and smooth skin led many to suspect that Barry was a young boy not past puberty, and the University Senate initially attempted to block Barry's application for the final examinations due to this apparent youth. However, the Earl of Buchan, a friend of Dr Fryer and Barry's late namesake, persuaded the Senate to relent and Barry qualified "Medicinae Doctor (MD)" in 1812. Barry then moved back to London, signing up for the Autumn Course 1812/1813 as a pupil of the United Hospitals of Guy's and St Thomas', whose teachers included Henry Cline and celebrated surgeon Astley Cooper. On 2 July 1813, Barry successfully passed the examination of the Royal College of Surgeons of England.