Although they can grow within a wide pH range, with the ability to tolerate either acidic or alkaline soils, walnut trees prefer near-neutral soil, with an ideal pH between 6.8 and 7.2. If you are unsure of your soil's pH, a soil test kit can be purchased at most garden stores.