ToolSphere

Decibel (dB) Converter

Electronics

Convert power or voltage ratios to decibels and back: 10·log₁₀ for power, 20·log₁₀ for voltage and current, with the dBm level shown in milliwatts. Free.

Decibel converter input

Calculation result
Ratio to dB
6.0206 dB
dB to Ratio
1.9999

Formula: dB = 20 * log10(V2/V1)

On this browser only

Give feedback

Did this tool help?

Tell us what worked, what didn’t, or what you’d like next.

Opens Google Forms in a new tab with this tool’s name filled in. No sign-in or email required. Feedback is optional.

How to use Decibel (dB) Converter

  1. 1Choose Voltage/Current Ratio for an amplitude ratio or Power Ratio for a power comparison.
  2. 2Enter a positive linear ratio to read its decibel value in the Ratio to dB result.
  3. 3Enter a decibel value separately to read the corresponding linear ratio in the dB to Ratio result; these are independent conversions.
  4. 4In Power Ratio mode, read the additional milliwatt result only when the entered number represents an absolute dBm level.
  5. 5Use Copy to save the selected mode and both conversions, and keep the ratio or reference-level meaning in your notes.

About Decibel (dB) Converter

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.

Guides and tutorials

Frequently asked questions

How do I convert a ratio to dB?

Use 10 × log₁₀(ratio) for power and 20 × log₁₀(ratio) for voltage or current magnitude. Choose the matching mode and enter a positive linear ratio.

How do I convert dB to a linear ratio?

Use 10^(dB / 10) for a power ratio or 10^(dB / 20) for an amplitude ratio. The Decibel Value field performs this conversion independently of the Linear Ratio field.

Why do voltage and power use different decibel formulas?

For a fixed resistance, power varies with the square of voltage, which introduces the extra factor in the logarithm. A voltage gain alone does not specify power gain when the relevant impedances differ.

Is doubling the signal 3 dB or 6 dB?

A power ratio of two is 3.0103 dB, while a voltage magnitude ratio of two is 6.0206 dB. State which quantity doubled before choosing a formula.

What does a negative dB value mean?

For a positive linear ratio, negative dB means the output magnitude or power is below the reference. It represents attenuation rather than a negative amount of physical power.

What is the difference between dB and dBm?

dB expresses a ratio, while dBm is an absolute power level referenced to 1 mW. The additional milliwatt readout in power mode assumes the entered number is a dBm level.

How many milliwatts is 0 dBm?

Zero dBm is 1 mW because it equals the reference power. A level of 20 dBm is 100 mW, and −10 dBm is 0.1 mW.

Can I convert dB to dBA here?

No, A-weighting depends on sound frequency, and an overall dB value alone is insufficient for a general conversion. This page converts electrical ratios and dBm levels; it has no acoustic spectrum or weighting input.

Why is zero or a negative ratio rejected?

The real logarithm used for dB needs a positive argument. If a negative voltage ratio describes inversion, convert its magnitude and consider the phase change separately.

Why does changing one input not update the other input?

The ratio-to-dB and dB-to-ratio fields are independent conversions. Read the result associated with the input you changed rather than assuming both fields stay synchronized.

Have a suggestion for Decibel (dB) Converter?Share your feedback ↗