Lavender plants prefer slightly alkaline soil with a pH level between 6.5 and 8.0. You can test the pH of your soil using a soil test kit, which can be purchased at a garden center or online.