To calculate your marathon running speed, divide the total distance of the marathon (42.195 km or 26.2 miles) by the time it took you to complete it. For example, if you completed the marathon in 4 hours and 30 minutes, your average speed would be approximately 9.38 km/h (5.83 mph).