3D Printing Generator
DeutschEnglish

Print a hinge: print-in-place or with a pin

Hinges that come off the printer ready to use

A 3D printed hinge comes in handy more often than you would think: for the lid of a wooden crate, the flap of a tool cart, a small jewelry box, a model hangar or the door of a control cabinet. This generator plans classic knuckle hinges made of two flat leaves, as long, as wide and as strong as you need them, with countersunk holes for mounting.

Pick the pin to match the job: print-in-place with small cones that make the hinge move straight off the bed, a bore for 1.75 mm filament, a metal pin or a screw, a lift-off hinge for doors you want to take off, and a flat hinge that disappears inside two plates. Ready-made designs are in the examples, such as the 40 mm print-in-place hinge, the 170 mm piano hinge or the lift-off hinge with a 4 mm pin.

How the generator works

The generator runs entirely in your browser. Nothing is uploaded, and your design lives in the link: “Share” sends exactly this hinge to someone else or keeps it as a bookmark. Every change shows up in the 3D preview a moment later.

The hinge prints flat and opened up. Both leaves lie side by side on the bed, with the pin axis running right above the joint between them. Leaf A carries the outer knuckles, leaf B the ones in between. Each knuckle sits on an arm that runs from the leaf’s edge to the axis at 45° and supports the knuckle from below, which is why nothing needs supports. The axis sits at half the knuckle diameter, so the knuckles themselves stand on the bed.

In the “Hinge” section, the generator shows the length of the knuckles and the footprint on the bed. Warnings appear right at the field they concern, for example when the knuckles get too short for the cones or the screw holes no longer fit.

Choosing the hinge type

“Hinge type” offers six variants:

  • Print-in-place: every knuckle has a cone at one end that reaches into a cone socket in its neighbor. The flanks are at 45° and the gap stays the same all around. The hinge comes off the bed ready to move.
  • Filament pin: a teardrop bore through all knuckles. With 0.2 mm “Pin play” it is 2.15 mm wide, and a piece of 1.75 mm filament turns in it with little play. Flatten the ends briefly with a soldering iron or glue them.
  • Metal pin: like the filament pin, but for a nail, a wire or a steel pin. With “Pin diameter” at 0, the generator uses half the knuckle diameter, so 4 mm for an 8 mm knuckle.
  • Screw: an M2, M2.5, M3 or M4 screw becomes the pin. The first knuckle gets a counterbore for a socket head or a 90° countersink for a countersunk head, the middle ones a clearance hole (3.4 mm for M3) and the last knuckle of leaf A a core hole (2.5 mm for M3) that the thread cuts into. That way the screw never turns in its own thread. The “Pin” section shows the screw length that fits; for the hinge with an M3 screw that is M3 × 35.
  • Lift-off: only two knuckles. The pin sits tight in leaf A and turns freely in leaf B. Mount leaf A at the bottom and you can lift the door straight off.
  • Flat inset: the knuckles lie inside two plates; more on that below.

Length, knuckles and gaps

“Length” runs from 10 to 170 mm. “Knuckles” counts the knuckles of both leaves together (2 to 25); odd numbers are common, as they put leaf A’s knuckles at both ends. A knuckle should be clearly longer than it is thick: the default hinge, 40 mm with five knuckles, has 7.7 mm knuckles at 6 mm diameter. “Knuckle ratio” makes leaf B’s knuckles shorter or longer than leaf A’s.

“Knuckle diameter” (3 to 16 mm) sets how strong the hinge is. Two gaps keep the parts from fusing while printing: the “Knuckle gap” separates neighboring knuckles along the axis and the cones from their sockets, and the “Leaf clearance” keeps each knuckle away from the edge of the other leaf. Both default to 0.4 mm, which suits a 0.4 mm nozzle.

To check that on your printer, use the gap test: set “Print” to “Gap test” and you get three short hinges with 0.1 mm less gap, the gap as set and 0.1 mm more, marked with one, two and three dots. With the defaults that is 0.3, 0.4 and 0.5 mm. The hinge gap test from the examples takes 6 g of PLA and a little over 21 minutes.

Leaves and countersunk holes

“Leaf width” is measured from the axis to the outer edge (5 to 80 mm); “Leaf thickness” runs from 1 to 8 mm. 2 to 3 mm are enough for small boxes; for doors and flaps take 4 to 5 mm like the cabinet door hinge for M4 screws. “Corner radius” rounds the outer corners.

“Mounting screws” offers metric countersunk screws (M2 to M4) or wood screws of 3, 3.5 or 4 mm. The holes get a 90° countersink on the top face; the flat underside that lay on the bed goes against your part. “Holes per leaf” spreads up to ten holes evenly, and “Hole distance from the edge” moves them toward the outer edge; at 0 they sit centered on the free part of the leaf. If a leaf is too thin for the full countersink, it is made shallower and the generator tells you from which thickness the heads sit flush.

The flat inset hinge

With “Flat inset”, the leaves become thick plates (3 to 15 mm “Plate thickness”) and the knuckles lie inside them. Nothing sticks out, which is ideal for folding stands, game boards, folders or lids that should stay flush. Each knuckle rests on a 45° support down to the bed, and the plate opposite is cut back just enough for the knuckle to turn.

“Axis position” decides how the plates fold. “Inside” puts the axis in the middle of the plates; they fold up to the “Opening angle” (30 to 150°), like the flat 60 mm print-in-place hinge at 90° or the flat 120° hinge for stands. “Top edge” puts the axis on the top face; the plates then fold 180° flat onto each other like the corner hinge. While building, the generator turns the parts step by step through the whole angle and only cuts away at the joint what would be in the way, keeping the clearance you set and leaving no overhanging edge.

Colors and multi-material

The two leaves never touch. Give leaf B its own color and it becomes an object of its own with its own extruder in the 3MF, like the two-color hinge. “Multi-color 3MF (PrusaSlicer)” prints it on an MMU3, a Prusa XL or a Core One with a multi-material setup, and “3MF (Bambu Studio / OrcaSlicer)” on printers with an AMS. For other slicers there is “STL per color (ZIP)”. On a single-nozzle printer, simply print the hinge in one color: a color change at a layer height would only color the tops.

Printing tips

  • Print it flat, just as it lies. The model already sits correctly on the bed; there is nothing to turn. You need no supports.
  • 0.2 mm layers, 0.4 mm nozzle. Finer layers make the cones smoother, but the gaps stay the same.
  • Don’t squish the first layer. A first layer pressed too hard spreads out and can fuse the knuckles at their foot. If that happens, go to 0.5 mm gaps.
  • Free it after printing. Let the hinge cool, hold one leaf and slowly open the other. The first time you’ll hear a faint crack; then move it all the way a few times.
  • Material: PLA is fine for boxes and models. For flaps that sit in the sun or in a car, use PETG.

Some numbers from a test slice (Prusa MINI, 0.20 mm SPEED profile, Prusament PLA, 15 % infill): the default 40 mm hinge weighs 4.6 g and takes 16 minutes, the hinge with an M3 screw takes 5.4 g and 20 minutes, the flat 60 mm hinge 11.9 g and 31 minutes, and the 170 mm piano hinge 19 g and 56 minutes. None of them needed supports.

Origin and license

The knuckle hinge follows knuckle_hinge() from the OpenSCAD library BOSL2 by Revar Desmera (BSD-2-Clause): the knuckle layout, the hinge profile with its 45° arm and the print-in-place cones. The code was translated to TypeScript and is checked against the original in OpenSCAD for the same volume and size. The leaves with countersunk holes, the bores for filament, pins and screws, the lift-off hinge and the gap test are new.

The idea of the flat inset hinge comes from in-place-hinge by Rodrigo Chandia (CC BY-SA 4.0). It is implemented as our own solution without any of its code. All licenses are listed on the licenses page.

Start right away in the generator or browse the examples. If you need a whole box with a built-in hinge, try the hinged box.

All parameters

The numeric settings of the generator with their default values and allowed ranges. Text, fonts, patterns and colors are set directly in the generator.

ParameterDefaultRangeMeaning
Hinge
Length40 mm10 – 170 mmAlong the pin axis. Up to 170 mm, so it fits a 180 mm bed.
Knuckles52 – 25Number of knuckles of both leaves together. Leaf A gets the outer ones. Each knuckle should be clearly longer than it is thick.
Knuckle ratio10.2 – 3Length of leaf B’s knuckles compared with leaf A’s: 1 = all the same, 0.5 = half as long.
Knuckle diameter6 mm3 – 16 mmThickness of the hinge roll. The pin axis sits at half of it above the bed.
Knuckle gap0.4 mm0.1 – 1 mmGap between neighboring knuckles and around the cones. 0.4 mm suits a 0.4 mm nozzle; if the hinge fuses, use 0.5 mm.
Leaf clearance0.4 mm0.1 – 1 mmGap between a knuckle and the edge of the other leaf (flat hinges: the other plate).
Pin
Pin diameter0 mm0 – 8 mm0 = automatic: cones at 60 % of the knuckle, 1.75 mm filament, a metal pin of half the knuckle diameter.
Pin play0.2 mm0 – 0.5 mmAdded to the radius of the pin bore. 0.2 mm lets 1.75 mm filament turn in a 2.15 mm bore.
Leaves
Leaf width20 mm5 – 80 mmWidth of each leaf, measured from the pin axis.
Leaf thickness2.5 mm1 – 8 mm2 to 3 mm suit small boxes, 4 to 5 mm doors and flaps.
Plate thickness7 mm3 – 15 mmThickness of both plates of the flat hinge. Its knuckles sit inside it.
Opening angle90 °30 – 150 °How far the plates fold up. The larger the angle, the more is cut away from the plates at the joint.
Corner radius3 mm0 – 30 mmRounds the outer corners of the leaves.
Screw holes
Holes per leaf20 – 10Evenly spread along the leaf.
Hole distance from the edge0 mm0 – 40 mmFrom the outer edge to the hole centers; 0 = centered on the free part of the leaf.

Frequently asked questions

My print-in-place hinge is stuck – what now?

Let it cool down completely, then gently bend it back and forth a few times until the fine strings between the knuckles break. If it still sticks, raise the knuckle gap and the leaf clearance to 0.5 mm. The gap test with three short hinges shows which value suits your printer.

Do I need supports?

No. The hinge lies flat, the arms under the knuckles are at 45°, so are the cones, and the pin bores are teardrop-shaped. In a test slice in PrusaSlicer, not a single support line appeared, even with automatic supports switched on.

Which pin is strongest?

A screw or a steel pin is the strongest. A piece of 1.75 mm filament is a good compromise and is easy to replace. Print-in-place is the most convenient, but its small cones carry less than a pin running all the way through.

Which screws fit the countersunk holes?

Choose metric countersunk screws from M2 to M4 or wood screws of 3, 3.5 or 4 mm. The countersink is 90° and faces up, so the flat underside of the leaf sits on your part.

How long can the hinge be?

Up to 170 mm, so it fits a 180 mm bed such as the Prusa MINI’s. For longer edges, put several hinges in a row or spread two or three shorter ones along the edge.

What is the flat inset hinge?

Its knuckles lie inside the thickness of two plates, so nothing sticks out. The plates are cut back at the joint just enough to fold up to the opening angle you set. With the axis on the top edge, they fold 180° flat onto each other.

Origin & license

  • BOSL2 by Revar Desmera · BSD-2-Clause · code ported – knuckle_hinge() from hinges.scad: knuckle layout, hinge profile with its 45° arm and print-in-place cones (core/geometry/bosl/hinges.ts)
  • in-place-hinge by Rodrigo Chandia · CC BY-SA 4.0 · idea – idea of the flat inset print-in-place hinge (own implementation, no code used)