The risk posed by predation is one of the most fundamental aspects of an animal's environment. Avoidance of predators implies an ability to obtain reliable information about the risk of predation, and for many species, chemosensory cues are likely to be an important source of such information. Chemosensory cues reliably reveal the presence of predators or their presence in the recent past. We used retreat site selection experiments to test whether the Australian scincid lizard Eulamprus heatwolei uses chemical cues for predator detection and avoidance. Both adult and juvenile lizards were given the choice of retreat sites treated with scents from invertebrate predators, as well as sympatric and allopatric snake predators. Some of the snake predators were known to eat E. heatwolei, while others did not pose a predation threat. All invertebrate predators posed a risk to juveniles, but not adults because of their size. We found that juvenile E. heatwolei avoided predator odors more strongly than adults. Juveniles avoided both invertebrate predators and snakes, and the strongest response was toward the funnel web spider, the only ambush predator used in this experiment. This result may demonstrate the importance of predator ecology in the evolution of predator detection mechanisms, with chemical cues being more useful in detecting sedentary predators than active predators. Adult lizards showed no avoidance behavior toward predator odors. This result suggests an age specific shift in predator avoidance behavior as lizards get older and become too large for many predators. However, adults showed no response to the odor from the red-bellied black snake, a known predator of adult E. heatwolei. This finding further demonstrates the importance of predator ecology when examining communication between predators and prey. Chemical cues, which are persistent long after predators have vacated the area, may not be useful in detecting the red-bellied black snake, a wide-ranging active forager.