In this work, the simultaneous quantification of three alkaline ions (potassium, sodium and ammonium) from a single impedance spectrum is presented. For this purpose, a generic ionophore - dibenzo-18-crown-6 - was used as a recognition element, entrapped into a polymeric matrix of polypyrrole generated by electropolymerization. Electrochemical impedance spectroscopy (EIS) and artificial neural networks (ANNs) were employed to obtain and process the data, respectively. In fact, EIS detected the ions exchanged between the medium and the sensing layer whereas ANNs, after an appropriated training process, could turn the impedance spectrum into concentrations values. A sequential injection analysis (SIA) system was employed for operation and to automatically generate the information required for the training of the ANN. Best results were obtained by using a backpropagation neural network made up by two hidden layers: the first one contained three neurons with the radbas transfer function and the second one ten neurons with the tansig transfer function. Three commercial fertilizers were tested employing the proposed methodology on account of the high complexity of their matrix. The experimental results were compared with reference methods.