Onions should be planted about 1 to 2 inches deep in the soil. Planting them too shallow can result in the onions not developing properly, while planting them too deep can stunt their growth.