The document presents a mixed integer linear programming (MILP) formulation for solving the taxi sharing problem. The taxi sharing problem aims to optimize taxi routes by allowing passengers with similar pick-up and drop-off locations to share taxis. The formulation models the problem as sequences of passenger locations that represent taxi rides. Experiments on real-world taxi trip data show the MILP formulation finds lower cost solutions than a parallel evolutionary algorithm, especially on medium and large problem instances, demonstrating the benefits of the exact MILP approach.