Cavity Resonator Frequency Calculator
Electromagnetism
- Convert the cavity dimensions to metres: 50 x 30 x 60 mm.
- Sum the squared mode terms for TE101: the root term is 26.03 per metre.
- Apply the cavity resonance formula f = (c / (2 sqrt(er))) x root with er = 1.00.
- The resonant frequency is 3.90 GHz.
A hollow metal box is a resonator: electromagnetic waves bounce between its walls and only certain frequencies fit the box in whole half-wavelengths along every axis. Those resonant frequencies are set by the three internal dimensions and the mode indices, integers that count the half-waves along each side.
This calculator evaluates f = (c / 2 sqrt(er)) sqrt((m/a)^2 + (n/b)^2 + (p/d)^2) for rectangular cavities, for both TE and TM mode families, and reports the free-space wavelength at resonance alongside the mode designation.
Cavity resonators sit inside microwave filters, wavemeters, particle accelerators and the reference oscillators of radar systems. The examples span a compact X-band box and two larger S-band and L-band cavities.
Worked examples
TE101 in 50 x 30 x 60 mm
(50 mm · 30 mm · 60 mm · 1 · 0 · 1 · TE · 1)
| Resonant frequency | 3.90 GHz |
| Frequency | 3,902 MHz |
| Free-space wavelength | 76.82 mm |
| Mode | TE101 |
TE101 in 100 x 50 x 100 mm
(100 mm · 50 mm · 100 mm · 1 · 0 · 1 · TE · 1)
| Resonant frequency | 2.12 GHz |
| Frequency | 2,120 MHz |
| Free-space wavelength | 141.42 mm |
| Mode | TE101 |
TM110 in 30 x 20 x 30 mm
(30 mm · 20 mm · 30 mm · 1 · 1 · 0 · TM · 1)
| Resonant frequency | 9.01 GHz |
| Frequency | 9,008 MHz |
| Free-space wavelength | 33.28 mm |
| Mode | TM110 |
How a metal box becomes a resonator
The walls of a good conductor force the tangential electric field to zero at the surface. A standing wave satisfies that condition only when each dimension contains a whole number of half-wavelengths of the field pattern, which is exactly what the mode indices m, n and p count. Miss that condition and the reflections interfere destructively; the box stores no energy and the frequency is rejected.
At resonance the cavity stores energy that sloshes between electric and magnetic form twice per cycle, like an LC tank circuit scaled up to a volume. The quality factor of a well-made copper or silver-plated cavity reaches tens of thousands, far beyond any lumped resonator, which is why cavities define the frequency in high-performance microwave equipment.
- Each dimension must fit whole half-wavelengths
- TE modes allow one zero index; TM modes in this calculator use the height index
- Q factors of 10,000+ are routine in plated cavities
Mode indices and the root-sum formula
The frequency is the speed of light over two, divided by sqrt(er) when the box is filled, times the root-sum-square of the three index-over-dimension terms. Each term is a spatial frequency in inverse metres; the first example's root term is 26.03 per metre, combining 1/0.05 from the length and 1/0.06 from the depth.
Raising any index raises the frequency, so a cavity always has a ladder of modes above its fundamental. Filter designers choose dimensions so the wanted mode sits alone, with the next modes far enough away to reject; the spacing of the ladder is a direct output of the same formula applied to neighbouring index triples.
Worked example: TE101 in a 50 x 30 x 60 mm cavity
For a 50 x 30 x 60 mm air-filled cavity the TE101 mode uses indices 1, 0, 1: one half-wave along the 50 mm length, none along the 30 mm height, one along the 60 mm depth. The root term is 26.03 per metre and the resonance is 3.90 GHz, a free-space wavelength of 76.82 mm, comfortably larger than the box, as it must be since each dimension holds only a half-wave projection.
Doubling the footprint to 100 x 50 x 100 mm drops the same mode to 2.12 GHz. The third example shrinks the box to 30 x 20 x 30 mm and switches to TM110, whose indices engage the height instead of the depth, and the resonance jumps to 9.01 GHz with a wavelength of 33.28 mm.
| Example | Dimensions (mm) | Mode | Frequency |
|---|---|---|---|
| 1 | 50 x 30 x 60 | TE101 | 3.90 GHz |
| 2 | 100 x 50 x 100 | TE101 | 2.12 GHz |
| 3 | 30 x 20 x 30 | TM110 | 9.01 GHz |
TE versus TM modes and which indices may be zero
TE modes have no electric field along the reference axis, TM modes no magnetic field along it. The practical difference for this calculator is which index may be zero: a TE mode tolerates one zero index, as TE101 shows, while the TM family used here takes its zero on the depth index instead, as TM110 shows. A mode with two zero indices cannot satisfy the boundary conditions and does not exist.
The lowest mode of a given box is usually the design target. For typical proportions TE101 is the fundamental, but a very tall or very flat box can promote a different triple to the bottom of the ladder, which is worth checking before committing metal.
Dielectric filling and temperature drift
Filling the cavity divides every frequency by sqrt(er): a foam or ceramic insert is a legitimate, if lossy, way to shrink a resonator. Even air is not quite vacuum: humidity and pressure move its permittivity slightly, and precision wavemeters are sealed or evacuated for exactly that reason.
Thermal expansion moves the frequency the other way, by the metal's expansion coefficient, roughly 17 parts per million per kelvin for copper. A 3.90 GHz cavity therefore drifts about 66 kHz per degree, which precision systems counter with invar construction or active temperature control.
Coupling energy in and out
A bare cavity is useless until energy can enter and leave: small loops couple to the magnetic field, probes to the electric field, and irises in a shared wall couple cavities together into multi-pole filters. Coupling strength sets the loaded Q and the insertion loss, trading selectivity against throughput.
The unloaded frequency this calculator reports is the starting point; coupling elements pull it slightly, and production filters are tuned with screws that intrude into the cavity and trim each resonance by the small amounts machining tolerances leave behind.
Cavity filters: several boxes, one passband
A single cavity gives one resonance with a Lorentzian response; a filter needs a shaped passband, so practical filters chain three to ten cavities through coupling irises, each cavity tuned to the same centre frequency and the couplings setting the bandwidth and shape. The combline and interdigital layouts fold this chain into compact geometries for radio equipment.
Every cavity in the chain obeys the same resonance formula, which is why a filter design starts with the box dimensions this calculator checks. A dimension error of one percent detunes a cavity by one percent, roughly 39 MHz at the first example's frequency, far outside any tuning screw's comfortable range.
Measuring a cavity you have built
The bench check uses a network analyser and a weakly coupled loop: sweep the frequency and the resonance appears as a dip or peak whose centre is read directly and whose width gives the loaded Q. Comparing the measured centre with the calculated 3.90 GHz closes the loop on machining accuracy and material assumptions.
Discrepancies are diagnostic. A resonance consistently low suggests the box is oversize or the effective permittivity higher than assumed; a low Q points at seams, surface finish or coupling losses. The formula is the reference against which the hardware is judged.
Where cavities earn their keep: accelerators and atomic clocks
Particle accelerators are cavity engineering at industrial scale: superconducting niobium cavities resonant at frequencies like 1.3 GHz accelerate bunches of particles with electric fields along their axis, and their dimensions are machined and tuned to the same root-sum law, with the mode chosen so the field pattern matches the beam path.
At the opposite extreme of power, the hydrogen maser and the cavity-stabilised oscillators inside frequency standards use a small cavity's high Q to discipline an electronic oscillator, achieving stabilities that quartz cannot reach. The formula on this page sizes the resonators in both.
Limits: wall losses, coupling loops and tuning screws
The formula assumes perfectly conducting walls and an empty, exactly rectangular box. Real walls have finite conductivity, which sets the Q and slightly lowers the frequency; surface roughness at the skin depth scale adds loss that plating quality controls. Seams and joints interrupt wall currents and can spoil Q if they cross current paths.
Anything inserted into the box, tuning screws, coupling loops, a sample under test, perturbs the fields and shifts the resonance. That perturbation is a nuisance for filters and the working principle for cavity-based material measurement, where the shift reports the sample's permittivity.
FAQs
What is the TE101 frequency of a 50 x 30 x 60 mm cavity?
The root term is 26.03 per metre, giving 3.90 GHz. The height index is zero for this mode, so the 30 mm dimension does not enter the result.
How long is the free-space wavelength at that resonance?
c / f = 76.82 mm at 3.90 GHz. Each box dimension holds a half-wavelength projection of this wave along its axis.
What happens if I double every dimension?
Every mode term halves, so the 100 x 50 x 100 mm cavity resonates at 2.12 GHz in the same TE101 mode. Frequency scales inversely with size, exactly.
Can a TE mode have a zero index?
TE modes allow one zero index (TE101 works), but two zero indices cannot resonate. The TM family in this calculator instead takes its zero on the depth index, as TM110 shows.
What is the TM110 frequency of a 30 x 20 x 30 mm cavity?
The root term is 60.09 per metre, giving 9.01 GHz, with a free-space wavelength of 33.28 mm. The mode engages the 20 mm height, which the TE101 pattern would ignore.
How does dielectric filling change the resonance?
Frequency divides by sqrt(er): filling the 3.90 GHz cavity with er 4 material would halve its resonance. Even humidity in air shifts precision cavities measurably.