In order to understand well the different ferroelectric behaviour of quantum paraelectrics and ferroelectrics andthe origin of the ferroelectricity of the solid solution KTa0.5Nb0.5O3(KTN), we calculated the electronic structure ofCaTiO3, BaTiO3 and KTN by first principles calculation. From total energy analysis, it is shown that, with increasingcell volume, the crystals (CaTiO3, SrTiO3) will have a ferroelectric instability. For BaTiO3, the ferroelectricity willdisappear as the cell volume is decreased. From the density of states analysis, it is shown that the hybridization betweenB d and O p is very important for the ferroelectric stability of ABO3 perovskite ferroelectrics. This is consistent withthe analysis of band structure.