Hydrodynamic forces can affect survival as well as limit the movement of motile benthic animals. An animal's danger of dislodgement depends on the hydrodynamic forces it experiences in its microhabitat relative to the force required to dislodge it (tenacity) from the substratum. We measured water flow and substratum characteristics in two different habitats of the shore crab Pachygrapsus crassipes: a wave-swept rocky shore and an intertidal mudflat. The maximum water velocities and accelerations in the microhabitats of the crabs at the wave-swept site were three times and two times greater, respectively, than at the mudflat site. In the laboratory, we measured the tenacity of crabs of various sizes on different substrata, and also measured their drag, lift and added-mass coefficients. Using these data, we calculated the flow conditions under which crabs would be overturned or sheared off the substratum in their two habitats. The net horizontal force (drag plus acceleration reaction) required to dislodge a crab on a rugose rock substratum was an order of magnitude greater than on smooth rock and two orders of magnitude greater than on mud. Our calculations indicate that, under non-storm conditions, crabs will not be dislodged from the substratum in either the mudflat or the wave-swept habitat when grasping the substratum with maximum tenacity. Moving crabs have lower tenacity and our calculations predict that hydrodynamic forces will restrict the mobility of large crabs more than that of small ones on smooth, but not on rugose rock.