Crest factor is calculated by dividing the peak amplitude of a signal by its RMS value. The formula for crest factor is: Crest Factor = Peak Amplitude / RMS Value.