Sowing density is one of the most influential factors affecting corn yield. Here, we tested the hypothesis that, according to soil attributes, maximum corn productivity can be attained by varying the seed population. Specifically, our objectives were to identify the soil attributes that affect grain yield, in order to generate a model to define the optimum sowing rate as a function of the attributes identified, and determine which vegetative growth indices can be used to predict yield most accurately. The experiment was conducted in Chapadão do Céu-GO in 2018 and 2019 at two different locations. Corn was sown as the second crop after the soybean harvest. The hybrids used were AG 8700 PRO3 and FS 401 PW, which have similar characteristics and an average 135-day cropping cycle. Tested sowing rates were 50, 55, 60, and 65 thousand seeds ha−1. Soil attributes evaluated included pH, calcium, magnesium, phosphorus, potassium, organic matter, clay content, cation exchange capacity, and base saturation. Additionally, we measured the correlation between the different vegetative growth indices and yield. Linear correlations were obtained through Pearson’s correlation network, followed by path analysis for the selection of cause and effect variables, which formed the decision trees to estimate yield and seeding density. Magnesium and apparent electrical conductivity (ECa) were the most important soil attributes for determining sowing density. Thus, the plant population should be 56,000 plants ha−1 to attain maximum yield at ECa values > 7.44 mS m−1. In addition, the plant population should be 64,800 plants ha−1 at values < 7.44 mS m−1 when magnesium levels are greater than 0.13 g kg−1, and 57,210 plants ha−1 when magnesium content is lower. Trial validation showed that the decision tree effectively predicted optimum plant population under the local experimental conditions, where yield did not significantly differ among populations.