On 12 April 1856, King Maximilian II of Bavaria gave the Bavarian Eastern Railway permission to build the line, which was completed as a single-track line in 1859. The company was nationalised and became part of the Bavarian State Railways on 1 January 1876. In the same year, the line between Nuremberg and the suburb of Mögeldorf was duplicated. In 1910–12 the line was duplicated between Mögeldorf to Amberg. The second track was put into operation from Neukirchen to Sulzbach on 1 May 1911, from Mögeldorf to Neukirchen in October 1912 and from Sulzbach to Amberg in December 1912. The line had been duplicated between Irrenlohe and Schwandorf on 1 October 1863. As a result of the shortage of railway materials during the Second World War, the line between Nuremberg-Laufamholz and Hersbruck was reduced to single track in 1943. During the reconstruction of the Nuremberg–Lauf section for the Nuremberg S-Bahn in 1983, the second track was re-installed and electrified. As part of the extension of S-Bahn operations from Lauf to Hartmannshof, the line was blocked to all traffic between Lauf and Hersbruck from 1 August to 14 September 2009. During this period, the second track was restored, installations for overhead wire were built and the upgrading of stations was started. On 14 December 2009, new platforms were opened at Ottensoos, located about 300 metres closer to the centre of the town than the old station. On 15 November 2010, the reconstructed second track was opened between Lauf and Hersbruck.
The route is double track from Nuremberg to Amberg and electrified between Nuremberg and Hartmannshof for the S-Bahn service. The remaining route is not electrified and the section between Amberg and Irrenlohe is single-track.
Neukirchen station has facilities for coupling and uncoupling class 610 and 612 diesel tilting trains. Regional-Express services operate on the Nuremberg–Neukirchen–Schwandorf / Neukirchen–Weiden–Neustadt route between Nuremberg and Hersbruck, running on the Right Pegnitz line and then switching via the Hersbruck–Pommelsbrunn link to the Left Pegnitz line at Pommelsbrunn. Some services run as coupled sets to Neukirchen, and then run separately towards Neustadt and towards Schwandorf. Most operate from Nuremberg to Hersbruck separately or together with a train set that is uncoupled at Hersbruck to continue to Bayreuth. In the opposite direction, the trains from Weiden and Schwandorf were generally coupled in Neukirchen before proceeding to Nuremberg. Twice a day services of the Bayern-Böhmen-Express run on the route from Nuremberg via Schwandorf and Furth im Wald to Prague; it uses the Pegnitz Right line to Hersbruck. The Czech express trains are hauled by class 223 locomotives. On the Nuremberg–Hartmannshof section the Nuremberg S-Bahn trains are currently operated with class 143 electric locomotives and sets of “x” carriages in the absence of an approval for class 442electric multiple units to operate in Nuremberg. In addition to passenger trains, several freight trains operate on the line each day, mainly hauled by class 232 diesel locomotives.
Upgrade in preparation for the extension of the S-Bahn to Hartmannshof
In December 2010, S-Bahn services were extended beyond Hersbruck to Hartmannshof. The route between Lauf and Hersbruck was equipped with a second track and was electrified from Lauf to Hartmannshof. All stations along the route were rebuilt to S-Bahn standard and provided with barrier-free access. A new station was established in Happurg, the former halt in Pommelsbrunn was abandoned and replaced on 4 December 2010 by a new halt 500 m to the east. The cost of the S-Bahn extension amounted to approximately €55 million.