ForHosting KIT · Science

Helmholtz resonator calculator

A 1.87-litre cavity with a neck 3.14 cm² in area and 5 cm long resonates at about 100 Hz in air at 343 m/s. Enter sound speed, neck area, neck length and volume to tune a bass trap, a silencer or an instrument body. Free in your browser.

  • Free
  • Runs in your browser
  • No sign-up
  • Your data stays on your device
Use it from WebAPIEmailTelegramApp soon
If you enter
Sound speed
343
Neck area
0.000314
Neck length
0.05
Cavity volume
0.0018714927
You get
Frequency
99.9999999917

A Helmholtz resonator is a rigid cavity of volume V that opens to the surrounding fluid through a short neck of cross-sectional area A and geometric length L. At low frequency the slug of fluid in the neck behaves like a lumped mass and the cavity like a pneumatic spring, so the system has one dominant natural frequency in hertz. Instrument builders, bass-trap designers, automotive silencer engineers, and physics instructors routinely know the geometry and the local speed of sound and need that pitch without running a full acoustic mesh. This Helmholtz resonator calculator evaluates the classical closed-form result: frequency f equals sound speed c divided by two pi times the square root of neck area A over cavity volume V times neck length L. Provide four positive finite numbers.

What the Helmholtz frequency formula means physically

In the classical lumped-element model the fluid in the neck is treated as a rigid slug whose mass is density times neck area times neck length, while the cavity is treated as an isentropic spring whose stiffness is density times sound speed squared times neck area squared divided by cavity volume. Combining mass and stiffness yields a simple-harmonic natural frequency f equal to c over two pi times the square root of A over V times L.

That identity is what this Helmholtz resonator calculator evaluates, returning f in hertz when c, A, L, and V use consistent units. Doubling cavity volume lowers the pitch by a factor of the square root of two; doubling neck length does the same because both increase the product under the radical. Widening the neck or using a warmer, faster fluid raises the resonance.

The model assumes wavelengths much longer than the cavity dimensions, a rigid wall, and a single neck that is not vanishingly short compared with its diameter. When those assumptions fail, end corrections, higher modes, and radiation damping matter and this frequency is only a first estimate. Cavity volume and neck length must be strictly positive: a zero or negative cavity cannot store restoring volume displacement, and a non-positive neck length would make the mass term vanish or change sign, both of which make the lumped frequency undefined in this model.

What you enter, what you get, and invalid values

Numeric strings are accepted. The highlighted contract for this calculator is that cavity volume and neck length must be strictly positive; sound speed and neck area must be positive as well or the square root is undefined. Example: sound speed three hundred forty-three metres per second, neck area three point one four times ten to the minus four square metres, neck length five centimetres, cavity volume about 1.87 litres yields a resonance near one hundred hertz.

Do not mix unit systems inside one request.

Where a Helmholtz frequency calculation helps

Acoustic consultants who already know the cavity they can build—plenum litres, bottle millilitres, or a boxed absorber—need the pitch that geometry will produce at room sound speed so they can check it against a target bass note. Product teams that freeze a neck tool and a cavity mould use the same evaluation when they must print a resonant frequency on a datasheet before cutting a prototype.

Undergraduate labs measure bottle resonance with a phone spectrum app and then compare the measured peak with the lumped prediction from measured A, L, V, and a thermometer-based c; a deterministic oracle that only solves for f keeps student notebooks honest. Failed validation does not consume balance. Keep requests small, pin the rounded frequency in tests, and you get reproducible resonance numbers for homework, LMS plugins, and edge workers without standing up a full acoustic finite-element stack for a single closed-form evaluation.

Bass trap and room acoustic checks

Predict the Helmholtz absorber pitch from a known cavity volume, neck area, neck length, and room sound speed before you commit to a wall build.

Bottle, port, and silencer prototyping

Lock a neck and a cavity, then compute the resonance frequency in hertz that manufacturing or 3D printing will produce at a stated speed of sound.

How is Helmholtz resonator frequency calculated?

Send positive finite sound speed c, neck area A, neck length L, and cavity volume V.

What if cavity volume or neck length is zero or negative?

Cavity volume and neck length must be strictly positive finite numbers; zero and negative values make the lumped frequency undefined and are not billed.

What units should I use?

Use any consistent set: metres per second, m², m, and m³ yield frequency in hertz. If you work in centimetres, keep area in cm², length in cm, volume in cm³, and sound speed in cm/s.

Should I include neck end correction?

This calculator uses the length you provide as L.

How do I lower the resonance frequency?

Make the cavity bigger or the neck longer: doubling either one lowers the pitch by a factor of the square root of two. A narrower neck also lowers it, while a wider neck raises it.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/phys/helmholtz-resonator

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/phys/helmholtz-resonator \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sound_speed":343,"neck_area":0.000314,"neck_length":0.05,"cavity_volume":0.001871492742}'
{
  "sound_speed": 343,
  "neck_area": 0.000314,
  "neck_length": 0.05,
  "cavity_volume": 0.001871492742
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "phys.helmholtz_resonator",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

If cavity volume or neck length is not strictly positive the task fails with invalid_input and is not billed.

What the Helmholtz frequency formula means physically

This capability does not apply end corrections for you—if you use an effective neck length L_eff equal to L plus a term proportional to the neck radius, pass that effective length as neck_length so the same formula still applies.

Input contract, response shape, and error behaviour

POST a JSON body with four required finite numbers: sound_speed (aliases c, speed_of_sound, speed) in metres per second or any consistent length-per-time unit; neck_area (aliases A, area, neck_cross_section) in square metres or the matching length squared unit; neck_length (aliases L, length, neck_len) in the matching length unit; and cavity_volume (aliases V, volume, cavity) in the matching cubic unit. Empty strings, missing fields, non-finite values, zero, and negative values fail with invalid_input naming the field and are not billed. On success the body echoes sound_speed, neck_area, neck_length, and cavity_volume rounded to twelve decimal places for stable goldens, returns frequency with the same rounding, includes the formula string f equals c over two pi times the square root of A over V times L, and a unit_hint explaining that frequency is inverse time when the four inputs are consistent.

Where a Helmholtz frequency API earns its keep

Simulation notebooks that sweep cavity volume or neck area can call this pure parse endpoint once per design point instead of re-deriving the algebra.

Labs and design notebooks

Call a deterministic parse API while sweeping V or neck dimensions so scripts get a stable f without embedding symbolic algebra.

What does the Helmholtz resonator calculator cost?

The browser tool is free. API requests use prepaid KIT balance at $0.002 per successful call; invalid input is not billed.

Read the full KIT documentation →