Free calculator

CNC Lathe Simulator — Run G71, G70, G76 and Drilling Programs in 3D

Paste a turning program and watch the part take shape. The simulator turns, faces, bores, drills, grooves and threads a virtual bar, shows the inside in a cut-away view and warns about rapid moves into material or the chuck. Nothing is uploaded.

Tools: T01 turning, T02 boring, T03 grooving, T04 threading, T05 drill. A comment such as (DRILL 12 MM) or (GROOVE 4 MM) on the T line overrides this.

–

Cycle time–estimated
Material removed–cm³
Last position–spindle – RPM
Warnings–see list

    How it works

    The bar is stored as an outer and an inner radius for every thin slice along Z. Each tool position removes material from these two profiles. RPM with G96 = 1000 × Vc / (π × D), limited by G50 S. Time with G99 = length / (f × RPM).

    How to simulate your own lathe program

    1. Enter the bar diameter, its length outside and inside the chuck, and the extra material on the face.
    2. Paste the program. X is a diameter and Z0 is the finished front face.
    3. Tell the simulator which tool is which. T01 is a turning tool, T02 a boring bar, T03 a grooving tool, T04 a threading tool and T05 a drill. A comment on the T line, for example T0606 (DRILL 12 MM), overrides this.
    4. Press Run, or Instant result if you only want the finished shape.

    What it checks

    • G00 moves that pass through material
    • Moves into the clamped part of the bar
    • G71 cycles whose P and Q blocks are missing

    It does not know your turret, tailstock or jaw shape. Always prove a program on the machine with single block and low rapid override. See also the G71, G70 and G76 reference pages.

    Embed this calculator on your site

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

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

    More free CNC tools

    Frequently asked questions

    Which G-codes does the lathe simulator support?
    G00 to G03, G20/G21, G50, G96/G97, G98/G99, and the cycles G70, G71, G72, G74, G75, G76, G83, G90, G92 and G94 in the common Fanuc format.
    Is X a radius or a diameter?
    X is a diameter, as on almost all production lathes. U is an incremental diameter and W is incremental Z.
    Can it show the inside of a bored part?
    Yes. Turn on Cut-away view. The half section below the 3D picture always shows both the outer and the inner profile.
    Was this page helpful?