Steroidal glycoalkaloids (SGA) are sterol-derived neurotoxic defence substances present in several members of the Solanaceae. In the potato (Solanum tuberosum), high SGA levels may render tubers harmful for consumption. Tuber SGA levels depend on genetic factors, and can increase as a response to certain stresses and environmental conditions. To identify genes underlying the cultivar variation in tuber SGA levels, we investigated two potato cultivars differing in their SGA accumulation during wounding or light exposure; two known SGA-inducing treatments. Using microarray analysis coupled to sterol and SGA quantifications, we identified a small number of differentially expressed genes that were associated with increased SGA levels. Two of these genes, encoding distinct types of sterol Δ24-reductases, were by sense/antisense expression in transgenic potato plants shown to have differing roles in sterol and SGA metabolism. The results show that an increased SGA level in potato tubers during both wounding and light exposure is mediated by coordinated expression of a set of key genes in isoprenoid and steroid metabolism, and suggest that differences in this expression underlie cultivar variations in SGA levels. These results may find use within potato breeding and quality assessment.