KiwiRail will increase pay for 2,319 Rail and Maritime Transport Union members by the same amount, meaning the lowest paid get the biggest increase.
The agreement was reached within a day of negotiations and comes after three years of improving staff engagement turned positive.
The two-year deal is effective from July 1, KiwiRail said. The state-owned enterprise has said its work with the union has been key to lifting the level of engagement, and again cited it when announcing the pay hike.
"KiwiRail and the RMTU have worked closely together over the past three years on a High Performance, High Engagement (HPHE) programme which brings management and workers together to develop frontline solutions to business issues," chief executive Peter Reidy said in a statement.
"I commend the RMTU for initiating this innovative solution which is not only fair but will help those who need it most."