If you are searching for a direct Hz to decibels converter, you need to know immediately: a direct mathematical conversion between Hertz and decibels does not exist. Hertz (Hz) measures absolute frequency (cycles per second), while decibels (dB) measure a logarithmic ratio of power or amplitude. However, if your actual goal is to find the dB attenuation at a specific Hz for a filter circuit, the answer depends entirely on your cutoff frequency. For a standard 1st-order low-pass filter with a 1,000 Hz cutoff, the attenuation at exactly 1,000 Hz is -3.01 dB. At 2,000 Hz, the signal drops to -6.99 dB.
The Formula: Calculating dB from Hz
To map a frequency (Hz) to an attenuation level (dB), you must use the transfer function of your specific circuit. The most common scenario on the workbench is calculating the voltage gain or attenuation of a low-pass or high-pass filter. The governing formula for a low-pass filter is:
Attenuation (dB) = 20 × log10 [ 1 / √(1 + (f / fc)2n) ]
Where:
- f = Target frequency in Hz
- fc = Cutoff frequency (-3dB point) in Hz
- n = Filter order (1 for a single RC stage, 2 for a two-stage or Sallen-Key op-amp design)
Worked Numeric Example
Let’s substitute real bench values. You have a 1st-order (n=1) RC low-pass filter with a cutoff frequency (fc) of 1,000 Hz. You want to know the exact dB attenuation at 1,200 Hz.
- Calculate the ratio: f / fc = 1200 / 1000 = 1.2
- Square the ratio (since n=1, 2n = 2): 1.22 = 1.44
- Add 1: 1 + 1.44 = 2.44
- Take the square root: √2.44 ≈ 1.562
- Invert it: 1 / 1.562 ≈ 0.640
- Apply the log: 20 × log10(0.640) = 20 × (-0.1938) = -3.87 dB
At 1,200 Hz, your signal is attenuated by 3.87 dB relative to the passband. For a deeper dive into the logarithmic math behind these ratios, refer to the All About Circuits textbook chapter on decibels.
Neighboring Values: ±20% Range Table
When tuning audio crossovers or designing anti-aliasing filters for an ADC, you rarely look at just one frequency. Below is a spec-sheet-style table showing the dB attenuation across a ±20% range around our 1,000 Hz cutoff, comparing a 1st-order passive RC filter against a 2nd-order active Butterworth filter (like one built with an LM358 op-amp).
| Frequency (Hz) | Ratio (f / fc) | 1st-Order Attenuation (dB) | 2nd-Order Attenuation (dB) |
|---|---|---|---|
| 800 (-20%) | 0.80 | -2.14 dB | -3.52 dB |
| 900 (-10%) | 0.90 | -2.57 dB | -4.43 dB |
| 1000 (Cutoff) | 1.00 | -3.01 dB | -6.02 dB |
| 1100 (+10%) | 1.10 | -3.44 dB | -7.76 dB |
| 1200 (+20%) | 1.20 | -3.87 dB | -9.25 dB |
Note: A 2nd-order filter rolls off at -12 dB/octave (or -40 dB/decade), meaning the attenuation accelerates much faster past the cutoff than a 1st-order filter (-6 dB/octave). For comprehensive active filter topologies, consult Texas Instruments' active filter design application notes.
What Fixes the Answer? (Assumptions & System Shifts)
In standard AC power calculations, assumptions like voltage, power factor (PF), and phase angle fix your answer. You cannot calculate true power (Watts) without them. However, when using a Hz to dB conversion for signal processing or filtering, those specific variables take a backseat. Instead, the governing assumptions that fix your dB answer are filter order (n), cutoff frequency (fc), and system reference impedance.
How the Answer Shifts for 120V vs 230V vs 3-Phase Systems
While voltage doesn't change the raw signal transfer function of an op-amp, it drastically shifts the answer when you are designing harmonic filters for mains power. If you are calculating the dB attenuation required to filter out harmonic distortion (measured in Hz) on a power line:
- 120V Single-Phase: You must heavily attenuate the 3rd harmonic (180 Hz). Your filter must be designed to provide at least -20 dB of attenuation at 180 Hz to prevent neutral conductor overloading.
- 230V / 3-Phase Industrial: In a balanced 3-phase system, triplen harmonics (3rd, 9th) cancel out in the neutral. The primary targets shift to the 5th (300 Hz) and 7th (420 Hz) harmonics. Your Hz-to-dB filter design must shift its notch depths to achieve -30 dB at 300 Hz to protect variable frequency drives (VFDs).
When the Conversion is Meaningless
Attempting to use a Hz to decibels converter is physically meaningless in two specific scenarios:
- Without a Transfer Function: Asking "what is 500 Hz in dB?" is like asking "what is 50 miles per hour in gallons?" Without a reference circuit (a filter, an equalizer, or a transmission line), there is no mechanism to convert time-domain frequency into a logarithmic amplitude ratio.
- When PF and Phase are Unknown in Power Quality: If you are analyzing mains harmonics and you know the frequency of a spike (e.g., 250 Hz) but the power factor and phase angle are unknown, converting that spike's magnitude to a dB reduction is meaningless for sizing passive trap filters. You cannot calculate the reactive power (VARs) the filter must absorb without the phase relationship between the voltage and current waveforms.
Frequently Asked Questions (FAQ)
Can a Hz to decibels converter calculate audio loudness (dB SPL)?
No. Human hearing sensitivity varies wildly with frequency, a phenomenon mapped by the Fletcher-Munson equal-loudness contours. A 1,000 Hz tone at 60 dB SPL sounds significantly louder to the human ear than a 50 Hz tone at 60 dB SPL. To convert raw audio Hz to perceived loudness (phons or A-weighted dBA), you cannot use a simple mathematical converter; you must apply an A-weighting digital filter (like the IEC 61672 standard) to your FFT data before calculating the decibel level.
How do I convert Hz bins to dB in an ESP32 or Arduino audio project?
When running a Fast Fourier Transform (FFT) on an ESP32 using the ArduinoFFT library, the output gives you linear magnitude values for specific Hz frequency bins. To convert these to a decibel scale for a spectrum analyzer display, use the formula: dB = 20 * log10(magnitude / reference_magnitude). A common pitfall is forgetting to add a small epsilon value (e.g., 1e-9) to the magnitude before taking the log; if a bin's magnitude is exactly zero, the ESP32 will attempt to calculate log10(0), resulting in negative infinity and crashing your serial output or display rendering.
What is the difference between dB and dBm when measuring frequency bandwidth?
"dB" is a dimensionless ratio (e.g., a filter attenuates a 2.4 GHz signal by 3 dB compared to its peak). "dBm" is an absolute power measurement referenced to 1 milliwatt. When RF engineers measure the -3 dB bandwidth of an antenna at a specific Hz frequency, they are looking for the points where the radiated power drops to half. If your signal generator outputs 0 dBm (1 mW) at 2.4 GHz, the -3 dB bandwidth edges are the specific Hz frequencies where the measured power drops to -3 dBm (0.5 mW) across a 50-ohm load.






