Organisms use information to make adaptive decisions in various contexts, including aggression. Potentially weaker, but better-informed, contestants should give up earlier to reduce fighting costs by using information related to their own lower success such as their size relative to their opponent and past contest outcomes to make this choice. Here, we examined whether intruders of the hermit crab Pagurus minutus could use information about their (1) smaller size, (2) past contest defeats, (3) opponent’s past wins, or (4) relationship in the dominance hierarchy to their opponent when making a decision to give up during male–male contests for a female. In all trials, we randomly matched a smaller intruder with a larger opponent that was guarding a female. Our analyses suggest that P. minutus intruders can use all four types of information to decide whether to give up a contest without escalation or decrease its duration after escalation; it is the first species of Pagurus reported to do so, and the second reported to be able to distinguish familiar opponents from others in the context of male–male contests. These findings demonstrate the importance of cognitive abilities in minimizing costs when competing for vital resources.