Sowing density and row spacing of barley affect the crop efficiency, resource use and final yield, with different genotypes likely to respond differently to this agrotechnical factor. The effect of sowing density on the barley yield, as shaped by structural yield elements such as the number of ears, number of grains per ears and thousand grain weight, depends on the interaction of this factor with the genotype and the growing conditions. Two spring barley genotypes with a black grain color (H. vulgare L. var. nigricans and H. vulgare L. var. rimpaui), differing in ear structure and affiliation to the original wild forms, were studied. Two independent, two-year field experiments were conducted in 2019–2020 and 2021–2022 at two locations with contrasting soil conditions. The effects of genotype and sowing density interactions on the yield, harvest index and structural elements of the yield were assessed. The arley yield was dependent on the interaction of genotype and sowing density but also varied by location. H. v. var. nigricans yielded better at higher densities, while H. v. var. rimpaui showed greater tillering potential at low densities. Environmental factors such as rainfall, temperature and soil composition affected the number of fertile ears, number of grains per ear and thousand grain weight.