German submarine U-540
 German submarine U-540 was a Type IXC U-boat of Nazi Germany's Kriegsmarine during World War II.She was laid down at the Deutsche Werft (yard) in Hamburg as 'werk' 361 on 12 May 1942 launched on 18 December and commissioned on 10 March 1943 with Kapitänleutnant Lorenz Kasch in command.U-540 began her service career with training as part of the 4th U-boat Flotilla from 10 March 1943.