HMS H42 was a British H class submarine that sank with the loss of all 24 of its crew after an accidental collision in 1922. The sub was built by Armstrong Whitworth, Newcastle Upon Tyne. She was laid down in September 1917 and was commissioned on 1 May 1919.