Tolerance and fit calculator

Two printed parts that should fit together need a gap between them. Enter the size of the joint and choose how it should feel — pressed, snug, easy or free running — and the calculator gives the hole and peg sizes to put in your model.

Joint

mm

The diameter of a round peg, or the width of a tab or slot.

mm

Your printer

mm

Round holes typically come out 0.1–0.3 mm undersize. Print a test hole and measure it to know your value.

Print cost calculatorTolerance and fit calculatorE-steps and flow calculatorSteps per mm calculatorGear ratio calculatorFilament weight and length calculatorVolumetric flow calculatorResin print cost calculatorLayer height calculatorWall thickness calculatorPrint time estimatorInch to mm converterScale calculatorHeat-set insert and screw hole calculatorFilament drying calculator3D printer payback calculatorGT2 belt length calculatorSnap-fit calculatorStepper driver Vref calculatorPressure advance calculatorZ offset calculatorSTL volume and weight calculatorAll calculators

How the sizes are calculated

The clearance is the total gap you want between the two parts after printing. For a hole and a peg with the clearance on the hole, the hole is modelled at nominal + clearance and the peg at the nominal size. If your printer prints round holes undersize — almost all do — the hole correction is added on top, so the printed hole ends up where you wanted it.

The gap per side is half the total clearance: a 0.2 mm clearance leaves 0.1 mm all round a centred peg.

FitClearanceUse it for
Press0.0 – 0.1 mmPermanent joints, pressed in with force
Snug0.15 – 0.2 mmInserts and parts held by friction
Easy assembly0.25 – 0.3 mmLids, covers, parts taken apart by hand
Free running0.35 – 0.5 mmHinges, rotating pins, sliders
Printed threads0.4 – 0.5 mmScrew-top containers and lids

Holes for metal screws

For a screw to pass through freely, model the hole at the standard clearance size plus your hole correction: M2 2.4 mm, M2.5 2.9 mm, M3 3.4 mm, M4 4.5 mm, M5 5.5 mm, M6 6.6 mm, M8 9.0 mm (ISO 273, medium). For a screw that should cut its own thread into the plastic, use a hole about 85–90% of the screw diameter — around 2.6–2.8 mm for M3.

The reasons behind these numbers — elephant foot, shrinkage, slicer compensation — are explained in our guide to tolerances and fit.

Frequently asked questions

How much clearance do 3D printed parts need?

As a starting point for PLA on a 0.4 mm nozzle: 0 to 0.1 mm for a press fit, 0.15 to 0.2 mm for a snug friction fit, 0.25 to 0.3 mm for lids and parts you take apart by hand, and 0.35 to 0.5 mm for hinges and anything that must turn or slide freely.

Why do holes print smaller than designed?

Two effects add up: the outer surface of every wall bulges slightly beyond the slicer's line, which shrinks holes and grows pegs, and round holes are drawn as polygons whose flat sides cut inside the circle. Small holes suffer most.

Should the clearance go on the hole or the peg?

Usually on the hole: it is easier to remember, and a hole that is too tight can be drilled out while a peg that is too thin cannot be fixed. Splitting it between both works equally well if you are consistent.

Do these numbers work for every printer?

They are starting points. Printers, materials and slicer settings differ by a few hundredths of a millimetre. Print a small test with a range of clearances once, and you will know your own numbers.

Ready to print something? LyraMaker has free browser generators for keychains, signs, boxes, rulers and more — all exporting STL and 3MF.
Browse the generators →