There are three basic types of magma: basaltic, andesitic, and rhyolitic, each of which has a different mineral composition. All types of magma have a significant percentage of silicon dioxide. Basaltic magma is high in iron, magnesium, and calcium but low in potassium and sodium.