Free calculator

Online 3D CNC Simulator — Test G-Code Live and Solve Programming Challenges

Paste a 3-axis milling program or pick a challenge. The simulator cuts a virtual block with a flat or ball-nose end mill, shows the result in 3D, warns about rapid moves into the material and cutting through the stock, and estimates cycle time and removed volume. Everything runs in your browser.

Cycle time–estimated
Material removed–cm³
Deepest cut–mm
Warnings–crash / cut-through

    How it works

    Paste a 3-axis milling program or pick a challenge. The simulator cuts a virtual block with a flat or ball-nose end mill, shows the result in 3D, warns about rapid moves into the material and cutting through the stock, and estimates cycle time and removed volume. Everything runs in your browser.

    The block is modelled as a height map; each tool position lowers every cell under the cutter to the tool tip (flat end mill) or to the ball profile z + R − √(R² − d²). Challenge score = share of machined cells within ±0.15 mm of the target part.

    Embed this calculator on your site

    Free for workshops, schools and forums — copy this snippet:

    HTML
    <iframe src="https://cnccode.com/embed/cnc-simulator/" width="100%" height="720" style="border:0" loading="lazy" title="3D CNC Simulator & Challenges"></iframe>

    More CNC calculators

    Frequently asked questions

    Can I simulate my real CNC programs?
    Yes, for 3-axis milling: G00/G01/G02/G03 (I/J or R), G17, G20/G21, G90/G91 and drilling cycles G73/G81/G82/G83 are simulated. Set the stock size so that X0 Y0 is the front-left corner and Z0 is the top face.
    Does the simulator detect crashes?
    It flags rapid (G00) moves that would cut material and moves that go below the bottom of the stock. It does not model the holder, spindle or clamps.
    How are challenges scored?
    Your result is compared with the target part cell by cell. Cells within ±0.15 mm count as correct; over-cut areas are shown in red and missed material in blue. 90 % or more earns the Simulator Ace badge for members.