Short answer: measure before you drill. A Raspberry Pi 5 with a small screen draws roughly 4-8 W from idle to full load, and a sealed 2 L stainless box sheds that heat through its own walls at a rise of 10-19 C over ambient. The steel is already the heatsink. Every plain hole you cut trades a jet-tested wall for dust, water and insects, and buys almost no cooling in return. Run the box through a one-hour full-load test with two probes, compare the rise with the 20 C (36 F) line below, and fit a breather vent only when the probe beats that line.
What the wall carries: the worked example
Take the box most of these builds end up in: 200 x 150 x 75 mm (8 x 6 x 3 in nominal), about 2.2 L, with 0.113 m² of total wall area. The heat guides on this site use 3.7 W/m²K as the wall coefficient for stainless, a value that already includes the air films on both sides. Bare 1.5 mm stainless conducts about 10,700 W/m²K across its own thickness, so the films set the pace and the metal barely matters.
For the load, use the widely reported measurements for a Pi 5 at 5 V: 2.7 W idle, 5.1 W serving web pages, 6.4 W with all four cores loaded. Those are user figures, not the board maker's datasheet. Add a small 5-7 in display at 1.6 W — an example assumption, so read your screen's label — and the full-load design point is 8 W.
The rise is load divided by coefficient times area: 8 W ÷ (3.7 W/m²K × 0.113 m²) = 19 C (34 F) at full load. At idle, 4.3 W, the same box sits 10 C (18 F) over ambient. In a 40 C (104 F) plant — the ambient this site's electronics guidance designs around unless a datasheet allows more — the air at the board reaches about 59 C. The enclosure heat calculation guide carries the same arithmetic from load to cooler selection. Plastic and wood housings use a lower coefficient, 3.5 W/m²K for plastic in the same guides, so their rise runs higher; the walkthrough of calculating internal temperature rise in sealed plastic enclosures covers that branch.
What you need
- Two temperature probes, thermocouple or thermistor, accurate to ±1 C or better: one for the air inside, one for ambient.
- A core loader that pins all four cores —
stress --cpu 4— plus your real workload playing on the screen. - The box dressed exactly as it will run: gasket seated, screws home, every entry plugged, screen at working brightness.
- A log of three readings every 10 minutes: board temperature, inside probe, ambient.
Run the full-load test
- Put the box where it will really live, on its real mount. Outdoors, sunshine is the largest single load on an enclosure, and the solar heat load article puts numbers on that part.
- Tape the inside probe in the open air 20-30 mm from the board, clear of chips and heatsinks, and shade the ambient probe beside the box. Probe placement decides whether you get a number or a scare; where to measure ambient temperature inside an enclosure sorts the positions out.
- Close everything up and set the screen to its working brightness.
- Pin all four cores with
stress --cpu 4and play your real content for one hour. A metal box this size reaches steady readings inside that hour. - Log all three readings every 10 minutes; steady state is two successive logs that match within 1 C.
- Full-load rise is the steady inside probe minus ambient. That one number decides everything below.
Reading the result: the 20 C line
| Full-load rise | What it tells you | What to do |
|---|---|---|
| Under 10 C | The walls carry roughly twice the load you measured | Seal it and stop; the margin is in hand |
| 10-20 C | The design band of the worked example | Keep the box sealed and drill nothing |
| 20-30 C | Wall area is the binding limit; a 30 C rise at that load implies under 0.072 m² of wall | Step up one enclosure size, or strap the screen's back to the wall with a thermal pad |
| Over 30 C | The load is larger than assumed; check screen brightness and add-on boards first | Trim the watts, then size up; vent only when size is capped |
Rise scales one-to-one with load and inversely with wall area, so area is the cheap lever: the next size of small stainless wall-mount junction boxes typically halves the rise without touching the rating. Conduction is the second lever; a thermal pad from the screen's back to the wall turns the case into part of the heatsink. For the fan-or-no-fan call in a sealed enclosure, the passive vents versus fan comparison works the trade with numbers. When venting is genuinely the answer, sizing inlet and outlet vents sets the hole areas before you cut. A wooden book-style housing has no rating to lose, but it insulates worse than steel, so run the same test there and expect a higher rise.
Why two drilled holes cool almost nothing
Stack effect caps what a passive hole can move. Set one 6 mm hole low and one high, 50 mm apart, with the inside air 19 K over ambient on a 293 K day. Draft speed follows sqrt(2 × g × H × ΔT ÷ T). Plugging in g = 9.81 m/s², H = 0.05 m and the rise above gives 0.25 m/s. A sharp-edged orifice coefficient of 0.6 trims it to 0.15 m/s. Two 6 mm holes total 57 mm² of opening, so the draft moves roughly 0.5 L/min. The heat it carries is 1.2 kg/m³ × 1,005 J/(kg K) × 8.5e-6 m³/s × ΔT = about 0.2 W at that rise, some 2% of what the walls already move. A handful of 6 mm holes stays under half a watt. Holes give moisture a path; they barely give heat one.
What holes cost the rating
Our stainless wall-mount boxes are manufacturer-rated NEMA 4X-type / IP66 — not UL listed. NEMA does not test enclosures; the maker's rating is the claim, and it belongs to the assembly as sealed. The second 6 in IP66 is proven against powerful jets from a 12.5 mm nozzle at 100 L/min, and the first 6 means dust-tight, so one plain hole fails both and takes the box's rating with it. US installations carry their own anchor: NEC 110.28 states the IP code never replaces the enclosure type number, and Table 110.28 is where the code lists which type suits which location.
The rating survives venting exactly one way: a breather vent the box maker approves for the rating, fitted to its mounting instructions. Whether breather vents keep a NEMA 4X rating walks through that rule, and what ventilation holes cost a sealed enclosure tallies the rest of the bill: dust, driving rain, insects. Both rating systems sit side by side in the NEMA 4 vs 4X vs IP66 guide, and the outdoor stainless enclosure page gathers the sun, condensation and breather guidance for weather-side boxes. Fogging that follows night-to-day cycling is a breather-and-desiccant job, not a heat problem.
Seal the entries you already have
Unused ports move more air than any two holes you could drill; an open connector is the chimney nobody planned. In a rated box every entry is a sealed entry: blanking plugs in unused cutouts, a rated gland on every cable that passes, and sealed connectors where board signals cross the wall. When a breather or gland hole is wanted, order it as a factory cutout; we machine custom cutouts to the drawing, and the box is delivered in 10 business days, anywhere in the world.
Checks when done
- Steady full-load rise inside the sealed band of the table.
- Two successive logs within 1 C before you call it steady.
- Board temperature flat for the last 20 minutes, with no throttling under load.
- Every cutout plugged or glanded, gasket seated, door screws home.
- Breather, where fitted: the box maker's part, mounted to its instructions.
Mistakes that end the test or the rating
- Testing at idle only; the idle case carries about half the load and hides the full-load number.
- Plain holes on a rated wall; the jet test behind the rating has no small-hole exception.
- A row of holes high on one wall with nothing below; no draft forms without a low inlet. Pair a low inlet with a high outlet as far apart as the box allows.
- A vent plug chosen for its marking alone; the assembly's rating comes from the box maker's approved part and its instructions.
- Drilling with the board live; pull the power first, because one curl of stainless swarf across a live board ends the build.
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 |
|---|---|---|---|
| 12 × 10 × 6 in | 304 stainless | 12 x 10 x 6 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 12 × 10 × 6 in | 316L stainless | 12 x 10 x 6 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 20 × 16 × 8 in | 316L stainless | 20 x 16 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
How much power does a Raspberry Pi 5 actually draw?
Commonly measured figures at 5 V are 2.7 W idle, 5.1 W under web traffic and 6.4 W with all four cores loaded — user measurements, not the board maker's datasheet. A small 5-7 in display adds roughly 1-2 W; the worked example assumes 1.6 W, so read the label on your screen. Sizing against the full-load number covers the whole range.
Can a drilled box keep its IP66 rating?
Only with the box maker's approved breather vent, fitted to its mounting instructions; the manufacturer-rated NEMA 4X / IP66 performance then stands. A plain hole cannot pass the test behind the second 6 — powerful jets from a 12.5 mm nozzle at 100 L/min — so bench-drilled venting ends the rating. When a hole is unavoidable, order it as a factory cutout with the matching rated part.
How much does one box size up buy me?
Rise divides by wall area, so doubling the area halves it. The example holds its full load at a 19 C rise over 0.113 m² of wall; about 0.23 m² turns that into roughly 10 C. In a 40 C plant that moves the air at the board from 59 C to near 50 C — real margin, without touching the rating.
How do I tell the board is suffering inside a sealed box?
The board reports its own temperature; log it beside the probes during the full-load hour. If sustained load drops the clock while room temperature is ordinary, the sealed box is holding heat the board minds, so trim the load, strap conduction to the wall or step up a size. If the board never throttles and the probe stays under the line, the sealed build is right.





