GestureSynth.me

Music calculator

dBFS Headroom Calculator

Find the sample-peak margin to a chosen dBFS ceiling or the attenuation needed to reach it.

dBFS headroom calculator

dBFS Headroom Calculator guide

Enter a measured sample peak and your intended output ceiling. Use the signed result to see whether a uniform gain change would cross that limit.

Play the instrument ↑
Worked example
A file with a peak of −6 dBFS and a target ceiling of −1 dBFS has 5 dB of margin.

Formula and units

Subtract the measured peak from the target ceiling, both expressed using the same dBFS reference. The difference is positive while the peak lies below target and negative when the signal exceeds it.

Worked examples

A file with a peak of −6 dBFS and a target ceiling of −1 dBFS has 5 dB of margin. A uniform gain of +5 dB would bring that measured sample peak to −1 dBFS before any later processing.

If the measured peak is −0.5 dBFS and the ceiling is −1 dBFS, the result is −0.5 dB. The negative margin means the measured peak exceeds the chosen ceiling by half a decibel.

Pick the peak that describes your destination

In a stereo export, use the greater of the two sample peaks if the same gain applies to both channels. A peak from a recording input may not be the same as the peak after a fader, fade, plugin, oversampling stage or mix bus. Inspect the stage whose limit you intend to check.

A true-peak limit calls for a true-peak reading. Sample peaks only describe stored sample positions. Reconstruction and later processing can create intermediate excursions above the measured samples. Preserve the units in your notes so a sample peak and a true peak are not treated as identical evidence.

Predict uniform changes without assuming a limiter

A gain control adds a fixed number of decibels to all levels in a linear stage. Compression and limiting can apply different gain at different times. A gain margin here does not predict how a compressor's attack or release will work or how much its output will alter the loudest instant.

On a floating-point bus you may see a positive dBFS peak. You can calculate the attenuation needed before a fixed-range stage or export. If a waveform already flattened earlier, reducing its level lowers the resulting waveform but cannot reconstruct the lost shape.

Check a render with three reference peaks

Set the ceiling to −1 dBFS and enter sample peaks of −12, −1 and 0. The results should be +11, 0 and −1 dB respectively. These cases represent enough margin for an increase, exact arrival at the limit, and one decibel of required attenuation. If you enter a previous peak from a different signal stage, none of the examples predict the new measured peak accurately.

Suppose the left channel reads −3 dBFS and the right reads −8 dBFS before export. A shared gain targeted against −1 dBFS has only two decibels of allowable increase, determined by the stronger left channel. Under the arithmetic model, the right channel would then peak at −6 dBFS. If you intend to correct channel balance, do that first and meter both again at the destination.

If a floating-point intermediate peaks at +2 dBFS and the chosen ceiling is −1 dBFS, an ideal linear attenuation of 3 dB moves it to the target. In a final fixed-point delivery, verify the newly rendered file as a separate measurement. Later filtering or sample-rate conversion can change peaks. The calculator provides the initial gain adjustment, leaving verification of the entire signal path to the output measurement.

Inputs and assumptions

The tool calculates from the values in the form. Keep the reference and units visible when copying the result to session notes. The displayed precision describes the arithmetic and may exceed what your meter, source file or score can support.

Answers before you play

Common questions

Can I enter LUFS as the measured peak?

Use a sample-peak reading expressed in dBFS. LUFS and RMS express different properties over intervals. A file can have the same integrated loudness as another file and still have a notably different peak.

Does headroom have to be positive?

A negative value is useful because it shows how much a measured peak exceeds the intended ceiling. A zero result places that peak at the chosen ceiling in the math.

Can I use separate ceilings for each channel?

Calculate each channel with its own peak and intended ceiling if they are handled separately. For a shared master gain, use the tightest applicable margin so every channel is considered.

Does the tool set a level in the file?

It returns a number for the values you enter. Apply any gain in your editor, render the result, and measure the actual export if a maximum level needs verification.