A high-frequency small-signal circuit model is introduced based on HBT. The instability in high-frequency amplifier and the stability method that adopts port-attached resistance are theoretically analyzed based on comment-emitter amplifier using the above model. The range of resistance can quickly be obtained by matlab,and the theoretical analysis is in good a greement with the simulation.