Complex tasting divalent salts (CTDS) are present in our daily diet, contributing to multiple poorly understood taste sensations. CTDS evoking metallic, bitter, salty, and astringent sensations include the divalent salts of iron, zinc, copper, and magnesium. To identify pathways involved with the complex perception of the above salts, taste preference tests (two bottles, brief access) were performed in wild-type (WT) mice and in mice lacking (1) the T1R3 receptor, (2) TRPV1, the capsaicin receptor, or (3) the TRPM5 channel, the latter being necessary for the perception of sweet, bitter, and umami tasting stimuli. At low concentrations, FeSO4 and ZnSO4 were perceived as pleasant stimuli by WT mice, and this effect was fully reversed in TRPM5 knock-out mice. In contrast, MgSO4 and CuSO4 were aversive to WT mice, but for MgSO4 the aversion was abolished in TRPM5 knock-out animals, and for CuSO4, aversion decreased in both TRPV1- and TRPM5-deficient animals. Behavioral tests revealed that the T1R3 subunit of the sweet and umami receptors is implicated in the hedonically positive perception of FeSO4 and ZnSO4. For high concentrations of CTDS, the omission of TRPV1 reduced aversion. Imaging studies on heterologously expressed TRPM5 and TRPV1 channels are consistent with the behavioral experiments. Together, these results rationalize the complexity of metallic taste by showing that at low concentrations, compounds such as FeSO4 and ZnSO4 stimulate the gustatory system through the hedonically positive T1R3-TRPM5 pathway, and at higher concentrations, their aversion is mediated, in part, by the activation of TRPV1.