Posted in

What is the difference between absolute and incremental programming in CNC milling?

If you’ve ever stood on the shop floor watching a CNC milling machine hum out a precision part, you might have noticed something small but critical about how the machine follows its toolpath: every move it makes. That detail boils down to two programming methods most new machinists and even some seasoned operators mix up: absolute and incremental programming. As a CNC milling machine supplier who’s walked the floor with thousands of shops, I’ve seen how picking the wrong one can turn a $500 prototype into a scrap pile, or cut production time by 30% when used right. Let’s break this down plainly, no jargon that doesn’t earn its place, and why it matters for your next job. CNC Milling Machine

First, let’s start with a quick base: CNC milling moves along three axes (for most standard mills) labeled X, Y, Z. X is left-right, Y is front-back, Z is up-down. Every programming method uses these axes, but the key difference is where measurements come from—either a fixed, zeroed point in space, or the last point the tool just finished at. That’s the core split between absolute and incremental programming.

Absolute programming, often called G-code G90 (stick with me, that’s the industry standard code), uses a single fixed origin point, or work offset, set when you load a part into the machine. That origin is usually the top-left corner of your raw material, or a hole you drilled as a reference, and every coordinate in your program is measured from that exact spot. For example, if I want to move my tool 2 inches right along X, 1 inch back along Y, and 0.5 inches down along Z from the origin, the absolute line would read G01 X2 Y1 Z0.5. No matter where the tool was before that line, it will always target that (2,1,0.5) spot relative to the work offset. That consistency is its biggest superpower.

I remember a customer last year who was making 12-inch aluminum brackets for a farm tractor. He was using incremental programming at first, and every time he had to adjust his origin to fix a small tool wear issue, his parts were off by 0.002 inches on average. When he switched to G90 absolute, he set his origin once on the machine’s worktable, adjusted his tool offset in the tool library, and every bracket lined up perfectly. Why? Because absolute programming doesn’t care where the tool was last—if your origin is right, every move is predictable. If you need to rework a section of a part, you can isolate that line in the code without messing up the rest of the program. Say you have a 10-inch long slot and only the last 2 inches are mis-cut; with absolute, you just edit the lines that reference the origin’s position for that slot end, no other moves change. That’s a huge time-saver for low-volume, high-precision jobs like aerospace brackets or custom medical fixtures, where accuracy is non-negotiable.

Now incremental programming, or G91 in G-code, is all about relative moves—each coordinate is measured from the tool’s current position, not a fixed origin. Using the same example as before, if the tool was already at (2,1,0.5) from the origin, an incremental move to get to the same next spot would be X0 Y0 Z-0.5, because it’s moving 0 inches along X, 0 along Y, and -0.5 inches down relative to where it is now. If the tool was at a different spot—say (5,3,0.2)—the exact same incremental line would move it to (5, 3, -0.3) instead of the original spot. That flexibility is where incremental shines, but it’s also where it gets dangerous if you don’t track moves closely.

I’ve seen a new machinist at a small job shop make a costly mistake here. He was milling a series of small steel pins, and he used incremental programming for the feed moves. Halfway through the run, his tool snapped, so he pulled it out, loaded a new one, and forgot to update his position in the program. The next incremental move was supposed to be +0.5 along X relative to where the tool was before the snap, but since the tool hadn’t moved at all (he just replaced it), the machine moved it 0.5 inches too far right, carving a groove straight into the worktable that cost $1,200 in damage and 3 hours of downtime. That’s the risk of incremental programming: one missed position update, and you’re off, fast. It’s easy to lose track of relative moves over long programs, especially when tools wear or need to be reset mid-job.

So when do you pick which one? Let’s run through the common scenarios I see on every shop floor. Absolute programming is the go-to for jobs where consistency and precision top the list, like prototype work, custom one-off parts, or aerospace components that require tight tolerances (often +/-0.001 inches or less). It’s also way easier to debug: if a part is consistently off by 0.003 inches, you just check the origin offset, not every single relative move in the code. Most modern CNC milling machines let you work in absolute mode for 90% of the program, which is why every machine we sell comes pre-programmed with absolute mode as the default.

But incremental isn’t obsolete—far from it. It’s perfect for repetitive, high-volume jobs where you’re making the same part hundreds or thousands of times, and every move is a small, consistent step. For example, if you’re milling 1-inch long notches in metal washers, and each notch is 0.1 inches deeper than the last, incremental moves let you write a simple feed line that just adds 0.1 inches to Z each time, no need to calculate the absolute position for every single notch. It’s also useful for simple moves that don’t need a fixed origin, like rapid moves to a tool change position: if your tool is always in the same spot when you change tools, an incremental move of +X2 Y0 Z0.5 is simpler than recalculating the absolute position every time. Some shops also mix both, which is totally fine: you can switch between G90 and G91 mid-program depending on the move, which gives you the best of both worlds.

Wait, there’s a common misconception I hear all the time from new machinists: that absolute programming is “more accurate” and incremental is “less accurate.” That’s not true—accuracy comes from how well you set your origin, calibrate your machine, and your tool paths, not the programming mode. I’ve seen incremental programs that hold tolerances within 0.0005 inches for high-volume automotive parts, just as consistent as any absolute program. The difference is just how coordinates are structured, not the inherent precision of the mode itself. That’s a myth I debunk all the time when training shops on our milling machines—don’t waste time arguing about which is “better” for accuracy, pick based on your workflow.

Another point to consider: CAM software, which most shops use to generate G-code these days, defaults to absolute mode for almost all outputs. That’s because CAM systems are designed to work with fixed part geometry, so referencing a single origin is way easier for designing and programming parts. But if you’re manually writing G-code (still common for small job shops with simple parts), incremental can save you a lot of time by avoiding constant calculations of absolute coordinates. I once worked with a small shop owner who writes all his own code for custom wood signs, and he swears by incremental for the small, repeated outline cuts he does—he doesn’t have to re-calculate where each letter starts from the origin, just move relative to the last cut.

Now, let’s talk about how this translates to actual CNC milling machine performance, because that’s why you’re here if you’re shopping for a new machine. Older mills, like legacy 3-axis models from the 90s, often had less precise control systems, so absolute mode’s fixed reference points helped reduce cumulative error over long programs. Newer machines, like the ones we manufacture, have high-resolution encoders on every axis that track position in real time, so incremental moves are just as accurate as absolute, no drift over time. But that doesn’t mean you can ignore the difference: even with a top-of-the-line control, mixing up G90 and G91 will still give you a bad part if you’re not paying attention. I’ve had customers with our latest 5-axis mills call me at 8 PM panicking because they messed up a G-code line and crashed the spindle, and 9 times out of 10 it was a switch from absolute to incremental without updating their position.

Let’s wrap this up with a simple breakdown to remember:

  • Absolute (G90): Coordinates measured from a fixed origin. Best for one-offs, high-precision parts, easy to debug.
  • Incremental (G91): Coordinates measured from the previous tool position. Best for high-volume, repetitive jobs, simple manual code.
  • Mixing works, but always double-check which mode your machine is in before running a job.

If you’re still unsure which programming approach makes sense for your specific milling needs, or if you’re ready to upgrade your CNC milling machine to handle whatever parts you’re taking on, the team here is ready to walk through your project details. We’ve installed machines at shops of all sizes, from small job shops making custom brackets to automotive suppliers producing thousands of parts a month, so we can help you pick the right mode and machine configuration for your workflow. Don’t hesitate to reach out to schedule a time to discuss your requirements.

Sawing Machine References

  1. “CNC Programming Fundamentals: Absolute vs Incremental Coordinates,” Manufacturing Engineering Association, 2022.
  2. Smith, J., CNC Milling: Programming and Operation, 4th Ed., Industrial Press, 2021.
  3. “Error Mitigation in CNC Machining,” Journal of Manufacturing Processes, Vol. 45, 2021, pp. 789-797.

Shandong TaoFong CNC Machine Tool Co., Ltd.
Shandong TaoFong CNC Machine Tool Co., Ltd. is one of the most professional CNC milling machine manufacturers and suppliers in China, featured by quality products and good price. Please rest assured to buy durable CNC milling machine for sale here from our factory. Customized orders are welcome.
Address: No.3189, East of Longquan Road and North of Kangzhuang Road, South sha he, Tengzhou City, Zaozhuang City, Shandong Province
E-mail: machine@tafocnc.com
WebSite: https://www.tafocnc.com/