The real-time and accurate collection of long-distance runners’ training distance can provide real-time scientific basis for long-distance runners’ physical training. Therefore, the real-time collection method of long-distance runners’ training distance based on wireless sensor network is studied in this paper. In this model, the position tracking algorithm of long-distance runners based on wireless sensor network is introduced to collect the training distance of long-distance runners. When collecting the training distance, the energy balanced clustering routing algorithm based on energy and location is used to optimize and balance the energy consumption distribution of nodes and prolong the network life cycle, so that the training distance of long-distance runners can be collected in real time. Through the test, in the straight line and curve training path, this method has significant accuracy in collecting the training distance of single and multiple long-distance runners and can collect the training distance of long-distance runners in real time, which has significant application value.