Easy CAD for 3D printing: the hand tools, and when to ask the AI

Inside or outside? The sums behind a 3D printed box, sleeve or cap that fits

A box for a 60 mm thing is not a 60 mm box. How to get from the object to the inside, the outside and the lid, with clearance and wall thickness.
17 November 2026 · 5 min readfitboxesbeginners

You measure the thing: 60 mm. You make a 60 mm box. The thing does not go in, because 60 was the outside of the box and the walls took 4 mm of it. Or 60 was the inside, and the thing still does not go in, because a 60 mm object does not enter a 60 mm opening. Every case, tray, sleeve and cap is three numbers, worked out in one order.

Three numbers, in order

  1. The object. What you measured, at its widest point.
  2. The inside of the part: the object plus clearance on both sides.
  3. The outside of the part: the inside plus a wall on both sides.

Written out for one direction:

  • inside = object + 2 × clearance
  • outside = inside + 2 × wall

The "2 ×" is where first parts go wrong. Clearance and wall are each given per side, and a box has two sides in every direction.

A worked example

Take an object 60 × 40 × 20 mm that should slide into an open box without rattling about.

  • Clearance: 0.5 mm per side, in the range for a sliding fit.
  • Wall: 2 mm, for a sturdy case.
  • Floor: 2 mm, the same as the wall.
LengthWidthHeight
Object604020
Clearance+ 2 × 0.5+ 2 × 0.5+ 0.5, on top
Inside614120.5
Wall or floor+ 2 × 2+ 2 × 2+ 2, the floor
Outside654522.5

Height is the odd one out: an open box has a floor and no ceiling, so the wall is counted once and the clearance goes on top. If the object should stand proud of the box so that you can grip it, make the inside height less than the object's.

How much clearance, how much wall

Per side, for PLA or PETG:

What the fit should doClearance per side
Press in and stay (a magnet, a bearing)0.1 to 0.2 mm
Stay on, come off by hand (a lid, a cap)0.2 to 0.3 mm
Slide (a drawer, a sliding lid)0.4 to 0.6 mm
Drop in and lift out (a holder, a tray)1 mm

How much clearance to leave explains where the plastic goes. For walls, 1.2 mm is the minimum (three lines of a 0.4 mm nozzle), 1.6 mm suits a case on a desk, and 2 mm one that gets dropped or screwed to a wall. A floor needs at least 1 mm. Wall thickness has the rest.

Round things: per side counts twice on a diameter

A diameter crosses the gap twice. A cap for a tube 25.4 mm across, with 0.2 mm of clearance per side, has a hole of 25.4 + 2 × 0.2 = 25.8 mm. With a 1.6 mm wall its outside is 25.8 + 2 × 1.6 = 29 mm.

Going the other way, a plug that fits inside a tube subtracts. For a tube 22 mm across the inside, a plug that pushes in and stays is 22 − 2 × 0.2 = 21.6 mm.

One rule covers both: the part that goes around gets bigger, the part that goes inside gets smaller, and the object you measured never changes.

The lid

A lid is a second box, upside down, round the first.

  • A lid that fits over the box: its inside is the box's outside plus 0.3 mm per side. For the 65 × 45 mm box above, the lid's inside is 65.6 × 45.6 mm.
  • A lid with a lip that drops inside the box: the lip is 0.3 mm smaller than the box's inside on every side. For the 61 × 41 mm inside, the lip is 60.4 × 40.4 mm.

Add a 0.5 mm chamfer to the bottom outside edge of the box. The first layer of a print flares out a little, and a lid that fits the top of a box can jam on that edge.

Saying which one you mean

"A box 60 × 40 × 20 mm" is ambiguous, to a person and to an AI. Say the word.

An open box, inside 61 × 41 × 20.5 mm, with 2 mm walls and a 2 mm floor.
An open box 65 × 45 × 22.5 mm outside, with 2 mm walls.

Or give the object and the fit, and leave the sums to the AI: "an open box for a part 60 × 40 × 20 mm, sliding fit, 2 mm walls". In SpeakCAD the AI states the sizes it used in its reply, so you can check that the inside came out at 61 × 41 mm before anything is printed.

By hand: the Open box takes the outside

In SpeakCAD, the Open box shape that a new model can start from has five numbers that matter here: Width, Length and Height, which are outside sizes, then Wall thickness and Floor thickness. Type 65, 45 and 22.5, then 2 and 2, and the inside comes out at 61 × 41 mm, 20.5 mm deep.

Then check it, do not trust the sum: tap Measure, tap one inner wall and the one facing it, and read the distance. Shaping a part this way is free, and so is the STL or 3MF of what you shaped by hand. To turn a solid block into a box instead, Shell and Fillet hollows it to the wall you type.

Before you print

The sums are as good as the measurement that went into them. Measure the object three times with callipers and keep the largest reading, and for a part with more than one fit, draw it on paper first with the three numbers written on each direction. If the part needs a boss, a lip or a flange, the names of a part's features says what to ask for.

A box sized this way is the second of the five first parts in CAD for beginners, and a good place to learn that a size is a number you can retype.

Shaping a part by hand (a hole, a cut, an added shape, text, rounded corners, a shell, every size typed in millimetres) is free, and so is downloading what you shaped. With the AI, a request spends credits for the work it takes: a quick edit usually 1–2, a small change 1–2, a new part or a design change 3–8, never more than 15 credits; on a plan the first 3 small changes of each part are free; without a plan a new part spends 3. Start with Maker: 50 credits a month for $7.99, cancel anytime.

Prompts to start from

Open one in the builder, change the numbers to yours, and the model renders in your browser, usually within a minute or two. Keep adjusting in the chat before you print.

An open box for a part 60 x 40 x 20 mm, sliding fit with 0.5 mm clearance per side, 2 mm walls and a 2 mm floor

Open in the builderPre-filled after sign-in. Try it in the live demo first, no account needed.

A lid that fits over a box 65 x 45 mm outside, 0.3 mm clearance per side, 1.6 mm walls, 8 mm deep

Open in the builderPre-filled after sign-in. Try it in the live demo first, no account needed.

A cap for a tube 25.4 mm outside diameter, 0.2 mm clearance per side, 15 mm deep, 1.6 mm wall, closed end

Open in the builderPre-filled after sign-in. Try it in the live demo first, no account needed.

Questions

Either, as long as you say which. The inside is the object plus clearance on both sides; the outside is the inside plus a wall on both sides. For an object 60 mm long with 0.5 mm of clearance and 2 mm walls, the inside is 61 mm and the outside 65 mm.

On the inside, 0.4 to 0.6 mm per side for something that slides in and 1 mm per side for something that drops in and lifts out. Then add a wall on each side for the outside: 1.6 mm for a case on a desk, 2 mm for one that gets dropped.

A lid that fits over the box needs an inside 0.3 mm bigger than the box's outside on every side, so 0.6 mm more across. A lid with a lip that drops into the box needs a lip 0.3 mm smaller than the opening on every side.

Shape it by hand, free

Open a box or a plate, tap where the hole goes, type the size and download the STL with a free account; the AI is there when you would rather describe the part, at 4 credits a part on a plan, its first 3 small changes free.