# How to 3D print a replacement knob that actually fits the shaft

Measure a D-shaft or splined knob shaft, size the bore so it grips without cracking, pick a material that survives heat, and tune the fit with a slider instead of a reprint.

---

A knob snaps off the stove, the volume dial on the amp crumbles, the dresser handle
vanishes into the couch. The appliance still works fine, but now you are turning a bare
metal stub with pliers. A 3D printer fixes this for about 50 cents of filament and half an
hour, and the part costs nothing to design if you get one thing right: the bore that grips
the shaft.

That is the whole game. The outside of a knob is easy, it can be a cylinder, a disc, a
lever, whatever you like. The inside is where replacement knobs live or die. Model the
shaft hole a hair too big and the knob spins uselessly. Model it a hair too small and it
either won't push on or it splits the first time you crank it. This guide walks through
measuring the shaft, sizing the bore for a real grip, handling the annoying splined-shaft
case, picking a material that survives where the knob lives, and turning the fit into a
slider you nudge instead of a reprint you dread.

## What do you actually need to 3D print a replacement knob?

Two things, and only one of them is hard. You need the outer shape you want to grab, and
you need an internal bore that matches the shaft it pushes onto. The outer shape is a free
choice: pick a diameter that fits your hand, add knurling or flats for grip, match the
original style if you care. The bore is the part that has to be exactly right, because it
is a mechanical interface with a shaft you cannot change.

So the real work is not modeling a pretty knob. It is answering three questions about the
shaft: how big is it, what shape is it (round, D-flat, or splined), and how does the knob
lock to it (friction press-fit, a flat that keys against rotation, or a set screw). Get
those three answers with calipers, and the design is straightforward.

## How do you measure a knob shaft for a 3D print?

Pull the old knob (or its remains) off and measure the bare shaft with calipers, not a
ruler or a tape. Shafts are small and the numbers that matter are tenths of a millimeter,
which a tape measure cannot see. Measure the full shaft diameter first, then, if the shaft
has a flat, measure the distance from the flat face straight across to the round side. That
second number is the one people skip, and it is the one that keys the knob so it turns the
shaft instead of slipping.

Take each measurement two or three times and rotate the caliper jaws a little between
tries, because a worn or slightly out-of-round shaft reads differently depending on where
you clamp. Write down the largest honest reading for the diameter. If you are new to
reading calipers on small round parts, our [guide to measuring with calipers for 3D
printing](/blog/measure-with-calipers-for-3d-printing) covers how to avoid the common
tenth-of-a-millimeter mistakes that turn a snug knob into a loose one.

While the shaft is exposed, note two more things: how deep the shaft sticks out (so the
bore is deep enough to grab it but the knob still seats against the panel), and whether the
original knob used a set screw (look for a small threaded hole on the side and a matching
flat or dimple on the shaft).

## What are the common appliance and electronics shaft types?

Most knobs push onto one of a handful of standard shafts. Identifying yours tells you both
the nominal size to expect and how the knob should grip it. Here are the ones you will
actually run into:

| Shaft type | Where you see it | Nominal size | How the knob grips |
|---|---|---|---|
| Round D-shaft (one flat) | Stove and oven knobs, potentiometers, timers | 6 mm diameter, one flat | The flat keys rotation, press fit or set screw holds it on |
| Splined / knurled | Volume and tone knobs, car stereo, mixers | 6 mm across the teeth | Teeth bite into the bore, press fit |
| Round + set screw | Machine handwheels, larger appliances | 6 to 10 mm | A set screw clamps a flat or dimple |
| Square (tang) | Some faucets, valves, HVAC dampers | 4 to 8 mm across flats | The square shape keys and holds |

The 6 mm D-shaft is the workhorse. It shows up on a huge share of stove knobs and on nearly
every panel-mount potentiometer, which is why "6 mm D-shaft knob" is one of the most
searched shaft sizes on the model-sharing sites. A D-shaft is just a 6 mm round shaft with
one side milled flat, and that flat is what lets a knob turn the shaft instead of spinning
freely. That is why you measure across the flat separately: the flat depth varies between
manufacturers, and a bore that ignores it will never grip.

## How much clearance should a knob bore have?

Model the bore close to the measured shaft, then lean on the fact that FDM printers render
inside holes slightly undersized. A practical starting point is 0.1 to 0.15 mm of clearance
on each side of the shaft, which for a 6 mm shaft means drawing the bore at roughly 6.2 to
6.3 mm. Because the printed hole comes out a touch smaller than modeled, that lands as a
firm push fit rather than a loose one. Match the flat in the bore to your measured
across-the-flat number, using the same small clearance, so the D keys cleanly.

Do not chase a zero-clearance interference fit. A bore modeled dead-on to the shaft prints
undersized, so the knob either refuses to seat or wedges on so hard that it cracks the wall
as you force it. That splitting is the single most common way a first knob fails. Give the
shaft a little room, add a generous wall around the bore (2 to 3 mm, so there is plastic to
grip without flexing), and let the press fit do the work.

The reliable move is a quick test coupon: print a short stub with two or three bores at
6.2, 6.3, and 6.4 mm, try your actual shaft in each, and use whichever grips right. It costs
five minutes and a gram of filament, and it saves you from reprinting a whole knob to chase
a fit. Our post on [3D printing tolerances](/blog/3d-printing-tolerances-parts-that-fit)
explains exactly why holes come out undersized and how to run that test the fast way.

## How do you handle a splined (toothed) shaft?

Splined shafts are the tricky case, and worth calling out plainly. A splined shaft (the
fine-toothed kind on stereo volume knobs and many potentiometers) has teeth far smaller
than a typical 0.4 mm nozzle can cleanly resolve. Modeling 20 crisp little splines and
expecting them to mesh perfectly usually ends in disappointment: the printed teeth are
mushy and either strip out or won't seat.

You have two reliable options. The first is to design a plain round bore very slightly
smaller than the shaft's outer tooth diameter and press the knob on hard, letting the
metal splines cut their own grooves into the softer plastic. This self-broaching approach
works well in a tougher material like PETG and gives a surprisingly solid grip. The second
is to sidestep the splines entirely: model a round bore that clears the shaft plus a
[set-screw](/blog/bolt-and-screw-holes-3d-printing) boss on the side, and let the screw
clamp against the shaft. The set screw does the gripping, so the bore only has to fit, not
key. For a shaft that will see real torque, the set screw is the dependable choice.

Whichever you pick, print it in a material with some give (PETG over PLA) so the plastic
deforms around the teeth or under the screw instead of cracking.

## Which material should you use for a replacement knob?

Match the material to where the knob lives, because heat is the quiet killer. A knob on an
amplifier, a dresser, or a bench tool is fine in PLA: it is stiff, accurate, and easy,
which makes for a crisp bore. A knob near real heat is a different story. PLA starts to
soften around 50 to 60 degrees C, so a stove or oven knob sitting next to a lit burner can
go soft, distort, and lose its grip on the shaft. For anything warm, print in PETG (holds
to roughly 70 to 80 C) or ABS/ASA (holds to around 95 to 100 C).

There is a mechanical reason to like PETG for knobs beyond heat, too: it is tougher and a
little springier than PLA, so it presses onto a shaft and self-broaches over splines
without the brittle cracking that PLA is prone to. If you are weighing the tradeoffs, our
[PLA vs PETG vs ABS guide for functional prints](/blog/pla-vs-petg-vs-abs-functional-prints)
lays out the heat and toughness numbers side by side. The short version for knobs: PLA for
cool, indoor dials, PETG for anything you handle hard or that gets warm, ABS or ASA for a
knob right next to a burner.

## How do you design the knob so the fit is adjustable?

Here is where a knob project becomes a five-minute fix instead of a reprint marathon. The
problem with grabbing a random STL off a model site is that the bore is frozen: if your
shaft measures 6.05 mm and the model was drawn for 6.35, you are stuck scaling the whole
knob (which distorts the outer shape) or giving up. The fix is to make the bore a real
parameter, not a number baked into a mesh you cannot touch.

In [Meshra](/builder), you describe the knob in plain English and put the shaft dimensions
right in the sentence, for example "a 32 mm diameter knurled knob, 18 mm tall, with a 6.3 mm
D-shaped bore 15 mm deep, flat 5.5 mm across, and an M4 set-screw hole in the side." Meshra
writes real parametric CAD from that description (CadQuery on the OpenCascade kernel) and
builds an exact, editable solid, not a frozen mesh, with a slider for every dimension you
named: bore diameter, flat depth, bore depth, outer diameter, set-screw hole. When your
test fit comes back a whisker loose, you drag the bore slider from 6.3 to 6.2 mm and the
part regenerates instantly. That re-run is deterministic and free on every plan, no AI call,
just the same program executed again with one number changed, so the fit updates while the
rest of the knob stays exactly as you drew it.

<TryMeshra />

Then export STL or 3MF for your slicer, or STEP if you want to keep editing the shape in
other CAD. If the idea of turning a sentence into geometry is new to you, [from a sentence
to a printable part](/blog/from-a-sentence-to-a-printable-part) walks through what happens
under the hood. The payoff is that "the shaft fit" stops being a property of a downloaded
file and becomes a knob on your screen: dial it in once against your real shaft, and you
never redraw a bore by hand again.

## Frequently asked questions

**What size is a standard stove or oven knob shaft?**
Most are a 6 mm round D-shaft: a 6 mm shaft with one side milled flat. The flat is what lets
the knob turn the shaft rather than spin freely. Because the flat depth varies between
brands, measure both the full diameter and the distance across the flat with calipers rather
than assuming a number.

**How much clearance should a 3D printed knob bore have?**
Start with about 0.1 to 0.15 mm of clearance per side, so a 6 mm shaft gets a bore modeled
around 6.2 to 6.3 mm. FDM holes print slightly undersized, so that lands as a firm press
fit. Avoid a zero-clearance bore, it prints too tight and can crack the knob as you push it
on.

**Why does my printed knob crack when I push it onto the shaft?**
The bore is too small, the wall around it is too thin, or the material is too brittle.
Open the bore by 0.1 to 0.2 mm, thicken the wall to 2 to 3 mm so there is plastic to grip
without splitting, and print in PETG rather than PLA if the knob takes real force.

**Can I 3D print a knob for a splined potentiometer shaft?**
Yes, but the fine teeth are smaller than a 0.4 mm nozzle resolves cleanly, so do not model
individual splines. Either print a round bore slightly undersized and press it on so the
metal splines cut their own grooves (best in PETG), or use a plain bore plus a set screw
that clamps the shaft.

**What material should I use for a stove knob?**
Not PLA if it sits near a lit burner, because PLA softens around 50 to 60 C. Use PETG
(good to roughly 70 to 80 C) or ABS/ASA (around 95 to 100 C) for knobs exposed to heat.
For cool indoor dials like a dresser or an amplifier, PLA is fine and prints the crispest
bore.

## Where to start

Pull the broken knob, measure the shaft with calipers (full diameter and across any flat),
and note whether it is round, D-flat, or splined, and whether it used a set screw. Then, in
the [Meshra builder](/builder), describe the knob with those numbers in the sentence, and
you get a parametric part with a slider for the bore so the fit is something you tune, not
something you guess. Browse the [template gallery](/templates) for shapes you can start from
and edit, or see [pricing](/pricing) for the plans. Your first part is free, no card
required, so you can measure your shaft and build a knob to fit it in one sitting.

A replacement knob is one of the most satisfying prints there is: a broken thing made whole
for pocket change. Measure the shaft honestly, give the bore a little room, print in a
material that survives where the knob lives, and keep the fit a slider you can nudge instead
of a reprint you have to sit through.
