We propose an in-situ method to calibrate the coil constants of the optical atomic magnetometer. This method is based on measuring the Larmor precession of spin polarized alkali metal atoms and has been demonstrated on a K-Rb hybrid atomic magnetometer. Oscillation fields of different frequencies are swept on the transverse coil. By extracting the resonance frequency through phase-frequency analysis of electron spin projection, the coil constants are calibrated to be 323.1 ± 0.28 nT/mA, 108 ± 0.04 nT/Ma, and 185.8 ± 1.03 nT/mA along the X, Y, and Z directions, respectively.