Productive Toolbox

Decibel (dB) Calculator

Convert gain or loss ratios to decibels (dB) and vice versa. Supports power-based and amplitude-based calculations for electronics, audio, and RF engineering.

πŸ“Š

Decibel (dB) Calculator

Convert gain or loss ratios to decibels (dB) and vice versa. Supports both power-based and amplitude-based calculations for electronics, audio, and RF engineering.

Precision

Actions

Calculation Mode

Input Value

Quick Presets

Quick Reference

Common dB Values
+3 dB β‰ˆ 2Γ— power
+6 dB β‰ˆ 2Γ— voltage
+10 dB = 10Γ— power
+20 dB = 10Γ— voltage
Attenuation
-3 dB = 50% power
-6 dB = 50% voltage
-10 dB = 10% power
-20 dB = 10% voltage

What Is a Decibel (dB) Calculator?

A decibel (dB) calculator is a free online tool that converts between a power or voltage ratio and its equivalent decibel value. It answers the two questions every electronics, audio, and RF project runs into: what does this gain or loss ratio equal in dB, and what ratio does this dB figure actually represent?

The decibel is a logarithmic unit, which makes it possible to work with enormous ranges β€” from a microphone's tiny voltage output to a radio transmitter's kilowatt power level β€” using compact, addable numbers instead of huge multiplied ratios. But the math has a catch: power ratios use a 10Γ— multiplier while voltage and current ratios use 20Γ—, because power is proportional to voltage squared. This dB calculator applies the correct formula automatically so you never have to remember which multiplier goes with which quantity.

This tool is built for audio engineers measuring amplifier gain and sound pressure levels, RF and electronics engineers working with attenuation and antenna gain, network and telecom technicians analyzing signal loss, and electronics students learning the power-versus-voltage dB relationship. All four conversion directions run instantly in your browser with full step-by-step working shown β€” free, with no signup required.

How Decibel Calculation Works

Core Formulas

Power ratio β†’ dB: dB = 10 Γ— log₁₀(ratio)

Voltage ratio β†’ dB: dB = 20 Γ— log₁₀(ratio)

dB β†’ power ratio: ratio = 10^(dB Γ· 10)

dB β†’ voltage ratio: ratio = 10^(dB Γ· 20)

ratio = Pβ‚‚/P₁ or Vβ‚‚/V₁ Β· a ratio above 1 is gain, below 1 is loss

  • Four calculation modes: power ratio to dB, voltage/current ratio to dB, dB to power ratio, and dB to voltage/current ratio
  • Why 10Γ— for power: dB is fundamentally defined as a power ratio, so power conversions use the log₁₀ result directly, scaled by 10
  • Why 20Γ— for voltage: since power is proportional to voltage squared, a voltage ratio's logarithm must be doubled (multiplied by 20 instead of 10) to express the same dB scale as an equivalent power change
  • Gain vs loss: a positive dB result or a ratio greater than 1 means gain; a negative dB result or a ratio less than 1 means attenuation
  • Additive property: because dB is logarithmic, cascaded gains and losses in a signal chain can be added directly instead of multiplied

How to Use the Decibel Calculator

Step-by-Step Guide

  1. 1Choose a calculation mode: Select Power Ratio to dB, Voltage/Current Ratio to dB, dB to Power Ratio, or dB to Voltage/Current Ratio depending on the direction of conversion you need.
  2. 2Enter your value: Type the ratio (for ratio-to-dB modes) or the dB figure (for dB-to-ratio modes) into the input box. Ratio values must be greater than zero for the logarithmic modes.
  3. 3Let the calculator convert instantly: The result updates in real time as you type, applying the correct 10Γ— or 20Γ— multiplier automatically based on the mode you selected.
  4. 4Review the formula and steps: Each result shows the exact formula used and a full breakdown of the logarithm calculation, useful for checking your work or learning the math.
  5. 5Use a preset for common scenarios: Pick from built-in presets like 2x power gain, 0.5x power loss, +3 dB, or -20 dB to quickly see standard reference values without typing them manually.
  6. 6Save, copy, or export: Save the calculation to your history, copy the result to your clipboard, or export a full text report for documentation.

What This Tool Provides

  • βœ“Real-time calculation as you type
  • βœ“Four conversion modes covering both directions
  • βœ“Correct 10Γ— / 20Γ— multiplier applied automatically
  • βœ“Adjustable precision (2 to 6 decimal places)
  • βœ“Full step-by-step calculation breakdown
  • βœ“Built-in presets for common gain/loss scenarios
  • βœ“Calculation history (last 20 entries)
  • βœ“Export results as a text report
  • βœ“Copy result to clipboard
  • βœ“Remembers your last used mode
  • βœ“100% browser-based β€” no data sent to a server
  • βœ“No registration required

Real-World Use Cases

Rating an Amplifier's Power Gain

An electronics engineer measures an RF amplifier boosting power from 1 W to 10 W β€” a power ratio of 10. Using Power Ratio to dB mode with a value of 10, the calculator returns 10 dB of gain, matching the amplifier's advertised specification and confirming it meets its datasheet claim.

Checking a Microphone Preamp's Voltage Gain

An audio engineer measures a preamp doubling a microphone's output voltage β€” a ratio of 2. Using Voltage/Current Ratio to dB mode with a value of 2, the calculator returns 6.02 dB, the standard reference value audio engineers use to describe a voltage doubling.

Finding the Half-Power Bandwidth of a Filter

A filter designer needs to find where a lowpass filter's output has dropped to half power, the standard -3 dB cutoff definition. Using dB to Power Ratio mode with -3 dB, the calculator returns a ratio of 0.501 β€” confirming the filter's -3 dB point corresponds to just over half the input power, as expected.

Calculating Total Cascaded System Gain

A systems engineer has three stages: a +12 dB amplifier, a -4 dB cable loss, and a +8 dB second amplifier. Rather than multiplying three separate ratios, they simply add the dB values: 12 - 4 + 8 = 16 dB total system gain, then use dB to Power Ratio mode on 16 dB to confirm this equals approximately 39.8x overall power gain.

Interpreting a Cable's -20 dB Attenuation Spec

A network technician reads a cable datasheet listing -20 dB attenuation at a given frequency and wants to know what fraction of the signal actually survives. Using dB to Power Ratio mode with -20 dB, the calculator returns a ratio of 0.01 β€” meaning only 1% of the original signal power reaches the far end.

Comparing Speaker Efficiency Ratings

An audio engineer is comparing two speakers with a rated efficiency difference of 6 dB SPL at the same input power. Using dB to Voltage Ratio mode is not the right approach here since SPL follows the power-based scale β€” using dB to Power Ratio mode with 6 dB instead returns a ratio of about 3.98, meaning the more efficient speaker produces roughly four times the acoustic power for the same electrical input.

Tips & Common Mistakes

Pro Tips

  • πŸ’‘Memorize a handful of reference points and you'll rarely need the calculator for quick estimates: +3 dB β‰ˆ 2x power, +6 dB β‰ˆ 2x voltage (4x power), +10 dB = 10x power, +20 dB = 10x voltage (100x power).
  • πŸ’‘When adding cascaded gains and losses in a signal chain, work entirely in dB and only convert to a ratio at the very end. Adding dB values directly avoids compounding rounding errors from repeated multiplication of ratios.
  • πŸ’‘If a datasheet gives you two raw values (like input power and output power) rather than a ratio, divide them yourself first (Pβ‚‚ Γ· P₁), then enter that single ratio number into this calculator's ratio-to-dB mode.
  • πŸ’‘Remember that dB is always relative β€” it describes a change between two values, not an absolute quantity. If you need an absolute power level, you're looking for dBm (referenced to 1 mW) or dBW (referenced to 1 W), which this ratio-based calculator does not compute directly.
  • πŸ’‘For sound pressure level (SPL) and acoustic power comparisons, use the power-based (10Γ—) formulas, not the voltage-based (20Γ—) ones β€” acoustic intensity follows the power convention even though it isn't electrical.
  • πŸ’‘Use the built-in presets to sanity-check your intuition before trusting a manual calculation β€” if your hand-calculated answer doesn't roughly match the '2x power gain' or '+10 dB' presets, double-check which mode and multiplier you used.

Common Mistakes to Avoid

  • βœ•Don't use the 20Γ— voltage formula on a power ratio, or the 10Γ— power formula on a voltage ratio. Using the wrong multiplier doubles or halves your dB result β€” the single most common decibel calculation error.
  • βœ•Don't confuse this ratio-based dB calculator with an absolute power converter. It computes relative gain/loss from a ratio you supply β€” it does not convert a raw watt or milliwatt value directly into dBm or dBW.
  • βœ•Don't enter zero or a negative number into the ratio-to-dB modes. A logarithm is undefined for zero or negative inputs, since no ratio of two positive quantities can be zero or negative β€” the calculator will reject these values.
  • βœ•Don't average dB values when combining parallel (not cascaded) signal paths. Adding is only valid for gains and losses in series along one signal chain; combining power from multiple independent sources requires converting back to ratios, summing, and converting the sum back to dB.
  • βœ•Don't forget that a small dB difference can represent a large ratio difference. A jump from 20 dB to 40 dB isn't 'twice as much' β€” it's a 100x larger power ratio, since the scale is logarithmic, not linear.

Common dB Value Reference Table

dB ValuePower RatioVoltage Ratio
+20 dB100x10x
+10 dB10x3.162x
+6 dB3.981x2x
+3 dB1.995x (β‰ˆ2x)1.413x
0 dB1x1x
-3 dB0.501x (β‰ˆhalf)0.708x
-6 dB0.251x0.5x
-10 dB0.1x0.316x
-20 dB0.01x0.1x

* Power ratio uses 10 Γ— log₁₀; voltage ratio uses 20 Γ— log₁₀. Values rounded to 3 decimal places.

Frequently Asked Questions

What is a decibel (dB) calculator?

A decibel calculator converts between a power or voltage ratio and its equivalent value in decibels (dB), the logarithmic unit used throughout electronics, audio, and RF engineering to express gain and loss. This calculator supports four modes: power ratio to dB, voltage/current ratio to dB, dB to power ratio, and dB to voltage/current ratio.

How is a power ratio converted to decibels?

Power ratio to dB uses the formula dB = 10 Γ— log₁₀(ratio). For example, an amplifier that increases power from 1 W to 10 W has a power ratio of 10, giving 10 Γ— log₁₀(10) = 10 Γ— 1 = 10 dB of gain. This tool takes the ratio directly (Pβ‚‚/P₁), not the two raw power values separately.

How is a voltage or current ratio converted to decibels?

Voltage/current ratio to dB uses dB = 20 Γ— log₁₀(ratio) β€” a factor of 20 instead of 10, because power is proportional to voltage squared. Doubling voltage (ratio = 2) gives 20 Γ— log₁₀(2) β‰ˆ 6.02 dB, while doubling power alone only gives 3.01 dB.

How do I convert decibels back to a ratio?

For power, use Ratio = 10^(dB/10). For voltage or current, use Ratio = 10^(dB/20). Entering -3 dB in the dB-to-power mode returns a ratio of approximately 0.501 β€” confirming that -3 dB is the well-known 'half power point.' Entering -3 dB in the dB-to-voltage mode instead returns about 0.708.

Why does the calculator use 10Γ— for power but 20Γ— for voltage?

Power (P = VΒ²/R) is proportional to the square of voltage. A logarithm of a squared quantity doubles when pulled out front (log(xΒ²) = 2 log(x)), so converting a voltage ratio to an equivalent power-based dB scale requires the extra factor of 2 β€” turning 10 into 20. This keeps a given dB value meaning the same thing whether you arrived at it through power or voltage.

Why is -3 dB called the half-power point?

Because 10^(-3/10) β‰ˆ 0.501, meaning a -3 dB power ratio leaves just over half the original power. This threshold is used constantly in filter design and frequency response analysis to define the edges of a passband β€” the '3 dB bandwidth' or '3 dB cutoff frequency.'

Can I add decibel values together?

Yes, and this is one of the main reasons dB is used industry-wide. Because dB is logarithmic, cascaded gains and losses along a signal chain add instead of multiply. A +10 dB amplifier stage followed by a -4 dB cable loss and another +6 dB stage totals +12 dB overall, without needing to multiply any raw ratios together.

What is the difference between dB, dBm, and dBW?

dB is a relative unit comparing two values β€” it has no meaning on its own without a reference point. dBm is an absolute power unit referenced to 1 milliwatt (0 dBm = 1 mW), and dBW is referenced to 1 watt (0 dBW = 1 W). This calculator computes relative dB from ratios; it does not convert absolute power values in watts directly into dBm or dBW.

What does a negative dB value mean?

A negative dB value indicates attenuation or loss rather than gain. In ratio-to-dB modes, entering a ratio less than 1 (meaning the output is smaller than the input) always produces a negative dB result. In dB-to-ratio modes, entering a negative dB value always returns a ratio less than 1.

Is my data private when using this calculator?

Yes. All calculations run entirely in your browser using JavaScript. Your ratio and dB values, along with your calculation history, are never transmitted to any server, stored in any database, or accessible to anyone other than you.

Who Uses This Decibel Calculator?

🎚️

Audio Engineers

Convert amplifier gain, microphone sensitivity, and sound pressure level specifications between raw ratios and dB for mixing and equipment comparisons.

πŸ“‘

RF & Electronics Engineers

Calculate antenna gain, amplifier specifications, and signal attenuation across cascaded stages using additive dB values.

🌐

Network & Telecom Technicians

Interpret cable and connector loss specifications given in dB, converting them to power ratios to estimate actual signal strength at the far end.

πŸŽ“

Electronics Students

Practice the 10x versus 20x multiplier rule and work through gain/loss exercises with instant step-by-step verification.

πŸ”Š

Acoustics Professionals

Convert sound pressure level differences and noise reduction ratings between dB and power ratios for room and hearing-safety analysis.

πŸ”§

System Design Engineers

Sum cascaded gain and loss stages across a signal chain quickly, verifying total system performance meets a target dB budget.