
A box with a lid is one of the first things people want to design themselves. A box for bits, electronic components, jewellery, playing cards or a gift. And almost every time the first version has a lid that either won't go on or falls off.
Our box with lid generator makes the box and the lid as two separate parts, with a clearance you set to suit your printer. Below we explain how to choose the parameters.
Free toolBoxes with lidsMade to measure, with compartments and a press-fit lidOpen the toolDimensions - outside or inside
In the generator you enter the outside dimensions of the box, and below the preview you see the inside dimensions and the size of a single compartment. If the box needs to hold a specific item, add two wall thicknesses and 1-2 mm of margin to its dimensions. The height is given without the lid.
Rounded corners aren't just for looks. Plastic shrinks less on curves than on sharp corners, so the box warps less and the lid fits better.
Wall thickness
It's best to use a multiple of the line width. With a 0.4 mm nozzle that's 1.2, 1.6 or 2 mm. The wall is then made only of perimeters, with no thin infill in between, so it's even and strong. 1.6 mm is a good compromise between stiffness and print time.
Lid clearance - the key to success
The lid has a lip that goes inside the box. The clearance is the gap between the lip and the wall, per side. Under the clearance field there are fit presets: Tight 0.15, Standard 0.2 and Loose 0.3 mm.
- 0.15-0.2 mm - friction-fit lid, stays on by itself even when you turn the box upside down.
- 0.25-0.3 mm - slight resistance, convenient if you open it often.
- 0.35-0.4 mm - loose lid, comes off effortlessly.
- First time on this printer? Print a small 40 × 40 × 20 mm box and check the clearance before making a big one.
Dividers
You set the number of dividers along the width and depth, and their height. At 100% the dividers end just below the lid's lip, so the lid closes without a problem. Lower dividers (e.g. 60%) make it easier to pick out small parts with your fingers.
Need a print like this?
Send a model or describe the part - you'll usually get a free quote within 24 hours.
Request a quoteHow to print
- Box bottom down on the bed, lid flat side down, lip facing up. Both without supports.
- The 3MF file contains two separate parts, so in the slicer you can give each one a different colour or filament.
- PLA for home and office, PETG where the box takes a beating. For a gift, PLA Silk or Matte looks great.
- For a smooth top surface on the lid, turn on ironing for the top layer in your slicer.
Finish: rounded edges and chamfers
In the “Finish” panel you choose how the edges look: rounded, chamfered or sharp. The model still prints without supports, and the edge on the bed gets a small chamfer (up to 0.45 mm) that hides the “elephant’s foot” of the first layer. Where a part has to fit (hooks, holes, inner sizes), the generator only finishes the edges that do not change the fit. A rounded print looks bought rather than prototyped, and it does not cut your hand.
Boxes in batches
Need dozens of boxes for products, corporate gifts or packaging with your logo? We'll print a batch in your colours - see what small-batch production looks like, or take the model straight to the quote calculator. If you need open bins for a drawer, check out the Gridfinity generator.
Frequently asked questions
The lid won't go on - what should I change?+
Increase the clearance by 0.05-0.1 mm. Also check your flow calibration - excess plastic thickens the walls and eats up the clearance.
The lid falls off by itself - what can I do?+
Reduce the clearance to 0.15 mm or increase the lip height. A taller lip gives more friction surface.
Can the box have a hinge?+
The generator makes a slip-on lid. We design boxes with print-in-place hinges to order.
What's the maximum size?+
The generator allows up to 300 mm, but the box and the lid sit side by side, so together they take up more than twice the width. You can print large boxes one part at a time by downloading the STL of each part separately.
Recommended gear for this topic
- PLA filament 1.75 mm, 1 kgSee on Amazon
- Digital caliperSee on Amazon
Affiliate links: if you buy something I get a small commission, and you pay the same. As an Amazon Associate I earn from qualifying purchases.
Author
Bartosz Budny, founder of BnB3D
He has worked in 3D printing for more than 10 years: servicing, building and running printers, and has designed in Fusion 360 for more than 5 years. He writes about what he prints and tests on his own printers in Myszków, Poland (over 4,000 print hours on his MakerWorld models alone).
See 3D printing in action
On our BnB3D channel we show 3D printing behind the scenes - Bambu Lab printer tests, materials and real jobs.
Got a project to print?
Send a model or a description - you'll usually get a free quote within 24 hours.
Request a quote


