This paper introduces a new routing paradigm called multirate anypath routing for wireless multihop networks, which optimizes both the forwarding set of next-hops and the transmission rate for each node. Two polynomial-time routing algorithms are proposed, which generalize existing algorithms and maintain similar running times to traditional shortest-path algorithms, making them viable for real-world applications. The research includes proofs of optimality and addresses challenges like high loss rates and varying transmission ranges associated with different rates.