Hastings was born on 3 July 1790, the fourth son of Rev. James Hastings and Elizabeth. He was brother to Sir Charles Hastings. Another brother, Francis Decimus Hastings, also served in the Royal Navy from the age of twelve, reaching the rank of Rear-Admiral in 1859 having been obliged to relinquish active service because of his wounds, hardships and length of service. While a lieutenant in 1812, he painted Storm at Sea. On 29 April 1812, Hastings participated in an attack led by Captain Thomas Ussher on Frenchprivateers of Málaga, in which he performed admirably, commanding twenty men in the attack. In 1814, as a first lieutenant of the, he escorted Napoleon into his exile on Elba, and was one of three officers responsible for the arrangements for the arrival of Napoleon. From 14 November 1828 until 22 July 1830, he commanded in the Mediterranean with the rank of commander. He was then promoted captain. On 13 April 1832, Captain Hastings took command of the sixth-rate training ship. As far back as 1817 General Sir Howard Douglas had submitted plans to remedy the obvious deficiencies of British naval gunnery. Nothing was done until 1830 when Commander George Smith was appointed to "superintend the practice of Sea Gunnery" on board that ship at Portsmouth. The gunnery school was put on a permanent basis by Captain Thomas Hastings. He became noted for his training methods, although some in the admiralty disapproved of his emphasis on science, and found his reports on gunnery confusing, as they had little knowledge of science themselves. From a life of Sir John Barrow, the Secretary to the Admiralty through most of the first half of the 19th century, an interesting account appears; two years after Hastings' appointment to Excellent, Sir John Briggs, Reader to the Board, happened to show the examination paper to an Admiral on the Board. He was knighted in 1839. The first diving training in the Royal Navy occurred in 1844 under Hastings' watch. He left command of Excellent on 28 August 1845, after his appointment as Storekeeper of the Ordnance on 25 July 1845. He held that post until it was abolished with the dissolution of the Board of Ordnance in 1855. On 27 September 1855 he was promoted rear admiral, and on 4 October 1862 vice admiral. On 2 April 1866, he retired from the navy with the rank of admiral. He died on 3 January 1870 at his home in London.