Convert decibels and linear ratios in either direction
This decibel converter calculates a gain or loss in dB from a positive linear ratio, and converts a dB value back to a ratio. Choose voltage/current mode for amplitude comparisons or power mode for power ratios. In power mode, the page also shows the entered decibel number interpreted as dBm and converted to milliwatts.
The two input fields are independent. Editing Linear Ratio updates the Ratio to dB result; editing Decibel Value updates the dB to Ratio result. They are not synchronized representations of a single editable quantity. This lets you check two separate conversions, but it also means a number remaining in the other input is not automatically the inverse of your latest entry.
Which formula should you use?
For a power ratio, dB = 10 × log₁₀(Pout / Pin). For a voltage magnitude ratio, dB = 20 × log₁₀(Vout / Vin). The current-magnitude form uses the same factor as voltage. The inverse equations are power ratio = 10^(dB / 10) and amplitude ratio = 10^(dB / 20).
The relationship between voltage gain and power gain needs care. Power is proportional to voltage squared when resistance is fixed. If the impedances differ, a voltage-ratio result alone does not establish the power gain. Choose the mode for the quantity you actually have rather than selecting whichever formula produces the expected answer.
A ratio above unity gives positive dB, unity gives zero dB, and a positive ratio below unity gives negative dB. A nonpositive ratio cannot be passed to a real logarithm here, so the page shows an error instead of a decibel result. An electrical signal's negative sign may describe inversion; use its magnitude when calculating gain and track phase separately.
Worked examples: the same ratio in two modes
Enter the following ratios and compare the modes. These results use the converter's own conversion functions and its five-significant-figure formatting.
| Linear ratio | Voltage/current mode | Power mode |
|---|---|---|
| 2 | 6.0206 dB | 3.0103 dB |
| 10 | 20 dB | 10 dB |
| 0.5 | −6.0206 dB | −3.0103 dB |
| 0.1 | −20 dB | −10 dB |
This is why doubling voltage and doubling power are different statements. The first row gives a useful check that you selected the intended mode before processing a specification. The negative rows represent attenuation, not a negative physical power or voltage magnitude.
Now enter a dB value in the other field. At 6 dB, the voltage ratio is 1.9953 and the power ratio is 3.9811. At −3 dB, those ratios are 0.70795 and 0.50119. Familiar rounded rules of thumb are convenient, but use the actual inverse conversion when rounding differences matter.
dB versus dBm and milliwatts
Plain dB is a comparison; dBm specifies power relative to 1 mW. The conversion is PmW = 10^(dBm / 10). In Power Ratio mode, the same entered number is additionally interpreted as an absolute dBm level in the milliwatt line. That line is meaningful only if your original number really is a dBm specification.
| Entered absolute level | Power |
|---|---|
| 0 dBm | 1 mW |
| 10 dBm | 10 mW |
| 20 dBm | 100 mW |
| −10 dBm | 0.1 mW |
A negative dBm value means less power than the reference, not negative power. Likewise, zero dBm is not an absence of signal. Do not read a relative gain in dB as an absolute milliwatt output unless an input power or reference level is also known. This page does not accept a milliwatt input to perform the reverse dBm conversion.
Combining gains without confusing levels
For a consistently defined signal chain, gains and losses in decibels add. A 20 dB power gain followed by a 3 dB loss gives 17 dB net gain. Converting that result back in power mode gives a ratio of 50.119. This is equivalent to multiplying the linear power ratios of the individual stages.
Absolute levels need different handling. Applying a gain in dB to an input in dBm produces an output in dBm, but adding two dBm levels directly is not a way to combine powers. Convert compatible independent powers to linear units before adding them. Coherent signals also require attention to phase rather than a blind addition of powers.
The RF link budget calculator applies these ideas to transmit power, antenna gain and propagation loss. The decibel worked guide provides more examples of reference levels and signal chains.
Why dB cannot be converted to dBA from one number
Searches for dB-to-dBA conversion describe a different task. dBA is an A-weighted sound level: the weighting depends on the frequency content of the sound. A single overall unweighted level does not supply enough information for a universal conversion. This tool has no frequency spectrum, microphone measurement or A-weighting input, so it cannot perform that calculation.
The OSHA sound-measurement explanation describes frequency weighting and the dBA designation. For electrical filter work instead, the RC filter calculator finds the corner frequency, and the Bode plot generator shows gain and phase across frequency. Keep the reference quantity, selected mode and measurement conditions explicit whenever recording a decibel result.