Decibel Calculator screenshot

Decibel Calculator

Convert a power or amplitude ratio to decibels, and a decibel value back to a ratio, with the definition stated.

Privacy First
0 Runs
Updated 2026-11-21
Runs in your browser
No sign-up, no upload

What the decibel calculator does

A decibel is a logarithm of a ratio. For a power ratio the page applies 10 · log10(P1/P0); for an amplitude ratio it applies 20 · log10(A1/A0). A ratio of 2 is 3.010299957 dB as a power and 6.020599913 dB as an amplitude, and the page prints which definition it used.

The direction is selectable. In the other direction it inverts the definition: ratio = 10^(dB / 10) for power and 10^(dB / 20) for amplitude. A value of 3 dB as a power comes back as 1.995262315, which is the check the page prints beside the answer.

This is a ratio, not a sound measurement. No reference pressure, no A-weighting and no frequency weighting is applied anywhere, so the page does not claim to state a sound-pressure level. A ratio of zero or below is refused, because a logarithm has no value there, and the inverse direction refuses a magnitude past 600 dB.

Numbers print to ten significant figures with trailing zeros trimmed.

How to use it

Enter the ratio in the text box — 2 means twice the reference — and set Quantity to power or amplitude.

Choose Direction: ratio to dB, or dB to ratio when you already have the level. Press Run; the result prints the definition it applied and the check that returns the input.

Worked example

Input with the defaults (power, ratio to dB):

2

Output:

Ratio:       2 (P1/P0)
Definition:  10 · log10(ratio)
Decibels:    3.010299957 dB

Why it runs in your browser

The logarithm is evaluated on this page with JavaScript. Nothing you type is uploaded and nothing is stored.

A decibel is a logarithm of a ratio, so the page asks for the ratio and prints the logarithm. The power definition is 10 · log₁₀ and the amplitude definition is 20 · log₁₀, so a ratio of 2 reads about 3.01 dB as a power and about 6.02 dB as an amplitude.

The direction runs both ways: give a ratio and the page returns decibels, or give a decibel value and it returns the ratio. The definition it applied and the inverse check are printed with every answer.

No reference pressure, no weighting and no medium is assumed anywhere. This page states a ratio; it does not claim to measure a sound level.

What the logarithm does

Adding two decibels multiplies the ratios they describe. That is the whole convenience of the unit: a gain of 10 dB is ten times the power, and two of them in series are 20 dB and a hundred times. The page prints the definition so the number can be followed back to its ratio.

A ratio of 1 is 0 dB, because log(1) is zero. Half the power is about -3.01 dB and twice the amplitude is about 6.02 dB; the asymmetry is the definition, not a rounding.

Power and amplitude are different questions

A power ratio is compared with 10 · log₁₀. An amplitude ratio, such as a voltage or a pressure wave's peak, is compared with 20 · log₁₀, because power goes with the square of the amplitude. The two give different decibels for the same ratio, which is why the page asks which one you mean rather than guessing.

Choosing the wrong one is the common error. If a datasheet says a voltage gain of 2 is 6.02 dB, that is the amplitude definition; entering 2 as a power ratio would return 3.01 dB, and the page prints which definition it used so the difference is visible.

How to use Decibel Calculator

Enter the ratio in the text box — 2 means twice the reference level — and set Quantity to power or amplitude.

Choose Direction: ratio to dB, or dB to ratio when you already have the level. The inverse direction refuses a magnitude past 600 dB.

Press Run. The result prints the definition, the decibels or the ratio, and the check that returns the number you typed.

What to Expect

Best for

  • Turning a measured ratio into decibels with the definition stated
  • Turning a decibel figure on a datasheet back into a ratio
  • Checking which of the two definitions a number came from

Not ideal for

  • Measuring a sound level in dB SPL, which needs a reference pressure this page does not apply
  • Weighted levels such as dBA, which depend on a frequency curve

What this tool keeps

  • The ratio or decibel value you typed, and the definition applied
  • The inverse check, so the answer can be followed back to the input

What may need cleanup

  • A level already expressed against a reference, which has to be divided by that reference first
  • A negative ratio, which is not a ratio at all

Common errors

  • Using the power definition for a voltage ratio
  • Expecting a sound level from a ratio with no reference stated

Example use cases

  • Reading a gain figure from an amplifier datasheet
  • Checking a signal-to-noise ratio by hand
  • Teaching why 3 dB is a doubling for power and 6 dB for amplitude

Sample input

Ratio 2, quantity power, direction ratio to decibels.

Sample output

Decibels: 3.010299957 dB, by 10 · log₁₀(2).

Who this is for

  • Students and engineers reading a level or a gain
  • Anyone checking which decibel definition a figure used

Frequently asked questions

Why are the two definitions different?

Power is proportional to the square of an amplitude, so a 2× amplitude is a 4× power. Doubling the factor in 10 · log₁₀(4) gives the same 20 · log₁₀(2), which is why the amplitude definition uses 20.

Does this measure a sound level?

No. It converts a ratio. A sound level in dB SPL compares a pressure with 20 µPa and applies a frequency weighting this page does not implement.

Why does a ratio have to be above zero?

The logarithm is only defined for positive numbers. Zero and negative ratios are refused by name rather than returning minus infinity or a complex number.

What does 0 dB mean here?

A ratio of 1, which is no change. It does not mean silence, and it does not depend on any reference level.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.