There are 20 mineral elements necessary or beneficial for plant growth. Carbon (C), hydrogen (H), and oxygen (O) are supplied by air and water. The six macronutrients, nitrogen (N), phosphorus (P), potassium (K), calcium (Ca), magnesium (Mg), and sulfur (S) are required by plants in large amounts.