GreatLight CNC Machining Factory logo
CNC Machining
Rapid Prototyping
Materials
Industries
News
About GL

Get Instant Quote

CNC Motion Control

Interpolation in CNC Machine: How the Controller Builds a Tool Path

Interpolation in CNC machine control is the real-time math that fills in thousands of points between programmed coordinates. This page explains what the controller actually calculates, which motion types exist, and where the numbers start to drift. Written for engineers and buyers who need to judge a curved part before it is quoted.

Linear, circular, helical±0.005 mm tolerance127 CNC machines16 five-axis centers
Interpolation in CNC machine producing 5-axis machined engine parts
Mechanism

What interpolation in a CNC machine actually computes

A CNC program rarely lists every point of a curve. It gives the controller a start point, an end point and a rule for what happens in between. Interpolation in a CNC machine is the process that turns those sparse coordinates into a dense stream of position commands, usually at a fixed cycle time of 1–4 ms.

Take a simple straight move. The controller reads G01 X50 Y30, then divides the distance into small increments and sends a position for each axis at every servo cycle. The X and Y motors do not move one after the other. They arrive at each intermediate point at the same instant, so the tool traces a straight line instead of a staircase.

For an arc, the block specifies an end point plus a center or radius. The controller solves the circle equation on the fly and generates points along the arc, keeping chord error below the tolerance set in the parameters. On a modern control this is a few tens of microseconds of computation per block, which is why feed rates near 10,000 mm/min are still possible on curved geometry.

The engineering point is simple: the machine never draws a perfect circle or spline. It draws many short chords. Whether your part passes inspection depends on how small those chords are and how well the servos follow them.

Motion types

Linear, circular and helical: three path types you will see on a drawing

Linear interpolation is the foundation. It links two programmed points with synchronized axis motion. Flat faces, chamfers, straight slots and rectangular pockets all come from G01 moves. On a three-axis machine the X, Y and Z motors move together; on a five-axis machine, two rotary axes join the same block, so the tool tip stays on the programmed line while the table tilts.

Circular interpolation uses G02 or G03 with a center offset or an R value. It replaces hundreds of hand-calculated points with one arc block. Bearing bores, fillet radii, O-ring grooves and circular bolt patterns are typical work. The catch is that the controller needs enough look-ahead. If the arc is short and the feed rate high, the machine may round the corner slightly instead of following the true radius.

Helical interpolation combines a circular path in X-Y with a steady Z feed. The tool spirals down, which lets a smaller cutter open a hole larger than its own diameter. Thread milling, counterbores with a controlled floor, and deep pockets in hard material all benefit. It also cuts the load per pass compared with plunging straight in.

Cutter compensation sits on top of all three. The controller offsets the path by the tool radius, so the same program runs with a reground cutter. Check the offset direction on a first article before trusting it on a full run.

Accuracy limits

Where interpolation accuracy breaks down

Chord error is the first limit. The controller approximates a curve with short straight segments, and the maximum deviation between the true curve and the chord depends on segment length. Tighten the tolerance parameter and the segments get shorter, which means more blocks per second and more data for the control to process.

Servo lag is the second. Each axis has a following error that grows with feed rate and axis acceleration. On a tight arc, the X and Y motors are constantly reversing direction, and if acceleration limits are set too high, the tool overshoots the outside of the curve. The visible result is a facet or a slight flat on what should be a smooth radius.

Look-ahead is the third. The control reads blocks ahead to plan deceleration into corners. If the program is written as thousands of tiny G01 segments instead of proper arcs, the control may not have enough buffer, and feed rate drops without warning. This is common with CAM output that has not been filtered.

Material and tool deflection matter too. A long, small-diameter end mill cutting a 300 mm arc will bend, and no amount of interpolation math fixes that. On parts where the radius tolerance is under 0.02 mm, we rough with a stiffer tool and finish with a shorter flute length.

Machine choice

Why five-axis interpolation changes the setup, not just the path

On a three-axis machine, interpolation happens in X, Y and Z only. Curved surfaces that face sideways need multiple setups, and each setup introduces a repositioning error. On a simultaneous five-axis center, the two rotary axes are interpolated together with the linear axes, so the tool stays normal to a curved surface in one setup.

That matters for parts like turbine blades, impeller vanes and medical implant contours. Holding the tool normal spreads the cutting load along the flute and keeps the effective feed consistent. It also lets a shorter, stiffer tool reach surfaces that a three-axis setup would need a long tool to reach.

The trade-off is that five-axis interpolation is harder to verify. Rotary axis positioning error, pivot distance error and thermal drift all show up in the finished surface. We probe the rotary center on a schedule and cut a test cone before a long run. On parts with a tight profile tolerance, this check is not optional.

If your part is mostly flat with a few holes, three-axis work is faster and cheaper. Five-axis earns its place when the geometry is genuinely three-dimensional and the tolerance is tight.

Real parts

What interpolation means for the parts we machine

Aerospace and energy work is where interpolation shows up most. Cooling channels, impeller passages and blade roots need helical and five-axis paths that a point-to-point program cannot produce. Inconel and titanium add their own problem: low thermal conductivity and high cutting forces push the tool off the programmed path, so the controller has to compensate for a cut that is already under load.

Automotive and EV parts are more mixed. Engine covers, transmission housings and motor end plates often have large flat faces plus circular bores. Linear and circular interpolation handle most of it. The tight features are usually bore diameters and flatness, not free-form curves.

Medical and robotics parts sit in between. Bone plates, surgical instrument bodies and robot joint housings have organic outer contours plus precise bores. A typical job runs on a five-axis center for the contour and uses helical interpolation for the bores, which keeps the bore round and the floor flat.

We keep 16 simultaneous five-axis centers, 12 four-axis mills, 27 three-axis machines and 16 mill-turn centers in three plants covering 7,600 m². That mix lets us match the machine to the path type instead of forcing every part onto one platform.

Shop floor checks

How to check interpolation quality on a real part

Start with a test cut on the actual machine. A 100 mm diameter circle in aluminum at the production feed rate will show faceting if the controller is struggling. Measure the diameter at four points with a micrometer and compare the roundness on a CMM. If the deviation is more than the tolerance, the fix is usually feed rate or look-ahead, not a new tool.

Next, check the transition between a straight move and an arc. A visible blend line means the control is not decelerating into the arc. On a good setup the surface should show no step at that junction.

For five-axis work, cut a cone or a sphere and inspect the pole area. That is where rotary axes move fastest and where servo lag shows up first. If the pole is clean, the rest of the surface usually is too.

Keep the results with the program. When a job repeats six months later, the same test cut tells you whether the machine has drifted or the material batch has changed.

Selection guide

Interpolation type compared: when each one fits

Match the motion type to the feature before you write the program.

Motion typeTypical featuresMachine setupWatch out for
Linear (G01)Flat faces, slots, chamfers, pockets3-axis or higherCorner rounding at high feed
Circular (G02/G03)Bores, fillets, O-ring grooves3-axis or higherShort arcs need look-ahead
HelicalThread milling, counterbores, deep pockets3-axis with Z feedZ feed too fast for the tool
Five-axis simultaneousBlades, impellers, implant contours5-axis centersRotary pivot error, thermal drift
Point-to-pointDrilling, tapping, spot facingAny machineNo path control between holes
Spline / NURBSFree-form surfaces from CAMControl-dependentCAM output must be filtered

The takeaway

If your part is flat with a few holes, three-axis linear and circular interpolation is faster and cheaper. If the geometry is genuinely 3D and the tolerance is tight, five-axis simultaneous interpolation earns its cost. Do not pay for five-axis motion on a part that does not need it.

FAQs

Common questions about CNC interpolation

Does interpolation reduce accuracy compared with point-to-point machining?

Point-to-point only controls the position at each programmed hole or point; the path between them is not controlled. Interpolation controls the path itself, so it is the only way to hold a curve or an angle.

The accuracy limit is chord error and servo lag, not the concept. Set the tolerance parameter tighter and keep the feed rate within the machine's acceleration limits, and the deviation stays inside ±0.005 mm on our five-axis centers.

Can a three-axis machine cut a curved surface?

Yes, if the surface faces the spindle. A three-axis machine can interpolate X, Y and Z together, so a contoured pocket floor or a curved profile on a vertical wall is straightforward.

It cannot keep the tool normal to a surface that wraps around the part. That needs rotary axes, and without them you either accept a stepped surface or add setups.

Why does my CAM program produce thousands of tiny segments instead of arcs?

Most CAM systems output line segments by default because every control reads G01. Arc and NURBS output must be enabled and the tolerance set correctly.

Filter the toolpath before posting. A 0.01 mm filter tolerance usually cuts the block count by more than half with no visible change on the part.

What causes facets on a circular bore?

Three common causes: feed rate too high for the arc radius, look-ahead buffer too small, or tool deflection on a long cutter.

Cut a test bore at half the production feed rate. If the facets disappear, the problem is feed rate or look-ahead. If they remain, check the tool and the setup.

Is helical interpolation better than drilling and boring?

For holes larger than the available drill or boring bar, helical interpolation lets a smaller cutter open the bore with a controlled floor. It also reduces the load per pass in hard materials.

For a simple through hole in aluminum, drilling is faster. Use helical when the diameter, depth or material makes drilling impractical.

How do you verify interpolation quality before a production run?

We cut a test feature on the production machine at the production feed rate, then inspect it on a CMM. For five-axis work the test is a cone or sphere, inspected at the pole where rotary motion is fastest.

Reports are available on request. Every part also goes through raw material check, in-process monitoring and final inspection before shipment.

Send us the drawing and we will tell you which path type it needs

Upload a STEP file and we return a quotation with free DFM analysis within 12 hours. No minimum order quantity, from one prototype to 10,000+ part runs.

12-hour quote100% inspectionNDA on request

Follow

More from GreatLight

We publish setup notes, tooling trials and inspection data from the factory floor.

FacebookTikTokYouTubeLinkedInInstagramThreadsPinterest

Trusted by engineers and manufacturers worldwide

Tesla Ford Motor Company BYD Auto Denso Magna International Boeing Airbus Medtronic KUKA FANUC