We report on an easy method to calibrate the transmission of radio-frequency (rf) voltages to the tunneling junction of a scanning tunneling microscope. The transmission strongly depends on frequency, as the cabling shows frequency dependent damping and the impedance mismatch between the cable and the tunneling junction induces reflections. To first order, the current-voltage characteristic of the junction induces a rf tunneling current of the same frequency as the rf voltage. Omnipresent non-linearities of the current-voltage characteristic of the junction to second order, however, generate an additional rectified DC. A direct comparison between this current and the second derivative of the current-voltage curve allows to determine the rf transmission to the tunneling junction. The transmission data up to 2 GHz were used to compensate the rf damping such that at every frequency a constant amplitude at the tunneling junction could be realized expanding the bandwidth of the experiment from less then 100 MHz to 2 GHz. (C) 2015 AIP Publishing LLC.