Hertz (Hz) and decibels (dB) measure fundamentally different physical dimensions—frequency and amplitude ratio, respectively—meaning a direct 'Hz to decibels' conversion is physically impossible, but the two units interact constantly when mapping how a circuit's gain or attenuation changes across the frequency spectrum.

If you are searching for an 'Hz to dB calculator,' you are likely looking at a Bode plot, designing an audio crossover, or trying to understand why a specific frequency is being attenuated by a certain number of decibels in a filter circuit. This guide breaks down exactly how changing the input frequency (Hz) alters the reactive impedance in a circuit, which in turn dictates the voltage gain or loss expressed in decibels (dB).

The Core Misconception: Pitch vs. Power (and What Actually Changes)

The most common confusion around this topic stems from acoustics and audio engineering. People often conflate acoustic pitch (measured in Hz) with acoustic loudness (measured in dB SPL). A 1,000 Hz tone and a 100 Hz tone can both be played at exactly 80 dB SPL; one is simply a higher pitch than the other. You cannot convert the pitch of a sound wave into its volume.

In electronics, the confusion usually happens when reading an equalizer curve or a Bode plot. The X-axis is frequency (Hz) and the Y-axis is gain or attenuation (dB). Beginners often ask, 'What is 10 kHz in dB?' This is like asking, 'What is 10 miles in gallons?' They are orthogonal axes.

What it actually changes in a real circuit: In an AC circuit containing reactive components (capacitors or inductors), changing the input frequency (Hz) changes the component's reactance ($X_c$ or $X_L$). This shifting reactance alters the voltage divider ratio of the circuit. We then express that new voltage ratio as a logarithmic gain or attenuation value in decibels (dB). Hz is the input variable; dB is the output result.

Frequency Response Data: How Hz Dictates dB Attenuation

To see how Hz and dB interact, we need to look at a real filter. Below is the frequency response data for a standard first-order RC (Resistor-Capacitor) low-pass filter. The filter is designed with a 1.59 kΩ resistor and a 100 nF capacitor, yielding a cutoff frequency ($f_c$) of exactly 1,000 Hz.

Notice how the dB value doesn't just drop randomly; it follows a strict mathematical roll-off of -20 dB per decade (every time the Hz value multiplies by 10, the dB drops by 20).

Input Frequency (Hz) Ratio to Cutoff ($f/f_c$) Capacitive Reactance ($X_c$) Output Voltage (Vrms)* Gain / Attenuation (dB)
10 Hz 0.01 159,154 Ω 0.9999 V -0.001 dB
100 Hz 0.1 15,915 Ω 0.9950 V -0.04 dB
1,000 Hz 1.0 (Cutoff) 1,591 Ω 0.7071 V -3.01 dB
10,000 Hz 10.0 159.1 Ω 0.0995 V -20.04 dB
100,000 Hz 100.0 15.9 Ω 0.0100 V -40.00 dB

*Assuming a constant 1.0 Vrms input signal. Data calculated using standard AC voltage divider formulas.

Worked Numeric Example: Calculating the -3dB Cutoff for an ESP32 DAC

Let's apply this to a practical bench scenario. You are using an ESP32-S3 to generate an analog waveform using its built-in PWM (Pulse Width Modulation) peripheral, and you need to smooth the PWM square wave into a clean analog sine wave using a passive RC low-pass filter.

You have a 4.7 kΩ resistor and a 10 nF (0.01 µF) ceramic capacitor on hand. Let's find the cutoff frequency in Hz, and then calculate the exact dB attenuation at a 10 kHz noise harmonic.

Step 1: Find the Cutoff Frequency ($f_c$) in Hz
The formula for an RC low-pass filter cutoff is:

$$f_c = \frac{1}{2 \pi R C}$$

$$f_c = \frac{1}{2 \times 3.14159 \times 4700 \times (10 \times 10^{-9})}$$

$$f_c = 3,386.27 \text{ Hz}$$

Step 2: Calculate Attenuation in dB at 10,000 Hz
First, find the capacitive reactance ($X_c$) at 10 kHz:

$$X_c = \frac{1}{2 \pi f C} = \frac{1}{2 \times 3.14159 \times 10000 \times (10 \times 10^{-9})} = 1,591.55 \text{ Ω}$$

Next, use the AC voltage divider formula to find the output voltage ratio ($V_{out} / V_{in}$):

$$\frac{V_{out}}{V_{in}} = \frac{X_c}{\sqrt{R^2 + X_c^2}} = \frac{1591.55}{\sqrt{4700^2 + 1591.55^2}} = \frac{1591.55}{4961.85} = 0.3207$$

Finally, convert that voltage ratio to decibels:

$$dB = 20 \log_{10}(0.3207) = -9.87 \text{ dB}$$

Result: Your filter's -3dB cutoff is 3,386 Hz. If a 10 kHz PWM harmonic enters this filter, it will be attenuated by -9.87 dB (reduced to roughly 32% of its original voltage amplitude).

Where You Meet This In Practice

While you will never use a 'Hz to dB converter' tool, you will constantly plot Hz against dB in these real-world applications:

  • Audio Crossovers and Subwoofers: When tuning a car audio system or home theater, you set the low-pass filter on the subwoofer amplifier to a specific frequency (e.g., 80 Hz). The amplifier's internal circuitry then applies a slope (e.g., -12 dB/octave or -24 dB/octave) to attenuate frequencies above that 80 Hz threshold, preventing the subwoofer from trying to reproduce midrange vocals.
  • EMI/RFI Mains Filtering: If you are designing a power supply for a sensitive medical or audio device, you will use an LC filter on the AC mains input. The goal is to pass the 60 Hz (or 50 Hz) line frequency with 0 dB loss, while attenuating high-frequency switching noise from the grid (e.g., 150 kHz) by -40 dB or more.
  • Op-Amp Stability and Bode Plots: When designing feedback loops for operational amplifiers, engineers plot the open-loop gain (in dB) against frequency (in Hz, on a log scale). The point where the gain drops to 0 dB is the unity-gain bandwidth. If the phase shift reaches -180° before the gain drops below 0 dB, the circuit will oscillate. For a deep dive into reading these plots, All About Circuits provides an excellent primer on AC decibels and Bode plots.

Frequently Asked Questions

Q: Can I convert acoustic dB SPL to Hz?
A: No. dB SPL (Sound Pressure Level) measures the physical pressure amplitude of a sound wave (loudness), while Hz measures the number of pressure cycles per second (pitch). A 90 dB sound can be a low 50 Hz rumble or a piercing 8,000 Hz whine.

Q: Why do audio equalizers show both Hz and dB?
A: An equalizer is a bank of tunable filters. The Hz value tells the circuit which frequency band to target (the center frequency of the filter), and the dB value tells the circuit how much to boost or cut the amplitude of that specific band. They are the X and Y coordinates of the audio curve, not convertible units.

Q: What does '-20dB per decade' mean in filter specs?
A: A 'decade' is a 10x multiplication of frequency in Hz. If a first-order filter has a -20 dB/decade roll-off, it means that if you measure the attenuation at 1,000 Hz and it is -10 dB, then at 10,000 Hz (one decade higher), the attenuation will be -30 dB. Second-order filters roll off at -40 dB/decade, and so on. For more on active filter topologies, refer to Texas Instruments' application notes on active filter design.

Q: Is there any scenario where Hz and dB are mathematically linked?
A: Only in the context of a specific transfer function (like the RC filter math shown above). The relationship is entirely dependent on the values of the resistors, capacitors, or inductors in your specific circuit. There is no universal physical constant that links a frequency to a decibel value.