<p>An apparatus and a method for compensating a frequency are provided. The apparatus for compensating a frequency includes a first counter circuit for setting a reference section using a main clock; a second counter circuit for detecting a frequency change of sub clock using the reference section; and a frequency compensation circuit for providing a compensated frequency using the changed frequency information of the sub clock.</p>