German submarine U-240 was a Type VIIC U-boat of Nazi Germany's Kriegsmarine during World War II. The submarine was laid down on 14 May 1942 at the Friedrich Krupp Germaniawerft yard at Kiel as yard number 670, launched on 18 February 1943 and commissioned on 3 April 1943 under the command of Oberleutnant zur See Günther Link.
German Type VIIC submarines were preceded by the shorter Type VIIB submarines. U-240 had a displacement of 769 tonnes (757 long tons) when at the surface and 871 tonnes (857 long tons) while submerged. She had a total length of 67.10 m (220 ft 2 in), a pressure hull length of 50.50 m (165 ft 8 in), a beam of 6.20 m (20 ft 4 in), a height of 9.60 m (31 ft 6 in), and a draught of 4.74 m (15 ft 7 in). The submarine was powered by two Germaniawerft F46 four-stroke, six-cylinder supercharged diesel engines producing a total of 2,800 to 3,200 metric horsepower (2,060 to 2,350 kW; 2,760 to 3,160 shp) for use while surfaced, two AEG GU 460/8–27 double-acting electric motors producing a total of 750 metric horsepower (550 kW; 740 shp) for use while submerged. She had two shafts and two 1.23 m (4 ft) propellers. The boat was capable of operating at depths of up to 230 metres (750 ft).