You cannot tell a hermit crab’s sex just by looking at it.
Why:
* There are no obvious external differences or visible reproductive organs.
* Internal differences require dissection, which is not done for pets.
Unless scientifically examined, you won’t know if it is male or female.