In this study, we evaluated how increased cation supply can alleviate the toxic effects of NaCl on plants and how it affects essential oils (EOs) and phenolic diterpene composition in leaves of rosemary (Rosmarinus officinalis L.) plants grown in pots. Two concentrations of the chloride salts KCl, CaCl2, MgCl2, and FeCl3 were used together with 100 mM NaCl to study the effects of these nutrients on plant mineral nutrition and leaf monoterpene, phenolic diterpene, and EO composition. The addition of 100 mM NaCl, which decreased K+, Ca2+, and Mg2+ concentrations with increasing Na+ in leaves, significantly altered secondary metabolite accumulation. Addition of MgCl2 and FeCl3 altered leaf EO composition in 100 mM NaCl–treated rosemary plants while KCl and CaCl2 did not. Furthermore, addition of CaCl2 promoted the accumulation of the major phenolic diterpene, carnosic acid, in the leaves. The carnosol concentration was reduced by the addition of KCl to salt‐stressed plants. It is concluded that different salt applications in combination with NaCl treatment may have a pronounced effect on phenolic diterpene and EO composition in rosemary leaves thus indicating that ionic interactions may be carefully considered in the cultivation of these species to achieve the desired concentrations of these secondary metabolites.