The CP5 spending plans from 2014-19 will see £13bn allocated to capital expenditure including building new tracks, uncorking bottlenecks, increasing capacity and upgrading outdated stations.
Network Rail will also spend £12bn on replacing and renewing older parts of the network.
More than 7,000km of track and nearly 6,000 sets of points will be renewed or refurbished and 7,000km of fencing and almost 300,000m2 of platforms at stations will be replaced or renewed.
The remaining £13bn will be spent on day-to-day maintenance and the costs of operating and running the network.
Transport Secretary Patrick McLoughlin said: “A key part of this government’s long term economic plan is investing in world class infrastructure.
“That is why we are putting record amounts of government funding into our railways over the next five years.”
Hundreds of stations across the country will be transformed including major schemes at London Bridge, Manchester Victoria, Birmingham New Street and Glasgow Queen Street.
For full details of the spending plan click here