# Decibel Calculator

URL: https://hifreetools.com/science/decibel-calculator

> Convert a power or voltage ratio into decibels (dB) instantly. Choose power mode (10·log₁₀) for watts or voltage/amplitude mode (20·log₁₀) for volts, current, or sound pressure, and read the gain or loss live.

## Quick answer

A decibel expresses a ratio on a logarithmic scale. For power, dB = 10·log₁₀(P₂/P₁); for a voltage or amplitude ratio, dB = 20·log₁₀(V₂/V₁). For example, a power increase from 1 W to 100 W is 10·log₁₀(100/1) = 10·2 = 20 dB, the same value you would get from a 10× voltage increase (20·log₁₀(10) = 20 dB).

## Formula

- Power: dB = 10 × log₁₀(P₂ ÷ P₁)
- Voltage / amplitude: dB = 20 × log₁₀(V₂ ÷ V₁), because P ∝ V²
- A positive result is a gain; a negative result is a loss

## Inputs

- Output power P₂ (0 to 1000000000000000); default 100
- Reference power P₁ (0 to 1000000000000000); default 1
- Output level V₂ (0 to 1000000000000000); default 100
- Reference level V₁ (0 to 1000000000000000); default 1

## Worked examples (computed by the page's own function)

- Output power P₂ = 100, Reference power P₁ = 1 → Level difference (dB) = 20, Ratio (output ÷ reference) = 100  (10 × log₁₀(100 ÷ 1) = 20 dB)
- Output level V₂ = 100, Reference level V₁ = 1 → Level difference (dB) = 40, Ratio (output ÷ reference) = 100  (20 × log₁₀(100 ÷ 1) = 40 dB)
- Output power P₂ = 2, Reference power P₁ = 1 → Level difference (dB) = 3.0103, Ratio (output ÷ reference) = 2  (10 × log₁₀(2 ÷ 1) = 3.0103 dB)

## Verification

Checked against 17 reference cases (expected values computed independently). Reviewed 2026-10-27. Latest change 2026-10-28: Moved to the schema renderer with a sourced ledger; the quantity-type picker became Power / Voltage modes, and a zero or negative value now shows a field error.

## FAQ

**What is the formula for decibels?**
It depends on the quantity. For power, dB = 10·log₁₀(P₂/P₁). For a field quantity such as voltage, current, or sound pressure, dB = 20·log₁₀(V₂/V₁). Both describe the same physical change because power is proportional to the square of a field quantity, which is why the factor doubles from 10 to 20.

**Why is it 10·log for power but 20·log for voltage?**
Power is proportional to the square of voltage (P = V²/R for a fixed resistance). Substituting V² into 10·log₁₀ gives 10·log₁₀(V₂²/V₁²) = 20·log₁₀(V₂/V₁), because the exponent 2 comes out of the logarithm as a multiplier. So both formulas give the identical decibel value for the same real change.

**How many decibels is double the power or double the voltage?**
Doubling power is 10·log₁₀(2) ≈ 3.01 dB (the well-known '+3 dB' rule). Doubling voltage or amplitude is 20·log₁₀(2) ≈ 6.02 dB (the '+6 dB' rule). Halving each gives the same magnitudes with a negative sign: about −3 dB and −6 dB.

**What does a negative decibel value mean?**
A negative result means the output is smaller than the reference — a loss or attenuation. For example, dropping from 2 V to 1 V is 20·log₁₀(0.5) ≈ −6.02 dB. A positive value means a gain (output larger than reference), and 0 dB means the two quantities are equal.

**Is this calculator for dB, dBm, or dBW?**
This tool computes a relative gain or loss in dB from any two values in the same unit. dBm and dBW are absolute levels referenced to 1 mW and 1 W respectively. To get dBm, put your power in milliwatts as P₂ and 1 mW as P₁; for dBW, use watts with P₁ = 1 W.

**Can I use this for sound levels in decibels?**
Yes. Sound pressure level uses the 20·log₁₀ form because sound pressure is a field quantity: dB = 20·log₁₀(p₂/p₁), with the standard reference p₁ = 20 µPa in air. Sound intensity or acoustic power instead uses the 10·log₁₀ form. Pick the matching mode for your measurement.


## Sources

- [Wikipedia — Decibel](https://en.wikipedia.org/wiki/Decibel)
- [HyperPhysics — Decibels](http://hyperphysics.phy-astr.gsu.edu/hbase/Sound/db.html)
- [NIST — Checklist for SI units (logarithmic quantities and units)](https://physics.nist.gov/cuu/Units/checklist.html)

Runs in the browser; nothing is uploaded. Cite as: HIFreeTools, "Decibel Calculator", https://hifreetools.com/science/decibel-calculator
