Johnston was born on 19 January 1764 at Annan, Dumfriesshire, Scotland, the son of Captain George Johnston, aide-de-camp to Lord Percy, later the 5th Duke of Northumberland.
The young officer subsequently acted as a recruiting officer in the United Kingdom before served aboard in the East Indies in 1781, and suffering a severe wound in action against the French [REF].