It grows in blackbrush scrub and mixed desert shrub up into pinyon juniper woodland and ponderosa pine forest communities, as far north as South Dakota, and up to 8500 feet in elevation in the southwest.