Decibels are calculated using a logarithmic ratio: dB = 10 × log₁₀(P/P₀) for power, or dB = 20 × log₁₀(A/A₀) for amplitude. You enter the measured value and a reference value, and the calculator returns the level in decibels, which compresses huge ranges into a manageable scale.
Formula
The decibel is not a unit like meters or seconds; it is a dimensionless ratio expressed on a logarithmic scale. For power quantities (watts, energy, intensity):
dB = 10 × log₁₀(P / P₀)
For amplitude quantities (voltage, sound pressure, distance):
dB = 20 × log₁₀(A / A₀)
Where:
- P = measured power (watts, or any power unit)
- P₀ = reference power (same unit as P)
- A = measured amplitude (volts, pascals, meters)
- A₀ = reference amplitude (same unit as A)
The factor of 10 vs 20 exists because power is proportional to amplitude squared. When you square an amplitude, its logarithm doubles, so the 20 factor keeps the result consistent for both types of measurement.
Worked Example
Using the default values: measured power = 100 W, reference power = 1 W, type = Power.
- Compute the ratio: 100 / 1 = 100
- Take the base-10 logarithm: log₁₀(100) = 2
- Multiply by 10: 10 × 2 = 20 dB
The calculator returns 20.00 dB with a power ratio of 100. This means the measured power is 100 times the reference, which equals exactly 20 dB. A 10-fold power increase is 10 dB, a 100-fold is 20 dB, and a 1000-fold is 30 dB.
Why Use a Logarithmic Scale?
Human hearing perceives loudness roughly logarithmically. A sound that is 10 times more intense sounds about twice as loud, not ten times louder. The decibel scale matches this perception better than a linear scale. Also, real-world measurements span enormous ranges — from the faintest audible sound at 0 dB (20 micropascals of pressure) to a jet engine at 130 dB (200 pascals). That is a ratio of 10 million in pressure, but only 130 in decibels. Without logarithms, you would need numbers with many zeros, which are unwieldy in engineering and acoustics.
Power vs Amplitude: The 10 and 20 Factors
The most common mistake is using the wrong factor. For power (watts, energy, intensity), use 10. For amplitude (voltage, sound pressure, displacement), use 20. Why? Because power is proportional to amplitude squared. If you double the voltage across a resistor, the power quadruples. In decibels:
- Doubling power → +3.01 dB
- Doubling amplitude → +6.02 dB
- Halving power → −3.01 dB
- Halving amplitude → −6.02 dB
In audio engineering, a +6 dB change in voltage is a doubling of amplitude, but a +3 dB change in power is a doubling of energy. Both are correct; they just refer to different quantities.
Reference Values: Absolute vs Relative
A decibel without a reference is meaningless. That is why you see suffixes: dBm (reference = 1 milliwatt), dBu (reference = 0.775 volts), dB SPL (reference = 20 micropascals). The calculator above uses a user-defined reference, which is the most flexible. Common references you might encounter:
- dBm — power relative to 1 mW, used in RF and audio
- dBV — voltage relative to 1 V
- dB SPL — sound pressure relative to 20 µPa (threshold of hearing)
- dBi — antenna gain relative to an isotropic radiator
When you see a plain “dB” without a suffix, it is a relative measurement, like the signal-to-noise ratio or the gain of an amplifier.
Common Mistakes and How to Avoid Them
Several errors trip up beginners and professionals alike:
- Mixing power and amplitude formulas — always check what quantity you are measuring. If you have voltage, use 20; if you have watts, use 10.
- Forgetting the reference — a dB value alone is useless. Always state the reference (e.g., “20 dB SPL” not “20 dB”).
- Adding decibels linearly — you cannot add 20 dB + 20 dB to get 40 dB. Decibels are logarithms, so adding them multiplies the underlying ratios. 20 dB + 20 dB = 100 × 100 = 10,000 times, which is 40 dB, but that is an exception because the ratios are equal. In general, convert to linear, multiply, then convert back.
- Using the wrong logarithm base — decibels use base-10 logarithms, not natural logs (ln). A common calculator mistake is pressing “ln” instead of “log”.
Real-World Examples
To make the math concrete, here are a few typical calculations:
- Amplifier gain: An amplifier outputs 50 W when given 1 W input. Gain = 10 × log₁₀(50/1) = 16.99 dB.
- Sound pressure: A quiet library is 40 dB SPL. A normal conversation is 60 dB SPL. The difference is 20 dB, which means the pressure amplitude is 10 times greater (20 dB / 20 = 1, so 10¹ = 10×).
- Signal loss: A cable reduces power from 10 mW to 2 mW. Loss = 10 × log₁₀(2/10) = −6.99 dB. Negative dB means attenuation.
Notice that a 3 dB change always represents a doubling or halving of power, regardless of the absolute level. This is why engineers use dB for everything from audio mixers to radio transmitters.
Limits of the Formula
The formula assumes the reference is positive and nonzero. You cannot take the logarithm of zero or a negative number. In practice, measured powers and amplitudes are always positive, but if you enter zero, the calculator will show an error. Also, the formula works for any ratio, but it becomes less intuitive for extremely small ratios (e.g., −120 dB is a ratio of 10⁻¹²). The decibel scale is linear in exponent, so every 10 dB multiplies the ratio by 10. This makes it easy to estimate: 30 dB = 1000×, 40 dB = 10,000×, and so on.
Frequently Asked Questions
Why is 3 dB a doubling of power? Because 10 × log₁₀(2) = 3.0103 dB. So a power ratio of 2:1 is almost exactly 3 dB. For amplitude, a doubling is 20 × log₁₀(2) = 6.0206 dB, so 6 dB is a doubling of voltage or pressure.
What is 0 dB? It means the measured value equals the reference. For dB SPL, 0 dB is the threshold of human hearing (20 µPa). For dBm, 0 dBm is 1 milliwatt. 0 dB is not “no sound” — it is just the reference level.
Can decibels be negative? Yes. A negative dB means the measured value is smaller than the reference. For example, −10 dB means the power is one-tenth of the reference. This is common in signal loss and attenuation.
How do I convert dB back to a ratio? For power, ratio = 10^(dB/10). For amplitude, ratio = 10^(dB/20). For instance, 30 dB power = 10³ = 1000 times. Use the inverse of the formula.
Why do some meters show dBA instead of dB? dBA is an A-weighted decibel, which filters the frequency response to mimic human hearing sensitivity. It is not a different formula; it is the same dB calculation applied after weighting the sound pressure levels at different frequencies. The calculator here gives unweighted dB.
Is a 10 dB increase twice as loud? Roughly, yes. Perceptual studies suggest that a 10 dB increase is perceived as about twice as loud, though the exact relationship varies with frequency and level. The physical intensity is 10 times greater, but the ear’s response is compressed.
Related
Formula used
in p | Measured power | W | 100 | 0 | 1000000 in p0 | Reference power | W | 1 | 0.000001 | 1000000 sel type | Measurement type | Power=1, Amplitude=2 out db | Level | dB | type * 10 * log10(p / p0) | 2 out ratio | Power ratio | - | p / p0 | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
- Height to Waist Ratio: What It Means & How to Measure0.48
- Average NRR 20 dB: What It Really Means83.5 dB
- Gold to Silver Ratio: Meaning, Highs, Lows & How to Use It85.7 oz silver per oz gold
- Decibel to Ratio: Convert dB to Gain or Power
- Decibel to Power Ratio: How to Convert dB to Watts10.000000 W
- Decibel Formula for Signal-to-Noise Ratio20.00 dB