HomeEngineering & Automotive › Decibel Calculator

Decibel Calculator

Converts between a linear ratio and decibels using 10·log10 for power quantities or 20·log10 for amplitude quantities (voltage, current, sound pressure), and between dBm and milliwatts (0 dBm = 1 mW).

When to use

You need to express a gain, loss or signal ratio in dB, turn a dB figure back into a ratio, or convert an RF power level between dBm and mW/W.

Do not use when: You need to add two sound levels or account for distance attenuation, or you need plain logarithms (use logarithm).

Formula

power: dB = 10 × log10(ratio), ratio = 10^(dB/10); amplitude: dB = 20 × log10(ratio), ratio = 10^(dB/20); dBm = 10 × log10(P_mW), P_mW = 10^(dBm/10); dBW = dBm − 30

Amplitude quantities use 20·log10 because power is proportional to amplitude squared, so both conventions give the same dB for the same physical change. A negative dB value means attenuation (ratio below 1).

Inputs

ParameterTypeUnitRequiredDescription
quantityenum: power | amplitude | dbmdefault powerWhether the linear value is a power ratio, an amplitude (field) ratio, or an absolute power in mW for dBm.
linear_valuenumbernoThe ratio (output/input), or the power in milliwatts for quantity=dbm. Give either linear_value or decibel_value. Range: > 0
decibel_valuenumberdBnoLevel in dB (or dBm for quantity=dbm). Give either linear_value or decibel_value.

Outputs

OutputTypeUnitDescription
solved_forstringdecibel_value or linear_value.
decibel_valuenumberdB10·log10(ratio) for power, 20·log10(ratio) for amplitude, 10·log10(mW) for dBm.
linear_valuenumberThe ratio, or milliwatts for dBm.
power_rationumber10^(dB/10): the power ratio corresponding to this dB value.
amplitude_rationumber10^(dB/20): the voltage/current ratio corresponding to this dB value (power and amplitude modes).
milliwattsnumbermWAbsolute power (dBm mode only).
wattsnumberWAbsolute power in watts (dBm mode only).
dbwnumberdBWdBm − 30 (dBm mode only).
interpretationstringPlain-language reading of the result.

Example

Power ratio 1000: {"quantity":"power","linear_value":1000}{"solved_for":"decibel_value","decibel_value":30,"power_ratio":1000,"amplitude_ratio":31.622777,"interpretation":"Gain of 30 dB: output power is 1000× the input"}

20 dBm to milliwatts: {"quantity":"dbm","decibel_value":20}{"solved_for":"linear_value","linear_value":100,"milliwatts":100,"watts":0.1,"dbw":-10}

GET https://tttkmbb.com/api/v1/calculate/decibel?quantity=power&linear_value=1000

Machine access

Sources

FAQ

Is doubling 3 dB or 6 dB?

Doubling the power is +3.01 dB; doubling the voltage (or current or sound pressure) is +6.02 dB, which is also a 4× power increase.

What is the difference between dB and dBm?

dB is a ratio with no unit; dBm is an absolute power referenced to 1 mW (0 dBm = 1 mW, 30 dBm = 1 W, −30 dBm = 1 µW).

Related calculators