Compressor Gain Reduction Calculator

Set the threshold, ratio and knee, then read the gain reduction and output level at any input peak, plus the makeup gain that puts the peak back where it started.

Levels are peak values in dBFS, so 0 is full scale. A knee width of 0 dB is a hard knee; a wider knee starts compressing gradually around the threshold.

Output level against input, -60 to 0 dBFS on both axes. The dashed line is unity gain; the dot marks the input peak you entered.
Gain reduction across the input range at this setting
InputGain reductionOutput

The gain computer works in decibels. Above the threshold the output rises 1 dB for every R dB of input, where R is the ratio, so the reduction is (input - threshold) x (1 / R - 1) and the output level is the input plus that reduction. A ratio of 4:1 therefore turns 4 dB over the threshold into 1 dB over it, a ratio of 1:1 leaves the signal untouched, and a very high ratio approaches limiting at the threshold. Below the threshold the reduction is zero and the signal passes unchanged. A soft knee blends the two regions: across a knee width W centred on the threshold the reduction follows a quadratic curve that is zero at the lower edge, a quarter of the knee's full reduction at the threshold and exactly the hard-knee value at the upper edge, so the curve and its slope join smoothly. Makeup gain is added after the gain computer; the peak-restoring figure is simply the negative of the gain reduction, and applying it with the same setting keeps the peak at its original level while everything above the threshold is compressed. This page models the static transfer curve and one peak level. It does not model attack or release timing, programme-dependent behaviour, RMS or loudness detection, look-ahead, sidechain filtering or parallel mix, so a real compressor on music moves around these figures. Everything is calculated in your browser; nothing is uploaded, stored or sent anywhere.