In most species, sex is determined during fertilization. However, the sex of most turtles, alligators, and crocodiles is determined after fertilization. The temperature of the developing eggs is what decides whether the offspring will be male or female. This is called temperature-dependent sex determination, or TSD.
Research shows that if a turtle's eggs incubate below 27.7° Celsius (81.86° Fahrenheit), the turtle hatchlings will be male. If the eggs incubate above 31° Celsius (88.8° Fahrenheit), however, the hatchlings will be female. Temperatures that fluctuate between the two extremes will produce a mix of male and female baby turtles.
Researchers have also noted that the warmer the sand, the higher the ratio of female turtles. As the Earth experiences climate change, increased temperatures could result in skewed and even lethal incubation conditions, which would impact turtle species and other reptiles.