With the extensive use of smart-phone applications and online payment systems, more travelers choose to participate in ridesharing activities. In this paper, a multi-modal route choice model is proposed by incorporating ridesharing and public transit in a single-origin-destination (OD)-pair network. Due to the presence of ridesharing, travelers not only choose routes (including main road and side road), but also decide travel modes (including solo driver, ridesharing driver, ridesharing passenger, and transit passenger) to minimize travelers’ generalized travel cost (not their actual travel cost due to the existence of car capacity constraints). The proposed model is expressed as an equivalent complementarity problem. Finally, the impacts of key factors on ridesharing behavior in numerical examples are discussed. The equilibrium results show that passengers’ rewards and toll charge of solo drivers on main road significantly affect the travelers’ route and mode choice behavior, and an increase of passengers’ rewards (toll) motivates (forces) more travelers to take environmentally friendly travel modes.