In this paper, by using the linearized augmented plane wave based on the density functional theory of the first principles, the parameters of a unit cell were o ptimized for CoSi firstly. The steady state energy of a many-particle system was -134684297Ry. The corresponding volume and lattice parameter of the unit cell in the steady state were 5899360a.u.3 and 04438nm respectively. Secondly, the calculations of the electronic structures for CoSi and CoSi075A l025 were performed. At the same time, the characteristics of electronic structures of CoSi and CoSi075Al025 were analyzed. The shape of density of states of CoSi in this paper is almost the same as that of the exist ing calculations except for some differences. The Fermi level of CoSi075 Al025 shifted slightly, compared with that of CoSi. Finally, the int rinsic relations between the electronic structures of CoSi and CoSi075Al 025 and their respective thermoelectric properties were discussed in det ail. The increase of material factor B of CoSi075Al025 w as attributed to the doping with Al. Therefore, doping was a practicable means t o improve the thermoelectric property of CoSi.