The tortoise can tell the sex mainly by the position of the anus on its tail, because its genitals are on the inside of the anus, and it can be confirmed by knowing the exact position of the anus. This identification method is the most commonly used in the market. Usually the anus is male when it is far away from the carapace, and female when it is in the carapace or flush with the carapace.
This picture shows a left woman and a right man.