← All guides
CNC milling operation closeup

CNC Basics for Beginners: A Complete Guide to Getting Started

Tutorials

CNC (Computer Numerical Control) machining is a manufacturing process where a computer controls the movement of cutting tools to shape material into precise parts. You design a part on a computer, the computer converts that design into a set of movement instructions, and a machine follows those instructions to cut the part from a block of material.

This guide covers everything you need to know as a beginner: what CNC is, the different types of machines, how the complete workflow works from design to finished part, and the exact steps to start your first project. By the end you will know enough to choose your first machine, design your first part, and make your first cut without guesswork.

flowchart LR
    A[💡 Idea] --> B[CAD: Design the part]
    B --> C[CAM: Generate toolpaths]
    C --> D[Post-Process: Create G-Code]
    D --> E[CNC Machine: Cut the part]
    E --> F[📏 Inspect & Measure]
    F -->|Adjust parameters| C
    F -->|Good part| G[✅ Finished]
    style D stroke:#006ba1,stroke-width:3

What is CNC Machining?

Subtractive Manufacturing Explained

CNC machining is subtractive manufacturing — you start with a solid block of material and remove material until only the desired shape remains. Think of it as the opposite of 3D printing which adds material layer by layer.

CNC Machining 3D Printing
Process Subtractive (cut away) Additive (build up)
Materials Metal, plastic, wood Mostly plastic
Strength Uses solid stock — very strong Can be weaker between layers
Precision ±0.025mm typical ±0.1-0.5mm typical
Best for Functional parts, production Prototypes, complex geometry
Surface finish Smooth as-machined Layer lines visible

Both technologies have their place. Many shops use both — 3D printing for prototypes and CNC for production parts.

The CNC Process and Three Main Systems

The CNC process follows four steps:

Step 1: Design the part (CAD)
Step 2: Generate toolpaths (CAM)
Step 3: Convert to machine language (Post-processor → G-Code)
Step 4: Run the program on the CNC machine

The machine itself has three main systems that work together:

System What it does Components
Control system Reads G-code and sends signals Controller, software, electronics
Drive system Moves the axes Motors, leadscrews, linear guides
Cutting system Removes material Spindle, collet, cutting tool

Every CNC machine has these three systems. The difference between a hobby router and an industrial machining center is the precision, rigidity, and size of these components — not the fundamental operating principle.


Types of CNC Machines

Different machines are designed for different types of work. Choosing the right one depends on what you want to make.

CNC Mill

A CNC mill uses a rotating cutting tool to remove material from a stationary workpiece. The tool moves along X, Y, and Z axes to cut precise shapes.

Best for: Metal parts, precision components, complex 3D shapes Common materials: Aluminum, steel, brass, plastics Typical precision: ±0.025mm

CNC Lathe

A CNC lathe spins the workpiece while a stationary cutting tool shapes it. This is ideal for cylindrical parts. The workpiece rotates at high speed and the cutting tool moves along it to remove material — similar to how a potter shapes clay on a wheel but with metal and extreme precision.

Best for: Round parts — shafts, bushings, bolts, threaded components Common materials: Steel, aluminum, brass Typical precision: ±0.025mm

CNC Router

A CNC router is similar to a mill but designed for larger, less rigid work. Routers are typically used with wood, plastics, and sheet materials.

Best for: Woodworking, signs, cabinet parts, sheet goods, foam Common materials: Wood, plywood, MDF, acrylic, foam Typical precision: ±0.1mm

CNC Plasma Cutter

A plasma cutter uses a torch to cut through conductive metal sheet. It is fast but produces a rougher edge than machining.

Best for: Large metal sheet parts, structural steel, artistic metalwork Common materials: Steel, stainless steel, aluminum (sheet)

CNC Laser Cutter

A laser cutter uses a focused laser beam to cut or engrave material by burning or vaporizing it along a programmed path. Lasers excel at intricate flat patterns and fine detail.

Best for: Thin sheet cutting, engraving, fine detail work Common materials: Wood, acrylic, paper, leather, thin metals

Which One Should You Start With?

For most beginners just getting started a CNC router is the best entry point into the world of CNC machining. They are affordable, widely available, and work with forgiving materials like wood and plastic. Desktop routers from brands like Shapeoko, X-Carve, and Onefinity cost between $500 and $3000 and are capable of real production work.

If your interest is specifically in metal parts rather than wood or plastic a small CNC mill like a Tormach or Taig is a more appropriate choice but expect to spend $3000 to $8000 for a capable machine. You can often find used machines at half the price of new ones.


The Complete CNC Workflow

Every CNC project follows the same workflow regardless of what machine you use or what material you cut.

Step 1: Design (CAD)

You create a 3D model of your part using CAD (Computer-Aided Design) software. Popular options for beginners:

Software Cost Learning Curve Best For
Fusion 360 Free for hobbyists Moderate Everything — industry standard
Onshape Free Moderate Browser-based, no install
FreeCAD Free Steep Open source, parametric
Tinkercad Free Gentle Simple shapes only

The output of this step is a 3D model file usually in STEP, IGES, or STL format. For simple 2D parts like brackets and panels you may only need a 2D drawing in DXF format. Many hobbyists start with 2D parts because they are easier to design and faster to cut than 3D shapes.

Step 2: Toolpath Generation (CAM)

CAM (Computer-Aided Manufacturing) software takes your 3D model and figures out the most efficient way to cut it. It decides:

  • Which tools to use (end mill, drill, chamfer)
  • How fast to spin the tool (RPM)
  • How fast to move through the material (feed rate)
  • What path the tool should follow (toolpath)
  • How many passes to take (depth of cut)

The CAM software shows a simulation of the cutting process so you can verify the toolpath before running it on a real machine. This simulation step saves time and prevents crashes.

Step 3: Post-Processing

CAM software generates toolpaths in a generic format. A post-processor converts those toolpaths into G-code that your specific machine controller understands.

Different machines use different G-code dialects. Fanuc machines use Fanuc format. Haas machines use Haas format. GRBL controllers use a simpler subset. The post-processor handles this conversion automatically so the same CAM file works on different machines.

Step 4: Machining

You transfer the G-code to your CNC machine, set up the material, set the work offset, and run the program. The machine reads each line of G-code and moves the tool accordingly.

The program typically runs in this sequence:

  1. Safety block — set modes and select the work offset
  2. Tool change — load the first cutting tool
  3. Spindle start — begin rotation at the programmed RPM
  4. Positioning — move the tool to the starting location
  5. Cutting — follow the toolpath to remove material
  6. Retract — move the tool clear of the part
  7. Tool change — the program pauses for you to load the next tool
  8. Cutting — the new tool follows its programmed toolpath
  9. Program end — stop the spindle and end the program

Essential Tools and Accessories

Startup Tool Kit

Beyond the machine itself you need a few basic tools to get started:

Tool Purpose Approximate Cost
Calipers Measure part dimensions $20-50
Edge finder Set work offsets accurately $15-30
Clamping kit Hold workpieces on the table $30-100
End mill set Cutting tools for different operations $30-80
Collet set Hold cutting tools in the spindle $20-60
Safety glasses Protect your eyes from chips $5-15
Deburring tool Remove sharp edges from finished parts $10-20

What to Buy First

You do not need to buy everything at once. Start with calipers, an edge finder, a basic clamping kit, and a couple of end mills. Add tools as your projects become more complex. The most important investment is quality measuring tools — cheap calipers give incorrect readings that lead to scrapped parts.


Essential Concepts Every Beginner Must Learn

Coordinates and Axes

CNC machines move along three axes: X (left-right), Y (front-back), and Z (up-down). Every position is defined by a set of coordinates — just like plotting points on a graph.

The key distinction is between machine zero (a fixed reference built into the machine) and workpiece zero (the zero point you set for your specific part). You set workpiece zero using a work offset like G54, and all your program coordinates reference that point.

G-Code and M-Code

G-code controls motion — where the tool goes and what path it follows. M-code controls the machine — spindle on and off, coolant, tool changes.

You do not need to memorize every code. The five most important G-codes for beginners are G00 (rapid move), G01 (linear cut), G90 (absolute positioning), G91 (incremental positioning), and G54 (work offset). About 90 percent of CNC programs can be written with these five codes and a handful of M-codes.

Feeds and Speeds

Feed rate controls how fast the tool moves through the material measured in millimeters per minute (mm/min) or inches per minute (IPM). Spindle speed controls how fast the tool rotates. These two values together determine the chip load — the thickness of the material each cutting edge removes per revolution. Getting chip load right produces clean chips instead of dust or burnt material.

As a starting point for a 6mm end mill in aluminum:

  • Spindle speed: 8000 RPM
  • Feed rate: 400 mm/min
  • Depth of cut: 0.5mm per pass

Start conservative and adjust based on the results. A smooth cutting sound means the parameters are correct. Squealing means the speed is too high or the feed is too slow. Chattering means the feed is too fast or the depth of cut is too deep.

Workholding

Workholding is how you secure the material to the machine table. The most common methods are:

Method Best For Cost
Vise Small to medium parts $50-200
Clamps Large or irregular parts $20-50
Vacuum table Sheet goods, thin parts $200-1000
Double-sided tape Small flat parts, prototyping $5
Screw-down Large parts, wood $2

The workpiece must not move during cutting. If you can push it by hand the cutting forces will move it too. When in doubt add more clamps. A part that shifts during machining is scrap at best and dangerous at worst.


Common Beginner Questions

How much does a CNC machine cost?

A basic desktop CNC router starts at about $300. A capable hobby machine that cuts metal reliably costs $2000 to $5000. Industrial machines start at $20,000. For learning purposes start with a desktop router. These machines are well documented with large communities and abundant tutorials. Most CNC enthusiasts start with a router and later add a mill or lathe as their skills and project requirements grow.

Do I need a computer science background?

No. CNC programming uses G-code which is a simple coordinate-based language similar to giving someone directions: go to this point then go to that point. If you can read a map you can learn G-code. Most modern work is done in CAM software which generates the G-code automatically — you design the part and the software handles the programming.

Can I learn CNC without owning a machine?

Yes. Free G-code simulators let you write and test programs on your computer. Many makerspaces and community workshops have CNC machines you can use. Some online services like SendCutSend will run your G-code programs for a fee. This is a good way to test your CAM skills before committing to buying a machine.

What should I make for my first project?

A simple pocket or slot in a piece of scrap material. Do not try to make a finished part on your first attempt. The goal is to confirm that your machine works, your work offset is correct, and your feeds and speeds are in the right range.


Your First Project Checklist

Why Setup Matters

Before you start cutting spend time on preparation. The setup phase is where most beginner mistakes happen. Rushing through setup to get to cutting faster almost always results in a crashed tool or a ruined part.

Step-by-Step Checklist

Follow these steps in order for your first successful CNC project:

☐ Design a simple 50mm square pocket in CAD software
☐ Generate the toolpath in CAM using a 6mm end mill
☐ Simulate the toolpath and confirm no collisions
☐ Post-process the G-code for your specific machine
☐ Set up the material (scrap wood or plastic is best)
☐ Set the work offset (G54) at the top-left corner
☐ Run a dry run with Z raised 50mm to verify the path
☐ Load the cutting tool and verify it is secure
☐ Start the spindle and confirm rotation direction
☐ Run the program in single-block mode for the first cycle
☐ Check the first pass before letting it run unattended
☐ Measure the result — is it the correct size?
☐ Adjust feeds and speeds based on surface finish
☐ Repeat with different parameters and compare results
☐ Document what worked for future reference

What’s Next?

Now that you understand the basics dive into the specific skills you need:

After completing your first project, move on to learning G-code programming with our dedicated guide. Understanding G-code helps you debug CAM output and write simple programs by hand. Then practice with feeds and speeds to optimize your cutting parameters. Each skill builds on the previous one, and the CNC Learning Roadmap shows the complete path from beginner to confident machinist.

SERIES

CNC Fundamentals — Part 1 of 2

  1. CNC Basics for Beginners: A Complete Guide to Getting Started
  2. How Does a CNC Machine Work? The Simple Explanation

FAQ

Frequently Asked Questions — CNC Fundamentals

How much does a CNC machine cost?

Desktop routers start at $300. Hobby mills cost $2000-$5000. Industrial machines start at $20,000.

Do I need a computer science background?

No. G-code is a simple coordinate-based language. If you can read a map you can learn G-code.

Can I learn CNC without owning a machine?

Yes. Free simulators let you write and test G-code. Many makerspaces have CNC machines available.

Tags:#beginner#reference#mill#router