The interface energy spectrum in real band-inverted PbTe/SnTe heterojunctions formed in both the ( 111) and ( 001) planes is calculated. It is shown that, even if the valence band of SnTe lies above the conduction band minimum of PbTe, the interface midgap states may still exist due to the strain effect on the band gaps.