By Kevin McAleer, 7 Minutes
Page last updated November 20, 2026

A box with a lid is the classic test of whether a designer and a printer understand each other. The lid has to go on without a fight and stay on without rattling. Everything in this course feeds into that one joint.
You’ll take BetterCad’s Box with a lid sample, resize it for something of your own, set the lid’s fit from your calibration and export both parts ready to print.

The box and its lid are laid out side by side, the way they’ll print. The lid is upside down, with its lip pointing up. The lip is the raised rectangle that drops inside the walls of the box and stops the lid sliding off.
Open Parameters.

| Parameter | Starts at | What it is |
|---|---|---|
width |
60 | Outside, left to right |
depth |
40 | Outside, front to back |
height |
30 | Outside, without the lid |
wall |
2 | Wall and lid thickness |
gap |
0.3 | Room between the lid’s lip and the walls, on each side |
Notice the sizes are outside sizes. To find the outside from what has to fit inside, add two walls.
Decide what goes in the box and measure it. As an example, a Raspberry Pi Pico is 51 × 21 mm. Allow a couple of millimetres all round for clearance and you want an inside of about 55 × 25 mm, and 16 mm deep to clear the header pins and a few wires.
| Parameter | Sum | Set it to |
|---|---|---|
width |
55 + 2 × 2 | 59 |
depth |
25 + 2 × 2 | 29 |
height |
16 + 2 | 18 |
Height only adds one wall, because the box has a floor but its top is open.
Type the new values and close the panel.


Box, lid and lip all rebuild to match. Select the box and Properties confirms 59 × 29 × 18 mm.
This is the number that matters. gap is the space on each side between the lip and the inside of the walls, exactly like the fits in lesson 6.
0.3, a safe starting point for most printersIn the screenshots above, gap is set to 0.25.
Because the lid is long and thin, don’t go tighter than your sliding fit on your first try. A lid that’s slightly loose still works. One that’s too tight goes in the bin.
Open the Print panel.

Nothing overhangs more than 45°, so it needs no support. The box is open at the top and the lid’s lip points up, so every surface is on the bed, upright or facing the sky. That’s why the lid is modelled upside down.
If you lower wall to save plastic, run this again. At 0.6 it will fail.
Scroll to Material and pick what you’re printing in. The Pico-sized box and lid come to about 22 g in PLA.
Try changing the infill. The weight doesn’t move, for the reason you met in lesson 8. Walls this thin are solid all the way through.
.bcad.Slice with your usual settings. Three walls and 15% infill are plenty. Print, let it cool and try the lid.
| What happens | What to change |
|---|---|
| The lid drops on, with a faint click or none, and doesn’t slide about | Nothing. Write the gap down |
| The lid won’t go on, or needs force | Raise gap by 0.05 and reprint the lid only |
| The lid rattles or falls off when tipped | Lower gap by 0.05 and reprint the lid only |
| One corner is tight | Look for a blob at the layer seam, or a lifted corner. That’s a print problem, not a design one |
Only the lid changes when you change gap, so a second attempt costs a few grams.
When it’s right, that gap is your number for lids on this printer in this material. Put it in your saved printer’s Sliding fit.
gap by printing two lids 0.1 mm apart.Problem: The lid fits one way round but not the other. Solution: Check the bed is level and the first layer isn’t squashed, which spreads the base of the lip. Why: A squashed first layer makes the bottom of a part slightly bigger, known as elephant’s foot.
Problem: The lid is tight only at the corners.
Solution: Fillet the four upright edges of the lip by 1 mm, or raise gap slightly.
Why: Printers slow down and deposit a little extra plastic at sharp corners, so they bulge.
Problem: The lid goes on but the lip is too shallow to hold. Solution: Make the lip taller. Double-click the Size Lip step and raise its height from 4 mm. Why: A taller lip has more wall to bear against.
Quick quiz 1 of 3
The inside must be 55 mm wide and the wall is 2 mm. What is width?
Quick quiz 2 of 3
The lid won’t go on. What do you change?
Quick quiz 3 of 3
Why is the lid modelled upside down?
You can use the arrows ← → on your keyboard to navigate between lessons.
Comments