This paper presents a frequency offset estimation algorithm based on TRS (tracking reference signal) for 5G NR system in the UE tracking mode. The algorithm makes use of the 4 TRS resources within 2 consecutive slots in 5G NR FR1 to provide a larger frequency tracking range while maintaining a non-decreasing accuracy with a little more calculation complexity.