In order to calculate the dynamic distribution of rail potential and stray current accurately, a multi‐state unified calculation model of rail potential and stray current is proposed, and the characteristics of different protection devices and reflux system in multi‐state DC railway systems are analysed. In the proposed model, the multi‐state characteristics of the traction substation, train, protection devices and reflux system are uniformly simulated by unified node models. The mixed simulation parameters of the catenary and reflux system are unified to lumped parameter networks, and the multi‐node voltage equations are established based on the simulation model. Then, the power flow of DC railway systems is calculated using an iterative solution, and the dynamic distribution of rail potential and stray current are solved by differential equations. The multi‐state unified calculation model is built and the distribution of rail potential and stray current in different conditions are simulated based on the parameters of Wuxi Subway Line 2. In order to verify the multi‐state unified calculation model proposed, field tests and simulations are carried out. Results show that the multi‐state unified calculation model can unify the complex states of DC railway systems and calculate the distribution of rail potential and stray current accurately.