Taxi is an important part of urban passenger transportation system. The research and analysis of taxi trip behavior is the key to meet the demand of urban passenger transport and solve the traffic congestion problem. Based on the GPS data of taxis in Nanjing, the statistical method is used to analyze the taxi characteristics of the average number of passengers, the average passenger time, the no-load distance and the passenger distance. By using the double logarithmic coordinate, the trip distance and trip time of taxi passengers are analyzed, it is found that the average trip distance of taxi passengers is mainly concentrated in 3-20 km, and the average trip time of taxi passengers is mainly concentrated in 10-30 minutes. Using the information entropy theory to construct the equilibrium model of taxi passenger-carrying point, and analyze the spatial distribution of taxi, it is found that the distribution of urban taxi is unbalanced. The peak clustering algorithm is used to determine the location of passenger gathering points, and the hot spot of taxi trip is analyzed, it is found that the hot spots of taxi trip are mainly concentrated in the central city of Nanjing. Combined with the results of urban taxi trip analysis, from the perspective of taxi and passenger, we found that the number of urban taxis, the passenger carrying rate of taxis, the duration period of passenger trip, the duration and distance of passenger trip and the location of passenger trip points will have an impact on the urban taxi carpooling in Nanjing. By using the probability model of urban taxi carpooling, this paper discusses and analyzes the influence of these factors on urban taxi carpooling. The research in this paper can provide a reference for the effective implementation of urban taxi carpooling policy.