It is native to California, Baja California (México), Nevada, and Oregon, growing below 3000m in elevation.
It is a common plant in many types of habitats, including chaparral, oak woodland, grassland, yellow pine forest, red fir forest, lodgepole forest, and subalpine forest.