3D printed containers with lids are custom-designed storage boxes, jars, cases, and holders that combine a body and a fitted lid into a complete enclosed storage solution. They are one of the most practically valuable and technically educational projects in beginner 3D printing because designing a container and lid that fit together correctly introduces the fundamental concept of tolerance — the deliberate gap between two mating parts that allows them to assemble smoothly — which is the core skill underlying all multi-part functional design.
Introduction: The Box That Fits What You Need
The humble box with a lid is one of the oldest manufactured objects in human civilization — functional, universal, and essential. Every home has dozens of them: jewelry boxes, spice jars, pill organizers, hardware bins, craft supply containers. And yet, commercially available boxes almost never fit the exact contents you want to store in them. They’re too large, making small items rattle. They’re too small, unable to hold the complete set. They’re the wrong shape for the specific item. Their lids fit loosely or too tightly.
Your 3D printer solves the box problem definitively. A container sized to exactly hold the specific objects you need to store — the exact dimensions, the exact depth, the exact lid style that makes access easy — is a few hours of design and printing away. And the process of designing a box and lid that fit together teaches the single most important concept in functional multi-part printing: tolerance.
Tolerance — the deliberate difference between designed mating dimensions — is what determines whether a lid slides smoothly onto a box, whether it presses on firmly, or whether it snaps closed with a satisfying click. Getting tolerance right transforms a frustrating part that doesn’t fit into one that feels like a precision-made commercial product. Getting it wrong produces the two classic failures: a lid that won’t go on at all, or a lid that falls off the first time the box is picked up.
This guide covers the complete world of printed containers with lids: the three main lid types and their design requirements, tolerance design for each type, container shapes and configurations, material selection, slicer settings, and a range of practical storage projects worth building.
Understanding Lid Types
The choice of lid type determines everything else about a container’s design. Three main lid types are appropriate for beginners, each with different functional characteristics and tolerance requirements.
Type 1: Press-Fit (Friction-Fit) Lid
The simplest lid type: a flat plate or shallow tray that fits over the top of the container body, held in place by friction between the lid’s inner wall and the container’s outer wall. No snap-fit features, no threads — just a tight-enough fit that the lid stays on under normal handling but can be removed with moderate hand force.
How it works: The container body has a rim section at the top. The lid has an inner channel that slides over this rim. The fit between the two is tight enough (0.1–0.3mm clearance) that friction holds the lid in place.
Advantages:
- Simplest to design
- Easiest to iterate when tolerance is wrong
- Clean, minimal aesthetic
- Works for any box shape (square, round, hexagonal, irregular)
Disadvantages:
- Less secure than snap-fit or threaded lids
- Can come off if the box is dropped
- Fit degrades over time as the plastic relaxes
Best for: Desktop organizer lids, display boxes, cases that are opened frequently, any container where ease of access is more important than security.
Tolerance for press-fit lids:
The critical tolerance is the gap between the container’s outer rim and the lid’s inner channel:
| Fit Type | Clearance per Side | Total Clearance | Behavior |
|---|---|---|---|
| Very tight press fit | 0.05–0.1mm | 0.1–0.2mm total | Requires force; holds firmly |
| Standard press fit | 0.1–0.2mm | 0.2–0.4mm total | Firm but removable by hand |
| Loose fit / sliding fit | 0.2–0.4mm | 0.4–0.8mm total | Slides easily; may fall off |
The starting point: Begin with 0.15mm clearance per side (0.3mm total) for a press-fit lid. Print a test piece, evaluate the fit, and adjust.
Type 2: Snap-Fit Lid
A lid with integrated snap tabs or a snap rim that clicks into engagement with matching features on the container body. The lid clicks on with a satisfying snap and requires deliberate force to remove — it won’t come off accidentally.
How it works: Snap tabs on the lid deflect outward as the lid is pressed down, then spring inward to lock behind a ledge on the container body. To remove, the tabs must be deflected inward (either by squeezing or by using a small tool) to disengage.
Advantages:
- Secure — won’t open accidentally
- Satisfying tactile feedback (the “click”)
- Can be designed for one-hand operation
- Good for containers that will be carried
Disadvantages:
- More complex to design than press-fit
- Tolerance must be more precise
- Snap tabs can fatigue with very frequent opening
Best for: Pill containers, jewelry cases, travel accessories, any container carried in a bag or pocket where accidental opening is a concern.
Snap-fit design was covered in depth in Article 80 (the corrected series Article 80: Printing Basic Containers with Lids) — for snap tab geometry specifications and material guidance, reference the snap-fit design principles (cantilever arms, overhang depth, retention angle, fillet at the root).
For a snap-fit lid container:
- Snap tab arm length: 8–12mm
- Snap tab overhang: 0.8–1.2mm for a hand-removable lid
- Material: PETG (PLA snap tabs fatigue and fail with repeated use)
Type 3: Threaded Lid (Screw-On)
A lid that screws onto the container body using printed threads. The most secure of all lid types — vibration and handling will not dislodge it — and the most complex to design and print accurately.
How it works: The container body has external threads (or a threaded insert section); the lid has matching internal threads. The lid screws on and off like a jar lid.
Advantages:
- Most secure lid type
- Excellent seal (especially with a flat-gasket design)
- Classic jar aesthetic
- Good for containers holding small loose items that would escape through gaps
Disadvantages:
- Most complex to design
- Thread accuracy requires careful calibration
- Slower to open and close than press-fit
- Threads can cross-thread if not started carefully
Best for: Spice containers, pill bottles, small parts jars, any container where security and a degree of sealing are needed.
Thread design for 3D printing: Standard metric threads (M20, M30, M40) can be printed, but FDM threads benefit from specific adaptations:
- Use trapezoidal or rounded thread profiles rather than sharp V-threads — sharp threads are hard to print cleanly at small scale
- Increase thread pitch to 2–4mm (coarser than standard metric threads) — finer threads are more affected by dimensional variation
- Apply generous tolerance (0.3–0.5mm clearance on the thread engagement) — tighter than this and threads bind; looser and they feel sloppy
Community resources: The Printables and Thingiverse libraries have many parametric threaded container designs with proven thread geometries. For a first threaded container, using an existing proven thread design is strongly recommended over designing from scratch.
Container Body Design
Basic Box Shapes
Rectangular box: The most versatile shape. Easy to design, easy to stack, uses shelf space efficiently. Design constraints: wall thickness 2–3mm; floor thickness 3–4mm; interior dimensions sized for the contents.
Cylindrical container: Excellent for small parts, spices, and loose items. Vase mode printing option for the body (seamless exterior). Press-fit or threaded lids work naturally with cylindrical geometry.
Shallow tray with lid: A flat tray rather than a tall box — useful for flat items (cards, photos, flat tools), pill organization, or display cases where the contents need to be visible and accessible.
Compartmentalized box: A container with internal dividers creating multiple compartments. The dividers can be integral (designed as part of the box body) or removable (separate divider panels that press-fit into the box in different configurations).
Sizing Your Container
The most common design mistake for storage containers is getting the interior dimensions wrong. The process:
Step 1: Measure the contents Use calipers to measure the objects that will go in the container. For a set of objects, measure the largest item and any that have an unusual profile.
Step 2: Add clearance Add clearance to each dimension for comfortable insertion and removal:
- For items placed carefully: 3–5mm clearance per side
- For items grabbed quickly: 5–8mm clearance per side
- For loose items (screws, beads): 10+mm total interior volume beyond items
Step 3: Calculate wall thickness to get outer dimensions Outer dimension = Interior dimension + (2 × wall thickness) For 3mm walls: Outer = Interior + 6mm per dimension
Step 4: Determine height Container height should be deep enough to hold contents without them protruding above the rim, plus allow the lid to sit flat:
- Interior height = tallest content height + 5mm (clearance + lid rim height)
The Rim Design: Where Body and Lid Meet
The rim is the most critical part of a container’s design — it is the interface between the body and the lid, and its dimensions determine whether the lid fits correctly.
For press-fit lids: The container body needs a rim section (typically the top 10–15mm of the container wall) that the lid slides over. This rim section should be at its designed outer dimensions without any flare or taper — consistent cylindrical or rectangular dimensions are essential for a press-fit to work consistently.
For snap-fit lids: The container body needs a ledge (a small horizontal feature that the snap tabs lock under) 3–5mm below the top edge of the rim. The ledge depth (how far it projects) determines the snap engagement.
For threaded lids: The top section of the container body carries the external threads. The thread section must be dimensionally accurate — the success of the entire threading depends on this.
Designing a Press-Fit Container in Tinkercad
Let’s walk through designing a complete press-fit box and lid for storing 20 SD memory cards.
The Contents
SD cards measure 24mm × 32mm × 2.1mm each. Storing 20 flat means they need a container approximately 25mm × 33mm interior with 40–45mm depth (20 cards × 2.1mm each = 42mm stack).
Step 1: Design the Container Body
In Tinkercad:
- Create outer box: 37mm × 45mm × 50mm (25mm interior + 6mm walls each dimension; 42mm depth + 8mm for floor and rim clearance)
- Create interior hole: 25mm × 33mm × 47mm — set as “Hole”
- Position interior hole centered horizontally and vertically, with bottom 3mm above the base (leaving 3mm floor thickness)
- Group — produces hollow container with 3mm walls and floor
Step 2: Design the Rim
The rim is the top 12mm of the container walls. For a press-fit lid, this rim must be at the precise outer dimensions. No modification needed — the rim is already the container’s outer wall.
Step 3: Design the Lid
The lid has three components:
- Lid plate: Flat top, same outer dimensions as the container: 37mm × 45mm × 3mm
- Lid rim (inner channel): A hollow rectangular ring that extends downward from the lid plate and slides over the container rim
The inner channel dimensions:
- Outer dimensions of channel = Container outer dimensions (37mm × 45mm)
- Inner dimensions of channel = Container outer dimensions − (2 × lid wall thickness)
For a press-fit with 0.15mm clearance per side:
- The channel slides over the container rim
- Channel inner dimensions = 37mm + 0.3mm × 45mm + 0.3mm = 37.3mm × 45.3mm (with 0.15mm clearance per side)
- Channel depth: 10mm (the lid rim extends 10mm over the container rim)
- Channel wall thickness: 2mm
In Tinkercad:
- Create outer lid assembly: 37mm × 45mm × 13mm (lid plate 3mm + channel depth 10mm)
- Create inner hole for channel: 37.3mm × 45.3mm × 10mm — set as “Hole”
- Position the hole so it removes the center of the bottom 10mm, leaving the flat 3mm lid plate intact at top and the 2mm walls of the channel around the sides
- Group — produces lid with flat plate and hanging rim channel
Step 4: Print Test Pieces
Before printing the full container, print a test version:
- Print only the top 15mm of the container body (just the rim section, 15mm tall)
- Print the full lid
Test the fit. The lid should slide over the rim with moderate resistance — firm enough to stay on without extra force, loose enough to remove by hand without significant effort.
If too tight: Increase inner channel dimensions by 0.1mm per side and reprint the lid. If too loose: Decrease inner channel dimensions by 0.1mm per side.
Most printers require 1–2 iterations to find the right tolerance.
Step 5: Print the Final Container and Lid
Once tolerance is dialed in, print the full container and final lid with settings from the table below.
Slicer Settings for Containers with Lids
| Setting | Container Body | Lid | Notes |
|---|---|---|---|
| Layer Height | 0.2mm | 0.2mm | Standard |
| Print Speed | 40–50 mm/s | 40–50 mm/s | Moderate |
| Outer Wall Speed | 25mm/s | 20mm/s | Lid rim needs accurate dimensions |
| Perimeters/Walls | 3–4 | 3–4 | Standard |
| Infill | 20–25% | 20–25% | Low infill adequate for containers |
| Top/Bottom Layers | 4 | 5 | Lid top needs extra solid layers |
| Support | None | None | Good design eliminates support |
| Bed Adhesion | Brim (5mm) | Brim (5mm) | Especially for tall narrow containers |
| Cooling | 90–100% PLA | 90–100% PLA | Full cooling for dimensional accuracy |
| Temperature (PETG) | 235–240°C | 235–240°C | Standard PETG |
| Seam Position | Rear | Rear | Seam on least-visible face |
The Tolerance Iteration Mindset
For any new container design, budget for at least one tolerance iteration. The first lid print almost always needs adjustment — either tighter or looser. This is normal, expected, and not a failure. It is the process.
The fastest iteration approach:
- Print just the rim test section (15mm tall, takes 15–20 minutes)
- Print the lid (takes 20–30 minutes)
- Test fit
- Adjust by 0.1mm per side
- Reprint lid only (not the full container body)
- Test again
By printing only the short test section and lid rather than the complete container, you can complete 2–3 tolerance iterations in the time it would take to print one full container. Once tolerance is confirmed, print the final full container with confidence.
Material Selection for Containers
| Material | Lid Snap Durability | Stiffness | Food Safety | Best Application |
|---|---|---|---|---|
| PLA | Poor | Good | Not recommended | Display boxes, desktop organizers |
| PETG | Good | Moderate | Acceptable with care | Most practical containers |
| ASA | Good | Good | Acceptable | Outdoor storage, garage containers |
| TPU | Excellent | Poor (flexible) | Good | Soft-close lids, squeezable containers |
| Nylon | Excellent | Moderate | Good | High-cycle snap lids, precision cases |
PETG as the Container Default
For most household containers with lids, PETG is the recommended material:
- Better snap-fit durability than PLA (critical for lids that are opened and closed regularly)
- Better moisture resistance (relevant for bathroom, kitchen, and outdoor containers)
- Adequate stiffness for most container shapes
- Good chemical resistance
- Prints nearly as easily as PLA
For containers that will hold dry goods, small hardware, craft supplies, or any items in indoor environments, PETG is the sensible default.
PLA for Display Containers
For containers that serve as display cases (Lego display boxes, collector storage, craft organization that looks decorative), PLA is acceptable because:
- Snap-fit durability is less critical if the lid is opened infrequently
- PLA’s wide color range includes more options for aesthetic matching
- The indoor, non-food environment doesn’t stress PLA’s limitations
Practical Container Projects
Pill Organizer
A weekly pill organizer with 7 individually lidded compartments — one per day. Each compartment holds the day’s medication with a labeled lid (Monday, Tuesday, etc.) that snaps closed.
Design: 7 identical small boxes in a row, each with a snap-fit lid. Print all boxes connected as one unit or print individually and group. Each lid labeled with the day’s name.
Material: PETG — the snap-fit lids will be opened and closed 365 times per year, requiring the fatigue resistance of PETG over PLA.
Spice Jar Set
A matching set of cylindrical spice jars with screw-on lids, designed to a consistent height and diameter for a tidy spice shelf. Commercial spice jars have inconsistent sizes — a printed set can be standardized to any dimension you choose.
Design: A cylinder body with external threads; a disc lid with matching internal threads. Each jar labeled with the spice name on the exterior.
Material: PETG. Food-safe PETG is preferable for spice storage. Note that spices are dry goods — direct sustained food contact is minimal.
Workshop Parts Bins
A set of small bins with snap-fit lids for organizing screws, nuts, and small hardware in a workshop. Stackable bins in 2–3 sizes that can be rearranged as inventory changes.
Design: Rectangular boxes in M-size and S-size formats. Snap-fit lids (important — workshop environments have vibration that would dislodge press-fit lids). Each bin labeled with the hardware type and size (M3 × 10, etc.)
Material: PETG or ASA for a garage workshop environment.
Earring and Jewelry Storage
Small compartmentalized containers for organizing jewelry — earrings pairs kept together in individual small cells, rings in a circular container with radial compartments, necklaces in a flat tray with lid.
Design: A shallow rectangular tray with 12 small square compartments (each cell holding one pair of earrings), with a press-fit lid. Each cell approximately 20mm × 20mm × 15mm.
Material: Silk PLA or matte PLA for a premium appearance appropriate to a jewelry context.
Travel Toiletry Containers
Small cylindrical containers for travel-size toiletries — solid shampoo bars, conditioner bars, moisturizer, lip balm. Threaded lids for security; sized for specific product dimensions.
Material: PETG for moisture resistance. Verify that the specific toiletry product doesn’t react with PETG (most do not).
First Aid Supply Box
A clearly labeled first aid box with snap-fit lid for a car, workshop, or kitchen. Compartments for bandages, antiseptic wipes, pain relievers, and other first aid supplies.
Design: Rectangular box with compartments sized for standard first aid items. Snap-fit lid (important — must stay closed during car travel). Large “FIRST AID” text on the lid face. Red filament for universal recognition.
Material: PETG.
Advanced Container Techniques
Stackable Container System
Containers designed to stack securely — the lid of one container registers with the base of the next, preventing sliding and falling. Design the lid with a shallow recess or ridge that accepts the base of the next container.
Key design feature: The outer dimensions of the container base should match a recess in the lid surface. When stacked, the base registers into the recess with 0.3–0.5mm clearance — loose enough to align easily, snug enough to prevent tipping.
Modular Divider System
A container with removable internal dividers that can be rearranged to create different compartment configurations. Dividers press-fit into channels molded into the container floor and walls.
Key design feature: Channels in the floor and walls at regular intervals (typically every 10mm) accept thin divider panels (2mm thick). The divider height matches the container interior height. Different divider configurations produce different compartment arrangements without reprinting the container.
Transparent Lid Window
A container with a solid body and a press-fit or snap-fit lid that has a circular or rectangular cutout displaying the contents through a piece of clear acetate or acrylic sheeting. The printed frame holds the clear panel in place; the contents are visible without opening the lid.
Design: The lid has a central opening (any shape) with a shallow recess around the opening perimeter to hold the clear panel. The panel is cut from a clear sheet (overhead transparency film, thin acrylic) and pressed into the recess with friction or a small bead of clear adhesive.
Locking Container
A container with a printed locking mechanism — a rotating twist-lock or a side-sliding latch that prevents the lid from being opened without deliberate action. Suitable for containers storing items that should not be accessed accidentally (children’s medication, small parts that toddlers could swallow, sensitive documents).
Design: A rotation-lock lid has the body and lid with matching angled tabs — the lid is positioned over the body, then rotated 45–90° until the tabs engage. To open, rotate in the opposite direction. Similar to a childproof pill bottle mechanism.
Troubleshooting Common Container and Lid Issues
Lid Won’t Go On — Too Tight
Cause: Tolerance too small; FDM dimensional variation made the fit tighter than designed.
Solution: Increase the lid’s inner channel dimensions by 0.1–0.2mm per side. Print the lid again (not the container body). This is the most common tolerance issue and typically requires only 1–2 iterations to resolve.
Quick fix for an existing tight lid: Lightly sand the inside of the lid channel with 220-grit sandpaper wrapped around a block that matches the channel profile. Each sanding pass removes approximately 0.05mm — check fit frequently.
Lid Falls Off — Too Loose
Cause: Tolerance too large; lid channel is wider than necessary for smooth sliding.
Solution: Decrease lid inner channel dimensions by 0.1mm per side. For an existing loose lid, apply a thin strip of foam tape to the inside of the channel — this reduces the effective channel dimensions and adds friction.
Press-Fit Lid Doesn’t Stay On When Container Is Picked Up
Cause: Insufficient engagement depth (lid channel too shallow — less than 8–10mm over the container rim); fit is loose; contents shift and lift the lid.
Solution: Increase channel depth to minimum 10–12mm. Tighten the fit by reducing tolerance by 0.1mm per side. For containers with heavy or shifting contents, switch to a snap-fit lid design.
Snap Tabs Break on First Use
Cause: PLA brittleness; snap tab arm too thick (requiring excessive deflection force); no fillet at the arm root.
Solution: Switch to PETG. Reduce snap tab arm thickness to 1.8mm. Add a 1.5mm fillet at the arm root. Reduce snap overhang to 0.8mm. These changes reduce the stress on each engagement.
Container Walls Are Bowing Outward at the Bottom
Cause: The tall, thin container walls flex under the print’s own weight during printing; infill insufficient to support the walls; PLA creep in thin-walled sections under load from contents.
Solution: Increase perimeters to 4. Increase infill to 30%. For particularly tall containers (height > 3× width), add internal ribs at the base for rigidity. Switch to PETG which has better resistance to creep and wall deformation under load.
Threaded Lid Cross-Threads or Binds
Cause: Thread tolerance too tight; thread profile too sharp; thread pitch too fine for FDM accuracy.
Solution: Increase thread clearance to 0.4–0.5mm. Use a trapezoidal or rounded thread profile (not sharp V-threads). Increase thread pitch to 3–4mm. Print threads vertically (with the thread axis vertical) for best dimensional accuracy. Test thread engagement before printing the full container.
The Tolerance Lesson
Of all the projects in this article series, the container with lid teaches one concept more clearly than any other: tolerance is a design decision, not a printing artifact.
When a lid doesn’t fit, beginners often assume the printer has made an error. In reality, the printer has printed exactly what was designed — it’s just that the design didn’t account for the small, consistent, predictable dimensional variation of FDM printing.
Once you understand that:
- FDM holes print smaller than designed (by 0.2–0.4mm typically)
- FDM outer dimensions print smaller than designed (by 0.1–0.3mm typically)
- These variations are consistent and predictable for a given printer and material
- You can compensate for them deliberately in every design
…you have made the leap from printing other people’s designs to designing your own parts that fit the first time.
This knowledge is the foundation of all functional multi-part design. The phone case, the replacement part, the snap-fit mechanism, the precision tool holder — all of these depend on the same understanding of tolerance that printing a box with a fitting lid teaches.
A container with a well-fitted lid is not just a storage solution. It is evidence of calibrated, precision thinking. Print it right and you’ll know you’re thinking the right way.
Conclusion: Everything Deserves a Proper Container
The things worth keeping deserve a proper home. Not a loose pile in a drawer, not a jumbled box of miscellany, but a purpose-made container sized for exactly what it holds, with a lid that fits correctly and stays put.
Your printer makes this possible for everything — the SD cards that live in a pile on the desk, the screws that roll around in the workshop drawer, the earrings that tangle at the bottom of a bag, the first aid supplies that are impossible to find when needed. Any collection of small objects that currently lacks a proper container can have one.
Design it to fit. Learn the tolerance. Print in PETG. Test the lid. Iterate once if needed.
Then fill it with the thing it was made to hold, put the lid on, and feel the satisfaction of the right container for the right contents, fitting exactly as intended.
That’s what precise functional printing produces: not just objects, but solutions.








