To explore the optimal planting density of ‘Tiansu 5’ in the Urumqi area of Xinjiang, and provide a reference for the rational promotion of this variety, an experiment was conducted combining the actual mechanized sowing of local foxtail millet and the results of previous pre-tests. Based on the common row spacing of 40 cm, 45 cm, and 50 cm, and the in-field planting distance of 10 cm, six planting densities (400 000, 444 000, 500 000, 600 000, 667 000, 750 000 plants /hm2) were set up. The differences and changing trends of agronomic and yield traits of ‘Tiansu 5’ under the six planting densities were compared, and correlation and regression analyses were conducted. Under the six planting densities, the differences in main stem nodes, main stem diameter, leaf number, length of the internode below the panicle, effective panicle number, main panicle length, main panicle diameter, main panicle weight, main panicle grain weight, main panicle grain number, and yield were extremely significant (P<0.01), while the differences in main stem length, leaf width, and 1000-grain weight were significant (P<0.05), and the differences in tiller number, leaf length, leaf length-to-width ratio, and grain yield rate were not significant (P>0.05). With the increase of planting density, the effective panicle number gradually increased, while the main stem length, length of the internode below the panicle, and main panicle length gradually decreased. The main panicle weight, main panicle grain weight, main panicle grain number, and 1000-grain weight showed a trend of first decreasing and then increasing, and the main stem nodes, main stem diameter, leaf number, leaf width, main panicle diameter, and yield showed a trend of first increasing and then decreasing. Yield was extremely significantly positively correlated with main panicle diameter, main panicle weight, main panicle grain weight, and 1000-grain weight, and significantly positively correlated with grain yield rate. There was an extremely significant positive linear regression relationship between yield and tiller number, effective panicle number, main panicle length, main panicle grain weight, and grain yield rate. The yield was the highest at the planting density of 600 000 plants per hectare, which is the recommended planting density in the Urumqi area.