Short answer: make the opening at least half a wavelength across. At 2.45 GHz one wavelength is 4.8 in [122 mm], so half is 2.4 in [61 mm], and a 2.6 in [65 mm] round window covered in plastic does the job with margin. Keep the whole antenna within 4.8 in [122 mm] of that window and about 0.2 in [5 mm] clear of the plastic. Smaller openings still leak some signal: a 1.2 in [31 mm] hole costs about 6 dB, a 1/4 in [6 mm] hole about 20 dB, which turns a whole-house link into a same-room link. For the background on why a radio works inside metal at all, read that first; this page gives you the dimensions.
The wavelength sets the size
WiFi and Bluetooth share the 2.40 to 2.48 GHz band, so one window serves both. Wavelength is the speed of light divided by frequency: 3.0 x 10^8 m/s / 2.45 x 10^9 Hz = 0.122 m, or 4.8 in [122 mm]. A 0.06 in [1.5 mm] stainless wall is a mirror at this frequency. An opening in it passes radio in proportion to its size in wavelengths.
The half-wave mark, 2.4 in [61 mm], is where the opening stops being a leak and becomes a door. A slot half a wavelength long is itself a resonant antenna, and published shielding measurements on apertured enclosures find the same from the other side: shielding collapses once the opening length lands on a resonance of the wavelength. Below that mark the opening behaves like a waveguide below cutoff, the principle behind shielded ventilation panels, and the deeper the wall, the more it attenuates.
Size the window at the lowest frequency you use, because that end has the longest wavelength. At 2.40 GHz a half wave is 2.5 in [62.5 mm]; at 2.48 GHz it is 2.4 in [60.5 mm]. Call it 2.6 in [65 mm] and you cover the band with shape and placement margin to spare.
How much signal each size passes
For a single opening whose longest dimension is L, EMC practice uses a thin-wall estimate: loss in dB = 20 x log10(wavelength / 2L). It holds while L stays below half a wave. Treat it as a best case, because a hole through 0.06 in [1.5 mm] of steel is a very short waveguide that attenuates a little more as the hole shrinks. How much RF leaks through enclosure holes and seams covers the seam side of the same problem.
| Longest dimension of the opening | Estimated loss at 2.45 GHz | Free-space range left |
|---|---|---|
| 2.4 in [61 mm], half wave | about 0 dB | full |
| 1.2 in [31 mm], quarter wave | about 6 dB | about half |
| 0.6 in [15 mm] | about 12 dB | about a quarter |
| 1/4 in [6 mm] | about 20 dB | about a tenth |
Range follows the decibels: in free space, every extra 6 dB of loss halves the distance the link can span, and 20 dB takes it to a tenth. Indoors, walls and reflections blur those factors, but the order holds. That is the whole trade: half a wave costs you nothing, a quarter wave costs you half the house, and a hole the size of a cable gland costs you the far rooms.
A narrow slot works, with one condition
The obvious follow-up is 6 in wide by what, and electrically the answer is that thin is fine. A slot 2.4 in [61 mm] long and 1/8 in [3 mm] wide passes nearly as well as a round hole of the same length, with one condition. A slot passes only the field that crosses it at right angles to its length, so run the slot across the antenna's element, not along it, or cross-polarisation loss lands on top of the size loss.
A square or round half-wave window passes both polarisations, needs no thought about orientation, and gaskets more predictably, which is why it is the default. A round opening also passes slightly less than a square one of the same width, one more reason to buy the margin and call it 2.6 in [65 mm].
Where the antenna sits
Put the antenna on the face that aims at the router or the phone it serves, and give it two distances. The whole antenna stays within one wavelength, 4.8 in [122 mm], of the window; deeper in the box, the walls shadow the opening. Best is right behind it, about 0.2 in [5 mm] clear of the plastic. Where the layout allows, leave 1.2 in [31 mm] between the antenna and the metal around the window, a quarter wave that keeps the housing out of the antenna's near field.
Metal this close shifts the antenna's match, and the effect is measurable rather than folklore: researchers have published simulations and measurements of 2.4 GHz antennas integrated inside 2.2 in [55 mm] stainless hemispheres, housings barely half a wavelength across. So plan the RF path when you place the board, not after the box is built. The window material is the easy part: a few millimetres of plain polycarbonate or ABS costs well under 1 dB at this band. Skip metallised glazing, conductive mesh and carbon-filled plastic; plastic enclosure effects on antenna performance at 2.4 GHz has the attenuation numbers.
Sizing the window for a 2.4 GHz radio in a 1.5 mm stainless box
Inputs for this case:
- Radio: an ESP32-class WiFi and Bluetooth board, band 2.40 to 2.48 GHz, PCB antenna, kept inside the housing for looks.
- Housing: 0.06 in [1.5 mm] stainless, wall-mount, one face aimed at the router.
- Constant: speed of light, 3.0 x 10^8 m/s.
- Working figures for the link check: 100 mW (+20 dBm) transmit and -90 dBm-class receive sensitivity; replace both with your radio's datasheet values.
The rule in words: set the opening's longest dimension to at least half the wavelength at the lowest frequency the radio uses, then round up for the band edge and the window's shape.
The arithmetic:
- Wavelength at 2.40 GHz: 3.0 x 10^8 m/s / 2.40 x 10^9 Hz = 0.125 m = 4.9 in [125 mm].
- Half of that: 2.5 in [62.5 mm]. At the 2.48 GHz top of the band, half a wave is 2.4 in [60.5 mm].
- Chosen window: 2.6 in [65 mm] round, centred on the router-facing wall, board 0.2 in [5 mm] behind a 1/8 in [3 mm] polycarbonate cover.
Decision: at 2.6 in [65 mm] the window sits past half a wave everywhere in the band, so the closed box costs about 1 dB or less against the same board in open air, and you keep full range. Either side of it: at 1.2 in [31 mm] plan on about 6 dB, half the range, fine for one room; at 0.6 in [15 mm] or less, plan on dropouts two rooms away.
Scale check on the numbers above: 100 mW into a -90 dBm receiver is 110 dB of budget, and 33 ft [10 m] of indoor path at 2.45 GHz spends about 60 dB of it. Even the 20 dB penalty of a 1/4 in [6 mm] hole can still hold a same-room link. A 6 in [152 mm] window passes no more than the 2.6 in one; past half a wave, extra width buys placement freedom, not signal. Prove the build after assembly: door closed, window fitted, the RSSI a phone reports beside the router should sit within a few dB of the bare board at the same spot.
When a feedthrough beats a window
If the box lives outdoors or the link must cross a plant, put the antenna outside instead. A bulkhead RF connector needs one hole the diameter of its mounting thread, and the antenna then delivers its full rated pattern and range. Enclosure antenna feedthrough sealing covers the weatherproofing side. Keep everything behind a window when a smooth face, washdown or looks argue for it; a half-wave window with the antenna 0.2 in [5 mm] behind it gives up almost nothing indoors.
Putting the window on the order
Order the window cut at the factory and the job becomes a drawing. Pick the body first; the stainless enclosure size finder filters by grade and outside size. Then lay the 2.6 in [65 mm] window, the glands and the mounting holes on one face in the cutout designer, or send a drawing for a custom stainless body with factory cutouts. You approve the drawing and the enclosure is delivered in 10 business days from that approval. For the clearances around the window, the cutouts, glands and windows guide carries the spacing rules.
Our enclosures are rated NEMA 4X / IP66 by the manufacturer and not UL listed. If you are opening a box you already own, how to cut a hole in a stainless steel enclosure walks through the tools and the deburring. Afterwards the box keeps water out as well as the gasket you fit around that window, so buy the cover as a gasketed part.
Catalog dimensions to compare
Compare these catalog dimensions with your component layout. Open each enclosure for its rating, material and usable space, then check those specifications against your application.
| Enclosure | Material | Outside H x W x D / display | Rating |
|---|---|---|---|
| 10 × 8 × 6 in | 304 stainless | 10 x 8 x 6 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 12 × 10 × 6 in | 304 stainless | 12 x 10 x 6 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 16 × 12 × 8 in | 304 stainless | 16 x 12 x 8 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 16 × 14 × 8 in | 304 stainless | 16 x 14 x 8 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
Questions
Is a 6 in [152 mm] window better than a 2.6 in one?
Electrically, no. Any opening at or past half a wavelength, 2.4 in [61 mm] at 2.45 GHz, passes the band almost without loss, so 2.6 in [65 mm] and 6 in [152 mm] perform about the same. The larger window buys freedom: you can move the antenna off-centre, fit a bigger board behind it, or ignore orientation. You pay for it in gasket length and face space, not in signal.
Can the window be a long thin slot?
Yes, if the long dimension is at least half a wavelength, which is 2.5 in [62.5 mm] when you size to the 2.40 GHz bottom of the band. A slot passes only the field that crosses it at right angles to its length, so run it across the antenna's element. A round or square window of the same size passes both polarisations and needs no aiming, which makes it the safer default.
How close should the antenna sit to the plastic window?
About 0.2 in [5 mm] behind the plastic is the sweet spot: close enough to couple through the opening, far enough that it cannot touch and detune. Keep the whole antenna within 4.8 in [122 mm] of the window, and leave 1.2 in [31 mm] between the antenna and the metal around the opening wherever the layout allows.
Will WiFi still connect through a 1/4 in hole?
Often, but only near the router. The thin-wall estimate puts a 1/4 in [6 mm] hole at about 20 dB, roughly a tenth of the free-space range, and a 0.06 in [1.5 mm] wall trims a little more. With 110 dB of link budget and about 60 dB spent over 33 ft [10 m] indoors, you keep roughly 30 dB of margin: a low-rate connection in the same room, dropouts beyond it.
Does the plastic window itself add loss?
Very little. A few millimetres of plain polycarbonate or ABS costs well under 1 dB at 2.4 GHz, which is why it is the standard window material here. Metallised glazing, conductive mesh and carbon-filled plastics are the ones that hurt; they are conductive and can cost tens of decibels, more than the hole size you just fixed.





