Analcime occurs as a primary mineral in analcime basalt and other alkaline igneous rocks. It also occurs as cavity and vesicle fillings associated with prehnite, calcite, and zeolites. Analcime forms in sedimentary rocks at temperatures below about , and so its presence indicates that the rock has experienced shallow diagenesis.
Analcime is a mineral that forms in low-temperature conditions within sedimentary rocks, suggesting that the rock has undergone shallow diagenesis.