GestureSynth.me

Music calculator

Audio Decibel Calculator

Convert an amplitude gain multiplier to dB or turn a dB adjustment into a linear coefficient.

audio decibel calculator

Audio Decibel Calculator guide

Mixers often show decibels while a browser gain node or a DSP multiplier takes a linear number. Choose the direction that matches the control you are setting.

Play the instrument ↑
Input and result
Convert an amplitude gain multiplier to dB or turn a dB adjustment into a linear coefficient.

Formula and units

Amplitude ratio is 10 raised to dB divided by 20. Convert back with 20 times log base ten of the ratio. These equations are for amplitude. Power ratios use a different factor.

Worked examples

A −6 dB setting gives about 0.501187 times amplitude. Exact half amplitude is about −6.0206 dB. +6 dB gives about 1.995262 times amplitude. Unity gain is 1 and 0 dB.

If an audio peak is at −12 dBFS and you apply +3 dB of digital gain, the ideal new peak is −9 dBFS. The coefficient for that change is about 1.412538. Multiple gain stages multiply their linear factors and add their dB changes. A +6 dB stage followed by −6 dB returns to unity before any clipping or nonlinear processing.

Add gain changes across a signal chain

A setup may trim a source by 9 dB before a compressor and restore 4 dB afterward. If you temporarily bypass the compression action, the overall change is −5 dB or around 0.562341 times amplitude. In a live system a limiter, saturation stage, or a clipping converter can change that outcome. Use the gain math to predict linear parts of the chain and measure the level afterward if the signal passes through nonlinear processing.

When a normalized digital peak is 0.25 of full scale, its level is approximately −12.0412 dBFS. Multiplying the sample by two moves its peak to 0.5 and adds about 6.0206 dB. Doubling it twice puts the peak at unity. A floating-point editor can represent higher internal values but a fixed-range output or export can still clip, depending on its processing chain.

Check a gain stage without overloading the output

If a normalized peak is currently −9 dBFS, adding 6 dB leaves about 3 dB of peak headroom in a linear path. Adding another 6 dB would place that peak 3 dB above full scale. The multiplication itself can be represented inside many floating-point processors, but an output stage may clip. Check the final peak after any gain changes and lower the signal before exporting if needed.

A gain of 0.1 means the amplitude is one tenth of the original. It gives −20 dB. A gain of 0.01 gives −40 dB. These simple landmarks help detect a decimal slip when entering code or patch values. An amplitude gain of 2 is about +6.02 dB, so the inverse of an exact −6 dB coefficient is slightly smaller than 2.

Some plug-ins use a knob position that does not map linearly to gain. Read the numeric coefficient or decibel label when you are comparing settings. Two knobs showing halfway travel can apply different levels of attenuation. The calculator is useful when a system exposes gain values directly and you want to preserve the same level change between tools.

A hardware calibration may use a voltage ratio at fixed impedance, while a digital gain node takes a sample multiplier. Both use the amplitude conversion. If the manual instead specifies electrical power, use the power ratio convention before comparing numbers.

Answers before you play

Common questions

How do I represent silence?

In gain-to-dB mode, enter zero. The output is −∞ dB. A very negative finite setting still represents some nonzero gain.

Why does the ratio have no unit?

The amplitude ratio compares two magnitudes expressed in the same unit. A gain of 0.5 means the output amplitude is half the input amplitude.

Can I estimate perceived loudness from this result?

The calculator reports signal amplitude gain. Listening level, spectrum, playback system, and human hearing affect perceived loudness.

What is the gain for a 20 dB boost?

It is ten times amplitude. Use headroom when applying that amount to a digital signal near full scale.