The plantaris muscle is a weak flexor of the leg at the knee joint and a plantar flexor of the foot at the ankle joint. It is a rudimentary muscle, which is sometimes compared to the one in the forearm. (See "palmaris longus")