audio crossfade gain calculator
Audio Crossfade Gain Calculator guide
Use the coefficients to check an automation point or compare how two crossfade laws weight incoming and outgoing audio.
Play the instrument ↑- Worked example
- At 50 percent, the linear law applies 0.5 to each source.
Formula and units
For normalized position t from zero to one, linear fades use 1 minus t and t. Equal-power fades use cosine and sine of t times half pi. The latter keeps the sum of squared coefficients equal to one.
Worked examples
At 50 percent, the linear law applies 0.5 to each source. Equal-power applies about 0.707107 to each. The linear pair adds to one, while the equal-power pair has squared gains that add to one.
At 25 percent, the linear gains are 0.75 out and 0.25 in. Equal-power gives about 0.92388 and 0.382683. Both laws reach out one and in zero at the start, and reverse those values at the end.
Choose a law with the source relationship in mind
For unrelated signals of similar power, the squared coefficients indicate how their expected energies combine. A linear midpoint can yield an energy dip relative to either source alone. An equal-power midpoint keeps the expected energy closer to the endpoints under that assumption.
For two identical in-phase copies, summing amplitudes matters instead. At the equal-power midpoint the gains add to about 1.4142, which produces an amplitude increase of about 3 dB. At the linear midpoint they add to one. Signals with partially shared material can sit between these cases.
Use a coefficient in audio automation
If the editor expects decibels, convert a positive linear gain with twenty times the base-ten logarithm. Zero gain corresponds to silence. A coefficient of 0.5 corresponds to about −6.02 dB, while 0.7071 gives about −3.01 dB.
Crossfade position is a fraction of elapsed overlap. A position of 25 percent in a 400 ms overlap falls 100 ms after the fade begins. The tool gives the gains for that moment. Actual editors can use other fade laws and may anchor automation differently at the overlap edges.
Check a point on a real automation envelope
For a fade starting at 1.2 seconds and ending at 1.6 seconds, the midpoint lies at 1.4 seconds. Enter 50 percent and compare the resulting gain pair with the editor. If tracking automation in dB, translate each coefficient to its amplitude dB before comparing. The mathematical midpoint refers to time, even if the plotted gain curve looks asymmetric on a logarithmic axis.
Use two copies of a stable tone to demonstrate the difference. When both are aligned and in phase, a linear midpoint adds to unity gain. In equal-power mode it adds to about 1.414. Reverse the polarity of one copy and compare the aligned midpoint again. Both pairs are equal at the midpoint, so the inverted copy cancels its counterpart. Timing errors or different pitches change that behavior.
For two unrelated music clips, start with a short fade and listen across the overlap at a fixed playback volume. Measure whether the transition pulls level down or creates a peak that later limits. A longer fade spreads the transition differently over the structure of the music. Compare the same fractional points for different overlap lengths. The coefficient law stays the same even though the absolute times move.
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
Will equal-power always sound equally loud?
The term describes the squared gain law. The result depends on how related the sources are, their spectra and their individual loudness. A quieter source will not automatically become equally loud just because the coefficients follow this law.
How do I know which output gain goes where?
Out applies to the material that ends. In applies to the material that begins. The position runs from the start of the overlap to the end, so the curve moves energy toward the incoming signal.
Why might crossfading create clipping?
Two strong aligned signals can add to a larger sample than either one alone. Leave headroom and inspect the rendered overlap, particularly when sources are versions of the same take.
Is this a file crossfader?
This calculator displays gain coefficients. Use an audio editor or automation engine to apply them to audio over time. The linked stereo tool uses a different operation for redistributing channel differences.