Will My 3D Printed Enclosure Overheat? A Heat-Rise Worked Example

Plastic is a poor conductor of heat, so electronics in a printed box run hotter than most people expect. In this example we put a Raspberry Pi 4 in a printed enclosure and use our free enclosure heat-rise calculator to answer three questions: how hot does it get, what fixes it, and what does the air temperature not tell you?
The example: a Raspberry Pi in a black PETG box
| Input | Value |
|---|---|
| Heat inside | 6 W (Raspberry Pi 4 under load, board 85 × 56 mm) |
| Limit | Raspberry Pi 4: 50 °C air around the board |
| Box | 120 × 90 × 40 mm, 2.4 mm walls, black PETG |
| Walls as printed | 2 wall loops, 4 top/bottom layers, 15 % infill |
| Where it runs | Standing on a desk, office at 30 °C in summer, always on |
Step 1: the sealed box
The air inside reaches 65 °C, 35 °C above the surroundings, against 50 °C allowed (Raspberry Pi 4 product brief: operating 0–50 °C ambient). Margin: -15 °C. Below a 5 °C margin, small changes in power, room temperature or printing can push it over.
Open the sealed box in the calculator →
The verdict is red: the air inside settles at 65 °C, 35 °C above the room and 15 °C over the Pi's limit. It takes about 24 minutes to get there, so a quick test on the bench can look fine. This box can only get rid of about 3.2 W before the air reaches 50 °C.
Three other figures are worth reading:
- Electronics 102 °C. The board surface is far hotter than the air. The calculator estimates that a 105 °C / 2000 h electrolytic capacitor there would last only about 0.3 years.
- Hottest wall 63 °C. That is within 15 °C of PETG's heat deflection temperature (69 °C). The box keeps its shape, but screw bosses and clips keep only about 42 % of their stiffness and may loosen. (This is why our snap-fit and screw boss examples check the temperature too.)
- Outside 45 °C. Above the 43 °C threshold for plastic surfaces touched for long periods (EN ISO 13732-1).
Step 2: what helps most
What helps most
- To stay at 50 °C: add about 1,030 mm² of low openings and the same high up, 28 mm apart.
- Make the box 25 % bigger in each direction: about 9.9 °C cooler.
- Mount it on small feet or standoffs so every face can lose heat: about 5.4 °C cooler.
- A thermal pad from board straight into the plastic wall would heat that spot of the wall to about 98 °C, too close to the material's limit. Put a thin aluminium plate between pad and wall to spread the heat, or use a metal heatsink.
- Add 200 mm² of vents low and 200 mm² high (28 mm apart): about 3.1 °C cooler.
- This enclosure can take up to about 3.2 W inside before the air reaches 50 °C.
The calculator ranks the options. The biggest lever is vents: about 1,030 mm² of openings low on the box and the same high up, 28 mm apart vertically, to reach 50 °C. Cool air comes in at the bottom, is warmed by the board, rises and leaves at the top (the stack effect). The vertical distance between the openings drives the flow, so low-and-high works much better than two openings at the same height.
Making the box 25 % bigger in each direction would cool it by about 9.9 °C, and standing it on small feet by about 5.4 °C. The list also warns against an easy-looking fix: a thermal pad from the board straight into the plastic wall would heat that spot of the wall to about 98 °C, too hot for PETG.
Step 3: sizing the vents
We tried three vent sizes, each the same area low and high:
- 400 mm² (for example two 4 × 50 mm slots): 56 °C. Better, still red. Open →
- 1,030 mm², as the calculator suggested: exactly 50 °C, on the limit. Open →
- 1,500 mm² of plain slots: 47 °C, 3 °C under the limit. Open →
The air inside reaches 47 °C, 17 °C above the surroundings, against 50 °C allowed (Raspberry Pi 4 product brief: operating 0–50 °C ambient). Margin: 3 °C. Below a 5 °C margin, small changes in power, room temperature or printing can push it over.
Printed grilles are not open holes. The area you enter is the open area. A printed grille or louvre is only about 60 % open, so 1,030 mm² of grille behaves like about 620 mm² of slots: the calculator gives 54 °C instead of 50 °C. Choose "Printed grille or louvres" in the vent settings, and enlarge the grille to match. Open this case →
Step 4: the air is not the whole story
With vents the air passes, but the board does not improve much: 91 °C at the surface with 1,500 mm² of slots, against 102 °C sealed. Vents cool the air, but the heat still has to leave the board through its own surface first, and that step barely changes. The calculator's checks say so directly: the electronics run much hotter than the air, so a heatsink may help more than vents.
The last option is a small 40 mm fan. The air drops to 34 °C and the board to 74 °C, and the box could now take up to 24 W. The verdict is still amber, not green, because of the capacitor check: about 1.9 years for a 105 °C / 2000 h part at 74 °C. Whether that matters depends on the real parts on your board, so the calculator asks you to check their ratings.
What we would build
For a Raspberry Pi running flat out all day in a warm office, we would choose the fan, plus a heatsink on the processor, and keep the vents low and high so the fan has a clear path. For a lighter load the 1,500 mm² slots are enough, with a mesh or a hood if the box sits somewhere dusty, since openings reduce protection against dust and water.
The calculator is a design estimate built on a thermal network: natural convection on every face, radiation, conduction through printed walls (solid skins plus infill), stack-effect and fan airflow, and a time simulation. It is not a certification. For tight limits, fans and heatsinks together, or complex vent paths, we run a CFD thermal simulation of the actual CAD model as part of our product development support.