His or Her Majesty's Ship (HMS) is the title of any commissioned ship in the British Royal Navy, and refers to the King or Queen of the United Kingdom as appropriate at the time. The term is sometimes seen used informally of any ship belonging to the Royal family in any country.

Submarines in Her Majesty's service have the prefix HM Submarine (sometimes abbreviated HMSm). Similarly, the Royal Yacht Britannia, which was a commissioned ship in the Royal Navy, was known as HMY Britannia. Otherwise all ships in the Royal Navy are known as HM Ships, though formerly when a distinction was made between three-masted ship-rigged ships and smaller vessels they would be called HM Frigate X, or HM Sloop Y. The term prefix HMS is also used by shore establishments which are commissioned "ships" in the Royal Navy.

British government ships not in the Royal Navy have other designations, such as "RFA" for ships in the Royal Fleet Auxiliary.

Other Commonwealth Realms use a variation of the "HMS" designation. For example, Canada uses HMCS for "Her Majesty's Canadian Ship", Australia uses HMAS, and so forth. (See ship prefix for a list.)