Based on first-principles calculation of density functional theory, this study investigates the structural stability, magnetic properties, and electronic properties of the three different phases (i.e. type 1, type 2, and type 3) of OsXCoSi (X=Ti, Zr, Hf) in a new quaternary Heusler alloy series. The corresponding equilibrium lattice constants of each type are optimized, and the change of formation enthalpy and elastic constant phonon spectrum show that the OsXCoSi (X=Ti, Zr, Hf) alloy is thermodynamically, dynamically and mechanically stable. Furthermore, the bonding features of each phase are discussed. It is found that all type 1 structures of OsXCoSi (X=Ti, Zr, Hf) exhibit natural half-metallicity (HM) in equilibrium lattice constant, and their equilibrium lattice constants in the ground state were determined to be 5.909 Å for OsTiCoSi, 6.155 Å for OsZrCoSi, and 6.100 Å for OsHfCoSi. Meanwhile, by testing the alloy under different pressures, the range of the integer magnetic moment non-equilibrium lattice constants for the three alloys OsTiCoSi, OsZrCoSi, and OsHfCoSi are 5.710 Å ∼ 6.329 Å, 5.696 Å ∼ 6.1557 Å and 5.716 Å ∼6.1009 Å, respectively, which is wide and is more close to the practical application for spin-polarized materials. In addition, its magnetic moment is consistent with the values given by the Slater–Pauling rule. Furthermore, the forming of the HM gap is examined by analysing the total and partial density of states, energy bands of alloy’s electronic property, with respect to the calculated results. What’s more, special attention is paid to the differences of the properties for series Heusler alloys. It is found that the electronics properties distinction is mainly based on valence electron changes. However, the lattice constants are susceptible to size of a nucleus.