This page explains the technical methodology behind all eight tools on SoundDBMeter.com — how sound pressure level is measured in the microphone-based tools, how the NIOSH and OSHA safety algorithms calculate permissible exposure time, how the Frequency Analyzer processes audio spectra, how the Tone Generator synthesises audio, and how the pure calculation tools (SPL Converter, Volume Level Comparator, Noise Exposure Calculator) perform their computations without audio input.
Understanding the methodology helps you use each tool correctly, interpret results accurately, and apply appropriate limitations to your use of browser-based measurement.
Written and maintained by Addito, founder of SoundDBMeter.com.
Three Technical Categories
The tools on SoundDBMeter.com use three distinct technical approaches:
Microphone input and RMS measurement tools — capture real-time audio from your device microphone and calculate amplitude-based sound level readings. These require microphone permission: the Online Decibel Meter and Background Noise Test.
Frequency analysis and audio tools — either analyse the frequency content of incoming audio or generate audio output. The Frequency Analyzer captures microphone input for spectral analysis. The Tone Generator and Microphone Test use audio output or input verification without SPL measurement.
Pure calculation tools — perform mathematical computations without any audio input or output. The SPL Converter, Volume Level Comparator, and Noise Exposure Calculator accept typed numeric values and return calculated results.
Part 1 — How the Decibel Meter Measures Sound
Core Measurement: RMS Amplitude via Web Audio API
The Online Decibel Meter captures audio from your device microphone in real time using the Web Audio API — a standard technology built into modern browsers. All processing occurs locally in your browser. No audio is recorded, transmitted, or stored.
The measurement pipeline:
Step 1 — Microphone capture. Your browser requests microphone permission through its standard permission prompt. When granted, a real-time audio stream is opened via the Web Audio API’s MediaStream interface.
Step 2 — Signal windowing. The continuous audio stream is divided into short analysis windows — typically 20 to 50 milliseconds each. This allows rapid updates to the displayed dB reading while maintaining measurement stability.
Step 3 — RMS amplitude calculation. Within each analysis window, the tool calculates the Root Mean Square (RMS) amplitude of the audio signal. RMS amplitude is the standard method for measuring the effective energy of a varying signal and is the basis for sound pressure level measurement in professional acoustics. The formula is:
RMS = √( (1/N) × Σ x²ᵢ )
where N is the number of samples in the window and xᵢ is the amplitude of each sample.
Step 4 — Conversion to decibels. The RMS amplitude value is converted to a decibel (dB) reading using the standard acoustic formula:
dB SPL = 20 × log₁₀(P/P₀)
where P is the measured RMS pressure and P₀ is the reference sound pressure (20 micropascals — the threshold of human hearing at 1 kHz). The logarithmic conversion reflects the logarithmic nature of human hearing perception.
Step 5 — Display and session tracking. The resulting dB value is displayed in real time. The tool simultaneously tracks the session peak (highest dB reading recorded) and session average (mean of all readings taken) for the duration of the active session.
Step 6 — Calibration offset. A user-adjustable calibration offset is available in the tool interface. This allows you to compare the browser-based reading against a reference instrument and apply a correction factor (positive or negative dB) to align the browser tool’s output with a known reference. This does not make the tool a certified instrument — it allows a rough calibration for general reference use.
Safety Algorithm: NIOSH and OSHA Exchange Rates
The Decibel Meter includes a selectable safety algorithm that calculates estimated safe exposure time based on the current dB reading. Two standards are available: NIOSH and OSHA. These are not the same, and selecting the correct standard for your context matters.
NIOSH (National Institute for Occupational Safety and Health):
- Reference level: 85 dB for an 8-hour permissible exposure limit
- Exchange rate: 3 dB — for every 3 dB increase in noise level, the permissible exposure time is halved
- Formula: T = 480 / 2^((L – 85)/3), where T = permitted minutes and L = current dB level
OSHA (Occupational Safety and Health Administration):
- Reference level: 90 dB for an 8-hour permissible exposure limit (PEL)
- Exchange rate: 5 dB — for every 5 dB increase in noise level, the permissible exposure time is halved
- Formula: T = 480 / 2^((L – 90)/5), where T = permitted minutes and L = current dB level
The two standards differ materially. At 95 dB, NIOSH permits approximately 47 minutes; OSHA permits 4 hours. At 100 dB, NIOSH permits approximately 15 minutes; OSHA permits 2 hours. NIOSH’s criteria are more protective. The tool displays both options so users can apply the framework relevant to their jurisdiction or context.
A full comparison of the two standards is available on the NIOSH vs OSHA Noise Limits page.
Background Noise Test
The Background Noise Test uses the same RMS amplitude measurement pipeline as the Decibel Meter, applied to ambient room measurement rather than targeted noise measurement. It captures a sustained reading of the ambient sound environment and returns an average dB level for the session.
The Background Noise Test is designed for comparing room noise levels against recommended thresholds for specific environments — see Classroom Noise Level, Office Noise Level, Baby Room Noise Level, and Podcast Room Noise Level.
Part 2 — Frequency Analyzer
The Frequency Analyzer captures microphone input and displays the real-time frequency spectrum of the audio signal — the distribution of energy across the audible frequency range.
Technical approach: Fast Fourier Transform (FFT)
Audio is captured via the Web Audio API’s AnalyserNode, which applies a Fast Fourier Transform (FFT) algorithm to the incoming audio stream. The FFT converts the time-domain audio signal (a waveform) into the frequency domain (a spectrum), identifying which frequencies are present and at what amplitude.
The frequency axis spans approximately 20 Hz to 20,000 Hz — the standard range of human hearing. The amplitude axis shows the relative energy of each frequency component. Peaks in the spectrum indicate dominant frequencies in the environment.
What it is useful for:
- Identifying dominant frequency components in a noise source
- Distinguishing between broadband noise (energy spread across the spectrum) and tonal noise (concentrated at specific frequencies)
- Verifying the frequency output of audio equipment
- Investigating room resonances and acoustic characteristics
Accuracy note: The frequency resolution of the FFT depends on the analysis window size. Larger windows give better frequency resolution but slower time response. The Frequency Analyzer balances these to give useful real-time spectral information for general environmental analysis — it is not a precision octave-band analyser.
Part 3 — Tone Generator
The Tone Generator produces pure audio tones at specified frequencies using the Web Audio API’s OscillatorNode interface. It does not capture microphone input — it generates audio output through your device’s speakers or headphones.
Frequency is set by the user and can span the full audible range. The OscillatorNode generates acoustically accurate frequencies — the error between the requested frequency and the produced frequency is negligibly small in all modern browsers (sub-cent level).
What it is useful for:
- Audio equipment testing and calibration reference
- Acoustic resonance testing of rooms and spaces
- Verifying microphone frequency response by playing a known tone and measuring with the Decibel Meter
- Hearing threshold testing (with headphones — note that output accuracy depends on headphone frequency response)
Accuracy note: The OscillatorNode produces the correct frequency, but the perceived accuracy depends on your speaker or headphone frequency response. Very low frequencies (below approximately 80–100 Hz) may not reproduce accurately through laptop speakers or small phone speakers.
Part 4 — Microphone Test
The Microphone Test verifies that your microphone is functioning and accessible to the browser before you use other tools. It displays a live audio level indicator confirming that audio signal is reaching the Web Audio API.
No SPL measurement, frequency analysis, or safety calculation is performed. This is a hardware verification tool only.
Part 5 — Pure Calculation Tools
These three tools perform mathematical computations on typed numeric input. They require no microphone, produce no audio output, and operate entirely in the browser’s JavaScript runtime.
SPL Converter
The SPL Converter converts between sound pressure level values expressed in decibels (dB SPL) and sound pressure values expressed in pascals (Pa).
The conversion formulas:
dB SPL to Pascals: P = P₀ × 10^(dB/20), where P₀ = 20 micropascals (reference)
Pascals to dB SPL: dB = 20 × log₁₀(P/P₀)
These are the standard acoustic conversion formulas used in professional acoustics and engineering. The result is mathematically exact within the equal temperament of the calculation — the only source of error is the numeric precision of the input value entered.
Volume Level Comparator
The Volume Level Comparator takes two or more dB values and calculates:
- The difference in decibels between them
- The ratio of sound intensities (since intensity scales as 10^(dB/10))
- The ratio of sound pressures (since pressure scales as 10^(dB/20))
The decibel scale is logarithmic. A 10 dB increase represents a tenfold increase in sound intensity and approximately a doubling of perceived loudness. The comparator makes these relationships explicit and calculable from any starting values.
Noise Exposure Calculator
The Noise Exposure Calculator calculates permissible exposure duration based on a typed dB input value and the user’s chosen safety standard (NIOSH or OSHA).
The same exchange rate formulas documented in Part 1 (NIOSH 3 dB exchange rate, OSHA 5 dB exchange rate) are applied here, but to a manually entered dB value rather than a live microphone reading. This allows calculation of permissible exposure time for any theoretical noise level — useful for planning, training, and reference purposes — without requiring microphone access.
Important Limitations Across All Microphone Tools
The microphone-based tools on this site produce approximations, not certified measurements. Key limitations:
- Consumer microphones are calibrated for speech capture, not acoustic measurement — they do not have a flat frequency response across the full audible range
- Built-in laptop and phone microphones typically have a reduced low-frequency response below approximately 100–150 Hz
- Operating system audio processing, automatic gain control, and noise suppression can alter the raw audio signal before it reaches the Web Audio API
- Browser implementations of the Web Audio API vary between Chrome, Firefox, and Safari
These tools are not certified Class 1 or Class 2 sound level meters and are not appropriate for OSHA compliance documentation, legal proceedings, or any regulatory purpose requiring certified measurement.
Full accuracy variable details are in the Online Decibel Meter Accuracy and Accuracy and Limitations pages.
Privacy and Audio Handling
All microphone audio processed by the tools on this site remains within your browser session. No audio is recorded, stored, uploaded, or transmitted to any server. When you close the tool page, all audio data is cleared. Full details are in the Privacy Policy.
Related Pages
- Accuracy and Limitations — what affects measurement accuracy
- Online Decibel Meter Accuracy — dedicated accuracy page for the main tool
- NIOSH vs OSHA Noise Limits — detailed comparison of the two standards
- Editorial Policy — research and content standards
- References — cited sources
- About the Author — Addito’s background and expertise
- Contact — report a technical issue or inaccuracy
This Testing Methodology page is written and maintained by Addito, founder of SoundDBMeter.com. Last updated: June 2026.
