Soybeans, for example, are categorized as legumes and therefore fix their own nitrogen, but do require adequate amounts of P and K, if soil tests results recommend it (this is based on soil type and texture, soil pH, previous crops, and other variables).