German submarine U-2340 was a Type XXIII U-boat of Nazi Germany's Kriegsmarine during World War II.
She was ordered on 20 September 1943, and was laid down on 18 August 1944 at Deutsche Werft AG, Hamburg, as yard number 494.
She was launched on 28 September 1944 and commissioned under the command of Oberleutnant zur See Emil Klusmeier on 16 October 1944.
The submarine was powered by one MWM six-cylinder RS134S diesel engine providing 575–630 metric horsepower (423–463 kilowatts; 567–621 shaft horsepower), one AEG GU4463-8 double-acting electric motor electric motor providing 580 PS (430 kW; 570 shp), and one BBC silent running CCR188 electric motor providing 35 PS (26 kW; 35 shp).
When submerged, the boat could operate at 4 knots (7.4 km/h; 4.6 mph) for 194 nautical miles (359 km; 223 mi); when surfaced, she could travel 2,600 nautical miles (4,800 km; 3,000 mi) at 8 knots (15 km/h; 9.2 mph).