G40 was assigned to the First Torpedo Boat Flotilla of theHigh Seas Fleet of the German Imperial Navy. When she participated in theBattle of Jutland she was assigned to escort the battlecruiserSMSLützow. In this action,Lützow was severely damaged such that she was unable to return to German waters. She assistedSMSG37,SMSG38 andSMSV45 in the evacuation of survivors. Naval gunfire from pursuingBritish vessels subsequently damagedG40's engines and she had to be towed back to German waters.
After the end of hostilities,G40, as a part of the 1st Torpedo Half Flotilla under KapitänleutnantReinhold Henrici (SMS G. 38, SMS G. 39, SMS G. 40, SMS G. 86 and SMS V. 129), was interned atScapa Flow and scuttled on 21 July 1919. She was salvaged for scrap byErnest Cox in 1925.