The GDL drivers' union and Deutsche Bahn agreed earlier this month on the outlines of a deal and had spent the last two weeks working out the final details.
Under the agreement, the union's 34,000 drivers will get an eight percent raise from March and a further three percent increase from September.
In addition, drivers will receive a one-off payment US$1170 for the period July 2007 to February 2008. From February 1, 2009, drivers will also see their workweek cut by one hour to 40 hours without any drop in pay.
Deutsche Bahn said the new contract would come into force on March 1 and apply for the period from July 2007 to January 31 2009.
Further talks must take place between GDL and two other larger rail unions, Transnet and GDBA, over the coming weeks.