 James studied law at Edinburgh and was recognised as an able scholar.He became a member of the College of Justice in June 1554, and in August of the same year he became a Lord of Session.James Makgill bought the estate of Nether Rankeillour and took the judicial title "Lord Rankeillor".