Hoffmann joined the military service of the Kaiserliche Marine (Imperial Navy) on 1 April 1912 as a Seekadett (midshipman) and took his first ship training on the cruiser SMS Hansa. On 1 April 1913 he underwent further training at the Naval Academy Mürwik, and on 12 April 1913 was promoted to Fähnrich zur See (ensign at sea).
He relinquished command of the Coastal Artillery School and was appointed commander of the light cruiserKönigsberg on 27 June 1939. After the outbreak of World War II, he initially remained in command of Königsberg. On 21 September 1939, he took over command from Kapitän zur SeeOtto Ciliax of the battleship Scharnhorst. Scharnhorst's first operation began on 21 November 1939, and lasted until 27 November 1939. Accompanied by her sister Gneisenau, the light cruiser Köln, and nine destroyers, Scharnhorst patrolled the area between Iceland and the Faroe Islands. The intent of the operation was to draw out British units and ease the pressure on the heavy cruiser Admiral Graf Spee, which was being pursued in the South Atlantic. Two days later, the German flotilla, under the command of Admiral Wilhelm Marschall aboard Gneisenau, intercepted the auxiliary cruiserRawalpindi. At 16:07, lookouts aboard Scharnhorst spotted the British vessel, and less than an hour later Scharnhorst had closed the range. At 17:03, Scharnhorst opened fire, and three minutes later a salvo of her 28 cm guns hit Rawalpindi's bridge, killing the captain and the majority of the staff. During the brief engagement, Rawalpindi managed to score a hit on Scharnhorst, which caused minor splinter damage. Rawalpindi was sunk within 40 minutes.
On 28 March 1942, Hoffmann became the commanding admiral of the German Navy in the Baltic and was promoted to Konteradmiral on 1 April. From 1 July 1942 until 4 March 1943, he was the commanding naval officer of the German Navy in the Netherlands. On being promoted to Vizeadmiral on 1 April 1943, Hoffmann became the head of department for artillery development and construction in the naval armaments office of the German Navy.
On 23 May 1945, after the collapse of Germany, Hoffmann was arrested by British forces, but released on 20 February 1947.
Hoffmann joined the newly formed West German Navy (Marine), and from 26 June 1956 to 31 August 1957, was first deputy head of the Maritime Office Hamburg, thereafter head of administration until his retirement on 31 March 1965.
Dörr, Manfred (1995). Die Ritterkreuzträger der Überwasserstreitkräfte der Kriegsmarine, Band 1: A-K (in German). Osnabrück, Germany: Biblio Verlag. ISBN3-7648-2453-0.
Patzwall, Klaus D.; Scherzer, Veit (2001). Das Deutsche Kreuz 1941 – 1945 Geschichte und Inhaber Band II [The German Cross 1941 – 1945 History and Recipients Volume 2] (in German). Norderstedt, Germany: Verlag Klaus D. Patzwall. ISBN978-3-931533-45-8.
Scherzer, Veit (2007). Die Ritterkreuzträger 1939–1945 Die Inhaber des Ritterkreuzes des Eisernen Kreuzes 1939 von Heer, Luftwaffe, Kriegsmarine, Waffen-SS, Volkssturm sowie mit Deutschland verbündeter Streitkräfte nach den Unterlagen des Bundesarchives [The Knight's Cross Bearers 1939–1945 The Holders of the Knight's Cross of the Iron Cross 1939 by Army, Air Force, Navy, Waffen-SS, Volkssturm and Allied Forces with Germany According to the Documents of the Federal Archives] (in German). Jena, Germany: Scherzers Militaer-Verlag. ISBN978-3-938845-17-2.