The structural and electronic properties of SinCn (n = 7–15) cage-like clusters doped with boron and nitrogen atoms have been investigated using spin-polarized density functional calculations. We found that the B@SinCn and N@SinCn clusters energetically favour cage-like structures, and the B/N dopant prefers to be located at the interior/surface site of the Si frame. Theoretical results indicate that four clusters are highly stable, which are B@Si8C8, N@Si14C14, N@Si8C8, and N@Si12C12 clusters. On the basis of the lowest-energy structures obtained, the size dependence of electronic properties such as binding energy, gap between the highest occupied molecular orbital and the lowest unoccupied molecular orbital (HOMO–LUMO gap), vertical ionization potential, electron affinity, Mulliken charge, etc has been calculated and analysed.