Distance between London England and Edinburgh Scotland by train?

By time: 4.25 hrs to 4.75 hrs by train from London Euston to Glasgow Central.
4.25hrs to 5 hrs, most are around 4.5hrs by train from London Kings Cross to Edinburgh Waverley

Distance: Glasgow - London (via West Coast): 403 miles
Edinburgh - London (via East Coast): 393 miles