Skip to content
Engineering File Tools

DXF Cutting Length Calculator

Drop a DXF to get the total path length per layer, then select the layers that are actually cut. Lines, arcs, circles and polyline bulges are computed exactly, ellipses and splines numerically. The result also shows how much length comes from duplicate geometry.

  • Runs in your browser
  • Free · No sign-up
Loading the tool…

How to use

  1. 1Drop the DXF file; it is analysed locally in your browser.
  2. 2Check the units. If the file has no unit ($INSUNITS = 0 or missing), choose mm or inch — we never assume millimetres.
  3. 3Select the cutting layers (e.g. CUT, OUTER, INNER) and deselect layers such as TEXT, DIM or BEND.
  4. 4Read the selected cutting length, the duplicate-inclusive length and the estimated deduplicated length.
  5. 5Check warnings (e.g. splines approximated, non-uniform block scaling, ignored text) and export the values for your quote.

What the tool does

  • Path length per layer and for the selected cutting layers
  • Exact formulas for lines, arcs, circles and polyline bulge arcs
  • Numerical integration for ellipses and splines (relative error below 1e-7)
  • Block references expanded with translation, rotation, mirroring, non-uniform scaling and MINSERT arrays
  • Total drawing length vs. selected cutting length vs. duplicate-inclusive vs. estimated deduplicated length
  • Explicit unit handling: unknown units must be chosen by you

Supported formats

  • DXF (ASCII and binary)
  • Counted: LINE, ARC, CIRCLE, LWPOLYLINE, POLYLINE (incl. bulges), ELLIPSE, SPLINE, INSERT/BLOCK, MINSERT
  • Not counted: TEXT, MTEXT, DIMENSION, HATCH

Known limitations

  • Only model space is analysed; paper-space content is ignored with a warning.
  • Text (TEXT, MTEXT), dimensions and hatches are not counted. Engraved text needs a separate estimate.
  • The result is geometric path length. Lead-ins, lead-outs, pierce points, rapid moves and kerf compensation are machine/CAM-specific and not included.
  • The deduplicated length is an estimate: only exact and near duplicates of the same entity type are removed; partially overlapping lines are not detected.
  • 3D geometry is projected onto the XY plane with a warning; external references (XREF) are not followed.

Privacy

The DXF file is analysed in a Web Worker in your browser and is not uploaded. Layer names, lengths and coordinates stay on your device. We count anonymously and without cookies whether an analysis succeeded or failed, without file names or contents.

Practical examples

Plate with four holes

A 100 × 100 mm plate with 4 × Ø8 mm holes: outer contour 4 · 100 = 400 mm, holes 4 · π · 8 = 100.53 mm, cutting length 400 + 100.53 = 500.53 mm.

Duplicate outline doubles the length

The same plate exported with the outer contour drawn twice: duplicate-inclusive length 900.53 mm, estimated deduplicated length 500.53 mm. Without the check, the quote would contain 400 mm of cutting that never happens — or the laser cuts the contour twice.

Slot drawn as polyline with bulges

An obround slot 40 × 10 mm as LWPOLYLINE: two straight segments of 30 mm and two bulge arcs with bulge 1 (θ = 4 · atan(1) = π, r = 10 / (2 · sin(π/2)) = 5 mm, length π · 5 = 15.71 mm each). Total 60 + 31.42 = 91.42 mm.

Frequently asked questions

How is the cutting length of a DXF calculated?

The length of every path entity on the selected layers is summed: lines by distance, arcs by θ · r, polyline bulge segments with θ = 4 · atan(bulge), ellipses and splines by numerical integration. Block references are expanded with their full transformation first.

Why is the cutting length higher than expected?

The most common causes are duplicate or overlapping geometry, non-cutting layers (frames, dimensions, bend lines) being selected, and wrong units. Compare the duplicate-inclusive and deduplicated values and check the layer selection.

What happens if the DXF has no units?

If $INSUNITS is 0 or missing, we do not guess. You choose mm or inch; the choice is shown with the result. A 10-unit line is 10 mm or 254 mm depending on that choice.

Are text and engravings counted?

No. TEXT, MTEXT, DIMENSION and HATCH are not counted. If text is to be engraved or cut, convert it to geometry (e.g. explode to polylines) in your CAD system.

Does the result include lead-ins and pierce time?

No. The tool returns the geometric contour length. Lead-ins, pierces, rapid traverse and kerf compensation depend on your machine and CAM settings.

How accurate are splines and ellipses?

They are integrated numerically with a relative error below 1e-7, i.e. below 0.0001 mm on a 1,000 mm curve. A warning is shown so you know the value was approximated.