3D printed caps and plugs
A cap closes something. What it closes decides everything about it: a dust plug, a threaded cap and a sealed cap are three different parts that happen to look alike.
A printed cap works when you decide which of three jobs it has. A dust plug only has to cover an opening and stay in it. A threaded cap has to engage a real thread and turn without cross-threading. A sealed cap has to hold a fluid or a gas, and that is a different craft: a printed cap will not do it without a compliant seal, and often will not do it at all. Measure the bore or the thread first, then pick the retention method, then decide whether to print. Most failed caps are not badly modelled, they were asked to do the wrong job.
Decide which of three jobs the cap has
Write the answer down before you model, because it changes the wall, the fit and the material.
- Cover. Keeps dust, swarf and fingers out of a hole. Needs a lip or a spigot that locates it, and nothing else. A printed part is excellent here.
- Threaded closure. Screws onto an existing thread and comes off again. Needs a printed thread or a threaded insert, plus clearance, plus a way to grip. Workable for coarse threads, unreliable for fine ones.
- Seal. Holds liquid or gas, or keeps water out of something electrical. Needs a gasket, an O-ring groove or a welded joint, and a printed cap alone will not deliver it.
Two smaller jobs sit between these. A plug is pressed into a bore and held by interference, and a blanking cap covers a port that is never opened again. Both fail if the bore is measured at one point.
If the cap has to keep water out of anything at mains voltage, or hold a fluid under pressure, buy the spare part. That is not a printing problem, it is a certification one.
Measure the thread or the bore
Measure the part the cap meets, never the cap that failed. A cap that came loose has already relaxed, and a cap that split will not tell you whether the thread was oversize. The full routine is in measuring a replacement part.
| What | How | Datum |
|---|---|---|
| Thread outside diameter | Callipers over the crests, in two directions 90 degrees apart | Across the crests, at three points along the thread |
| Thread pitch | Pitch gauge, or measure over ten threads and divide by ten | Crest to crest, along the axis |
| Usable thread length | Depth rod into the thread until it bottoms | From the rim to the end of full thread |
| Bore diameter | Inside the bore at the rim, the middle and the bottom, two directions | Across the bore, perpendicular to the axis |
| Bore depth | Depth rod to the shoulder or the bottom | From the face of the opening |
| Neck wall thickness | Callipers on the neck, or measure inside and outside and halve the difference | Perpendicular to the neck wall |
| Clearance around the cap | Measure with the part in place | To the nearest fixed surface |
Measure the bore in two directions, because bores are rarely round and a round cap touches on two lines. Measure the thread length, because a cap that engages three turns is safe and one that engages half a turn is not.
Printed threads, when they work
A printed thread is a spiral of overhangs. Each layer of the thread stands out over the one below it, and the quality of that overhang decides whether the thread engages or tears.
- Coarse is printable, fine is not. Below about 1.5 mm pitch the crest is narrower than a nozzle line, and what comes out is a rough groove. A 20 mm cap with a 2 mm pitch prints and works.
- Print the thread upright. A cap standing on its top, with the thread axis vertical, gives every thread layer a small overhang on the same side, and the thread comes out clean. Lying on its side, the thread is a series of support scars.
- Clearance on the flanks. Allow 0.3 to 0.5 mm on the diameter when printing a male thread against a real female one. Test on a short ring before printing the cap: 5 mm of thread is a two minute print and answers the question.
- Chase it, do not force it. If the thread binds, run the matching tap or die through it once. That is normal practice and it removes the elephant's foot and stringing that jam the first turn.
For a fine thread, a metal insert or a bought cap is the honest answer. A printed M30 by 3.5 thread on a jar is routine; an M8 by 1.25 is possible and unpleasant.
Press fits and the bore that forgives
A plug held by friction is the most reliable printed cap, provided the interference is small and the wall around the bore can take the hoop stress.
Start with 0.1 to 0.2 mm of interference on a bore around 20 mm, on a plug with a lead-in chamfer of 1 mm at 45 degrees. The chamfer lets the plug find the bore without being aligned, and puts the first contact on a surface that deforms rather than on a square edge that shaves material off.
Three details make the difference between a plug that stays and a bore that splits:
- Wall around the bore. A printed boss needs roughly 2 mm of wall for 0.2 mm of interference, more if the material is brittle. PLA splits along a layer line at the boss; PETG deforms instead.
- Ribs instead of a full cylinder. Three or four shallow ribs give repeatable interference with far less stress than a full circumference, and the plug goes in straighter.
- A shoulder. A flange that lands on the rim stops the plug at a known depth and gives something to lever against. Without it the plug goes in too far first time.
Print a test ring of the bore, 6 mm tall, and push the plug into it first. It takes minutes and tells you whether the interference is right, whether the layers split, and how far undersize your printer's holes come out, which they usually do.
A seal is a gasket, not a cap
Layer lines pass water. A printed cap with a flat face against a flat rim leaks at the first layer join, whatever the material, because the surface is a stack of ridges rather than a plane. If the cap has to seal, the sealing element has to be something else.
- An O-ring in a printed groove. The groove needs a flat floor, a width about 1.2 times the cord diameter and a depth that compresses the cord by roughly 15 to 20 percent. Printing the groove floor smooth, with the part oriented so the floor is a top surface, is the difference between a seal and a leak path.
- A cut gasket. A sheet of rubber or silicone, cut to the rim shape and clamped by the cap. This works and is easy to check. The cap becomes a clamp, which is a job it can do.
- A printed gasket in TPU. Workable for dust and splash, not for pressure. TPU creeps under a sustained clamp load and the seal relaxes within days.
Then be honest about the limit. A cap that holds water in a sink is a different claim from one that holds water in a pressurised system, and a cap over a mains connection is a safety part. For both of those the answer is the manufacturer's spare.
Materials and what they touch
A cap sits against whatever is inside the thing it closes, so the material has to survive that, not just the room.
| Material | Good for | Fails against |
|---|---|---|
| PLA | Dust caps indoors, covers on shelf units | Heat, water over time, anything that creeps, fuel and solvents |
| PETG | Splash caps, plugs in domestic equipment, mild chemicals | Sustained load, sharp solvents, high heat |
| ABS or ASA | Warm enclosures, outdoor caps that see sun | Sunlight for ABS, strong solvents for both |
| Nylon | Plugs that must flex into a bore without splitting | Water absorption, dimension change, UV |
| TPU | Soft plugs, gasket washers, caps that must not mark | Pressure, sustained compression, heat |
Fuels, brake fluid, solvents and hot water are cases where the printed cap is the wrong part, because the material softens, swells or dissolves and the failure is a leak rather than a rattle. Food contact is the other line: layer lines harbour bacteria and most filaments are not made for it. For caps that sit on a cover rather than in a bore, the cover page covers the same measurement logic.
When to buy the cap
Buy the spare, or the generic equivalent, for any cap that seals a pressurised system, sits on a fuel or hydraulic line, covers mains wiring, closes a food or drinking water container, or is a listed safety component. The failure modes there are a leak, a shock or a contamination.
For everything else, a printed cap is one of the cheapest and most satisfying replacements: it carries no load, it is measured from one bore or one thread, and the fit can be checked in the hand. The hub at replacement parts by the thing that broke lists the other part types, and whether to print a replacement part sets out where the safety lines sit.
Questions
Can you 3D print a watertight cap?
Not one that holds water under pressure. Layer lines pass water even when the print looks solid, so a printed cap needs a rubber gasket or an O-ring in a groove to seal at all. For a pressurised or mains-connected system, use the manufacturer's spare.
What thread pitch can a 3D printer handle?
Coarse threads work and fine ones do not. Above roughly 1.5 mm pitch the crest is wide enough to print cleanly at a 0.4 mm nozzle, and a printed thread usually needs a tap or die run through it once. Below that, use a threaded insert or buy the cap.
How much interference should a printed plug have?
Around 0.1 to 0.2 mm on a bore near 20 mm, with a 1 mm lead-in chamfer. The wall around the bore needs about 2 mm to take the hoop stress, and ribs on the plug give a more repeatable fit than a full cylinder.
Written for the Refabrication preview. Sizing, material and safety notes here are general guidance, not engineering or compliance advice. Check any part against your own equipment, loads and local requirements before you print or install it.