Posted in

How to fixture the workpiece for keyway milling?

If you’ve ever stood in front of a keyway milling machine, staring at a raw workpiece and thinking “if I mess this up, the whole part’s garbage,” you get it. I’ve been a keyway milling supplier for over 12 years, and let me tell you—fixturing isn’t just a side step. It’s 70% of the job. Skip it, and you’ll end up with wobbly keyways, misaligned bores, or workpieces flying off the table mid-cut (ask me how I know that last part). Today, I’m walking you through exactly how I fixturing workpieces for keyway milling—no fancy jargon, just real stuff that’s worked for every client I’ve ever partnered with, from small machine shops to big automotive guys. Keyway Milling

First off, let’s talk about what a bad fixturing job even looks like. Last year, a guy brought in 50 aluminum shafts for a small pump application. His method? Toggling a c-clamp on the shaft side and crossing his fingers. By the time he finished, 28 shafts had keyways 0.005” off center. That’s enough to make the gear or pulley bind, which leads to a whole bunch of problems—overheating, premature failure, even breakdowns on the production line. My fixturing process for these same shafts? I used a V-block (more on that in a sec), a parallel bar to keep the clamp pressure even, and a dial indicator to double-check runout before hitting the spindle. We got 100% good parts, no reworks. That’s the difference right there.

Let’s start with the basics: what kind of workpiece are we fixturing? Not all parts are the same, and your setup will change depending on if you’re dealing with a shaft, a bore, a flat plate, or something weird like a custom bracket. The two most common parts I see are solid shafts (for pulleys, gears, couplings) and bored housings (for pumps, motors). We’ll break both down, but first, the non-negotiables no one tells you.

Rule #1: Always clean both the workpiece and the fixture surface. Dirt, metal shavings, or a smudge of cutting oil on the worktable or V-block is enough to throw off alignment. I’ve had a customer come in with a batch of stainless steel shafts, and we spent 10 minutes wiping every V-block, the milling table slots, and the bottom of each shaft with isopropyl alcohol. Why? Because a single stray shaving between the shaft and V-block can create a 0.002” gap—tiny, but enough to make your keyway run off. Quick pro tip: I keep a lint-free microfiber cloth and a small can of compressed air right by the machine. Before I even touch a clamp, I blow all the shavings out of the T-slots on the table, too. Clamping on a table full of junk is just asking for trouble.

Rule #2: Never over-tighten clamps. I see this all the time, especially from new machinists. They crank a c-clamp or toggle clamp so hard they bend the workpiece or warp it. That’s a disaster—when you loosen it, the part springs back, and your keyway is now crooked. I use a torque wrench for all critical setups, even the “quick and dirty” jobs. For 1”-diameter shafts, I set my c-clamps to 15 ft-lbs. For larger 6” shafts, it’s 40 ft-lbs. YMMV depending on the material—aluminum is way softer than steel, so you need less pressure. Another trick: use a parallel bar between the clamp and the workpiece, not directly on the metal. The parallel bar spreads the pressure evenly, so you don’t get that dimple or bend in the side of your part. Trust me, dimples are a pain to grind out after.

Now, let’s get specific with the most common workpiece: solid shafts. 90% of the keyway jobs I do are on round shafts, so this is where I focus most of my process. First, pick the right fixture for round stock. 9 times out of 10, I use a V-block. Not the plastic kind from the hardware store—get cast iron V-blocks, precision-ground to within 0.001” of angle. Why? Plastic flexes, cast iron is rigid. For shafts under 2” diameter, I use a single V-block. For larger shafts (2”-8”), I pair two V-blocks, one at each end of the part, to support the full length so there’s no sag. Sag = bent shaft = bad keyway alignment.

Once your V-blocks are set up on the table, align them along the machine’s X-axis (the length of the table) using a straight edge. You don’t need anything fancy—just a precision steel straight edge that’s checked annually. Set it against the sides of both V-blocks and adjust until the straight edge lines up perfectly with both. Then, place the shaft in the V-blocks. Here’s where a lot of people mess up: they just drop the shaft in and clamp it, but they don’t check the runout. Runout is how much the shaft wobbles as it spins, right? For keyway milling, runout should be less than 0.001” per inch of shaft diameter. How do you check that? Use a dial indicator. Mount the dial indicator on the machine’s quill, touch the tip to the top of the shaft, rotate the shaft by hand, and watch the dial. If it moves more than 0.001”, adjust the shaft in the V-block until it’s straight.

Once it’s straight, clamp it. Wait—where do you clamp it? You never clamp directly over the end or near where you’re cutting, because that can shift. I clamp midway between the two V-blocks, but not directly on the spot where the keyway will be. Leave a ½” gap between the clamp and the keyway location. That way, when the mill cuts, there’s no pressure moving the part. Also, if you’re doing a long shaft, add a third clamp in the middle to prevent sag. Like I said earlier, sag is a silent killer.

Another thing for shafts: if the shaft has a keyway already, or has a shoulder (like where a gear seats), align the keyway with your cutter before locking it down. Use a edge finder to find the center of the shaft, then set the cutter offset so it’s exactly where you want the keyway. Then, recheck the runout one more time after clamping. Sometimes tightening the clamp shifts the part even a tiny bit—you have to verify every single time. For example, last week I was doing a batch of 1” steel shafts for a forklift application. I aligned the cutter, checked runout at 0.0008”, clamped the shaft, and when I rechecked, it was 0.002” off. Loosened the clamp, adjusted a tiny bit, re-clamped, and it was perfect. That extra 2 minutes saved me from 10 hours of rework.

Now, what if you’re working with a bored housing—like a motor end cap with a hole you need to mill a keyway into? That’s a different setup entirely. First, you can’t use a V-block here because it’s a hollow bore. Instead, I use a mandrel. A precision mandrel that fits snugly into the bore, no play. If the mandrel has any wobble, your keyway will be off-center, same as a shaft. So first, clean the bore and the mandrel, slide it in until it’s seated all the way. Then, clamp the mandrel to the milling table. Again, parallel bars between the clamps and the mandrel to spread pressure.

Next, align the mandrel’s center with the machine’s Y-axis (the cross-feed direction) because that’s where your keyway will run. Use a dial indicator to check the runout of the mandrel, not just the housing. The housing might be slightly out of round, but the mandrel is precision-ground, so it’s the mandrel’s runout that matters here. Runout limit is still 0.001” per inch, same as shafts. If the mandrel is running true, you’re good to go. One extra tip for thin-walled housings: don’t over-tighten the clamps. Thin wall = easy to deform, and if you bend the housing, the keyway will be crooked. I use toggle clamps here because they’re adjustable and don’t put as much constant pressure as a c-clamp. I also add a backup support under the housing to prevent it from flexing when the mill plunge cuts. Plunge cuts are rough, especially on thin material. A little support goes a long way.

What about custom workpieces, like a flat bracket that needs a keyway on the side? Less common, but I get these all the time for machine mounts. For flat stock, I use a sine plate or a custom fixture plate, but if it’s a one-off, I’ll use parallels and angle blocks to set the angle. The key here is to make sure the surface you’re milling is perfectly parallel to the table. Again, use a dial indicator to check. Set the indicator on the top of the workpiece, move the table across the Y-axis, and if the dial moves more than 0.001”, shim it with a thin metal shim until it’s flat. Shims are your friend for tricky setups. I keep a set of feeler gauges handy for this—they make great shims in a pinch.

Now, let’s talk about mistakes I’ve made over the years, so you don’t have to. First, not accounting for material expansion. Stainless steel expands way more than aluminum when it’s cut (heat from the mill), so if you’re clamping a stainless shaft cold, you might clamp it too tight once it heats up during cutting, leading to deformation. I always do a test cut on a scrap piece of the same material first, see how much it heats, adjust clamp pressure accordingly. Second, forgetting to lock the table axis after setting. I can’t tell you how many times I’ve walked away to get a coolant bottle, turned the table by accident, and come back to a part that’s way off. Lock the X and Y axes once you’ve aligned everything. Most mills have a quick lock lever on the table—use it. Third, not using backup stops. If you’re milling multiple parts, use a positive stop to set the location, so you don’t have to align every single one from scratch. I make custom stops out of steel bar stock for batches of 20+ parts. It cuts setup time in half and eliminates alignment errors between parts.

Wait, one big question I get all the time: do I use a collet chuck or a vise for keyway milling? Collets are great for small shafts (under 1”), because they grip the entire diameter, no wobble. But for shafts over 1.5”, collets don’t have enough holding power, especially during deep keyway cuts (like a ¼” deep keyway on a 2” shaft). I use V-blocks for most jobs over 1.5” because they give better stability and don’t distort the shaft. Vises are only for flat parts or very small shafts—they can mar the side of a round shaft, which is a problem if the shaft is going to be polished or coated. I always make sure the workpiece doesn’t get any surface damage, even if it’s not specified. A scratched part might get rejected at final inspection, and that’s on me.

Now, let’s wrap this up with a quick step-by-step for a typical 2” diameter steel shaft keyway setup, so you have something to follow. 1. Clean the table, two V-blocks, and the shaft with isopropyl alcohol, blow all shavings out of T-slots. 2. Place V-blocks 6” apart on the table, align them with a straight edge along the X-axis, lock them down. 3. Set the shaft in the V-blocks, loosen so it can rotate freely. 4. Mount a dial indicator on the quill, touch tip to the top of the shaft, rotate by hand. Adjust shaft in V-blocks until runout is <0.002”. 5. Install parallel bars on either side of the shaft, place a c-clamp midway between V-blocks, not over the keyway location. Torque clamp to 25 ft-lbs. 6. Recheck runout—if it’s still good, lock the X-axis. 7. Use edge finder to find shaft center, set cutter offset ½ the keyway width away from center, do a test cut on scrap steel, verify dimensions, then run the batch.

Look, fixturing isn’t rocket science, but it’s all about the details. The difference between a perfect keyway and a reject is often the 5 minutes you spend checking runout, cleaning parts, or not over-tightening a clamp. I’ve been doing this long enough that a good setup takes me 10 minutes, tops, and the bad setups that waste parts take way more time. At the end of the day, my job as a keyway milling supplier isn’t just to cut keyways—it’s to make sure your parts work, no reworks, no headaches.

If you’re struggling with fixturing for your keyway jobs, or you’re getting parts that aren’t lining up right, I can help. Whether you need custom fixture design, setup support for your machine shop, or a batch of keyway milled parts that are spot-on, just reach out. I’ve worked with everyone from small hobbyists to large manufacturing firms, and I’m happy to walk you through your specific setup. No sales pitch, just real advice from someone who’s been in the trenches for over a decade.

Linear Milling Machine References
Machinery’s Handbook, 31st Edition, Industrial Press Inc., 2020.
"Keyway Milling Best Practices," Modern Machine Shop, Vol. 76, No. 9, 2023.
Workholding for Precision Machining, Sandvik Coromant, 2022.


Shangqiu JDA Machinery Technology Co., Ltd.
With abundant experience, we are one of the most professional keyway milling manufacturers and suppliers in China. We warmly welcome you to buy cheap keyway milling for sale here from our factory. Quality products and reasonable price are available.
Address: No. 55 Pingyuan Middle Road, Liangyuan District, Shangqiu, Henan, China
E-mail: sales@jdamachines.com
WebSite: https://www.jdamachines.com/