Rational fertilizer management is crucial in the efficient use of resources that are basically non-renewable and that can have a great environmental impact when used without scientific basis. The availability of scientifically sound decision-making tools for rational fertilization is scarce. We have developed a Windows program to calculate the required seasonal N, P and K rates, and the most cost-effective combination of commercial fertilizers. The tool also provides estimates of the Ca, Mg and S balances in the field resulting from the fertilizer program chosen. Novel aspects of the calculations include the development of stochastic flexible fertilizer programs for N and the calculation of acidification and N losses. Regarding P and K, estimations are provided on the grounds of threshold values of usual availability indexes, something frequently unknown by final users. Also, it allows the users to determine the best complex fertilizer for pre-plant applications to avoid blending of simple fertilizers at the farm, a task usually complex for farmers. The application may be useful both to the fertilizer supply and demand sides. In addition, it may be used for teaching as it helps understanding the rationale behind this management practice.