Let F be a finite extension of Qp and p≥5. In this paper, we establish homological branching laws for mod p representations of GL2(F) restricted to split and nonsplit maximal tori, treating principal and special series and, when F=Qp, supersingular representations. We determine the derived Hom-complexes in both orders for nonexceptional characters. At exceptional characters, we calculate their Euler--Poincar\'e characteristics under a p-torsion-freeness hypothesis. We also establish corresponding results for a class of unitary Banach space representations.