DXF Part Maker: Gear, Sprocket, Flange & Plate DXF Generator

Pick a part, type the sizes and watch it update. Download a clean DXF or SVG for your laser, plasma, waterjet or router. Everything runs in your browser.

1. Part type

mm
Thickness is not drawn. It is used to warn about holes and webs that are too small to cut well.

2. Plate size

Positions are measured from the bottom-left corner of the plate. Chamfer size is the leg length along each edge.

Holes and slots

2. Flange or gasket

2. Spur gear

mm
Backlash thins each tooth by this much on the pitch circle. A common total is 0.04 to 0.1 × module, split between the two gears.

Bore

2. Roller chain sprocket

Tooth form: ANSI B29.1 (seating curve, working curve, straight line and topping curve).

Bore

2. Washer, spacer or shim

Bolt holes (optional)

3. Export options

Off by default so the CENTER lines are not cut by mistake.

Live Preview

Drag to pan, scroll or pinch to zoom.
OUTLINE HOLES CENTER Origin 0,0

Checks

Key sizes

How the DXF Part Maker Works

The part maker draws common flat parts from a few sizes. It works out the geometry with the standard formulas, checks that the part can be made, and writes a DXF or SVG file ready for CAM.

Outlines are single closed polylines. Straight edges are lines and round edges are true arcs (polyline bulges), so the file stays small and cuts smoothly. Holes are circles. Slots and keyed bores are closed polylines. Gear flanks are the only curves made of short lines, and they stay within 0.002 mm (0.0001 in) of the true involute. Everything happens in your browser.

The Method

1. Plate or bracket
A rectangle with square, radius or chamfer corners. Add any mix of single holes, hole grids, bolt circles and slots. A grid is centred on the plate or set by its edge distance. Bolt circle holes sit at x = cx + (PCD/2)·cos(θ0 + 360°·k/n). A slot's length is its overall length, end to end.
2. Flange or gasket
Presets come from ASME B16.5 Class 150 (flange OD, bolt circle, bolts, hole size) and EN 1092-1 PN16 (D, K, n, L). Ring gaskets for ASME use the ASME B16.21 sizes; their OD equals the bolt circle minus the bolt size, so they centre on the bolts. Bolt holes straddle the centre lines, so the first hole sits at 180°/n. Every value can be edited.
3. Spur gear
d = m·z   da = m(z + 2 + 2x)   df = m(z − 2.5 + 2x)
db = d·cos α   s = m(π/2 + 2x·tan α) − backlash
The tool rolls a standard basic rack (addendum 1.0 m, dedendum 1.25 m, tip radius 0.38 m, as in ISO 53) around the gear, the way a hob cuts it. The flanks come out as true involutes and the root fillet is the trochoid the rack tip leaves. So small tooth counts show real undercut. For DP, m = 25.4 ÷ DP. The tool warns below zmin = 2 ÷ sin²α (17 teeth at 20°, 32 at 14.5°, 12 at 25°) unless the profile shift is big enough.
4. Roller chain sprocket
PD = P ÷ sin(180°/N)   OD = P(0.6 + cot(180°/N))
Bottom dia = PD − Dr   Caliper (odd N) = PD·cos(90°/N) − Dr
The teeth follow the ANSI B29.1 tooth form as set out in Machinery's Handbook. Seating curve R = 0.5025 Dr + 0.0015 in, then a working curve E = 1.3025 Dr + 0.0015 in through angle B = 18° − 56°/N, a straight line yz, and a topping curve F up to the OD. All are true arcs. ISO 606 B-series chains use the same form with the inch constants converted. ISO 606 allows a range of tooth forms, so check its limits if you need them.
5. Washer, spacer or shim
Round or rectangular, with an inside diameter or an open U-slot from the bottom edge (a slotted shim). The slot depth is measured from the edge to the end of the round. You can add bolt holes on a circle.
6. Bores, keyways and checks
Keyways follow DIN 6885-1 (hub depth t2 past the bore) or ANSI B17.1 square keys (nominal, half the key height at the side wall), or your own width and depth. Every hole and slot is checked: it must sit inside the material and not touch another cut. If it does, the part shows an error and the download waits. Give a material thickness to also get warnings on small holes and thin webs.

Worked Examples

These numbers were measured from files made by this tool, read back with the ezdxf library.

Spur gear: module 2, 20 teeth, 20°
  • Pitch diameter 2 × 20 = 40 mm. Outside 2 × 22 = 44 mm. Root 2 × 17.5 = 35 mm. Base 40 × cos 20° = 37.588 mm.
  • Tooth thickness on the pitch circle should be πm/2 = 3.1416 mm. The flank points lie on the true involute to within 0.000001 mm. Measured across the drawn polyline it is 3.1413 mm (the tiny chord sag).
  • The outline reads back with smallest and largest radius of exactly 17.500 and 22.000 mm.
  • At 10 teeth the tool warns about undercut and says a shift of 0.42 fixes it. With x = 0.45 the OD becomes 25.8 mm and the root 16.8 mm.
Sprocket: #40 chain, 20 teeth
  • Pitch 0.500 in, roller 0.312 in. Pitch diameter 0.5 ÷ sin 9° = 3.1962 in.
  • Outside 0.5 × (0.6 + cot 9°) = 3.4569 in. Bottom 3.1962 − 0.312 = 2.8842 in.
  • Arcs in the file: seating R 0.1583, working E 0.4079, topping F 0.2572 and the OD land 1.7284 in.
  • With 21 teeth the caliper diameter is 3.3548 × cos(90°/21) − 0.312 = 3.0334 in.
Flange: ASME B16.5 Class 150, NPS 4
  • OD 9.00 in, bolt circle 7.50 in, 8 holes Ø0.75 in, first hole at 180° ÷ 8 = 22.5°.
  • Hole spacing (chord) 7.5 × sin(22.5°) = 2.870 in. Bore set to the 4.500 in pipe OD.
  • Matching B16.21 ring gasket: 4.50 × 6.88 in. 7.50 − 5/8 in bolt = 6.875 in, so it centres on the bolts.
Plate: 150 × 100 mm, R10 corners
  • Ø30 centre hole, 2 × 2 grid of Ø9 holes at 120 × 70 mm pitch (15 mm from each edge), 6 × Ø6.6 on a 60 mm bolt circle and a 40 × 8 mm slot.
  • The four corner arcs read back as R10.000 and the slot ends as R4.000. The slot is exactly 40 × 8 mm.
  • Move a hole into a rounded corner or onto another hole and the tool flags it and holds the download.

Standard Tables Used

Values as published in the standards named. Check them against your copy of the standard, and the flange you are mating to, before cutting.

ASME B16.5 Class 150 flanges and ASME B16.21 ring gaskets (inches)
SizeFlange ODBolt circleBoltsHole diaPipe ODRing gasket IDRing gasket OD
NPS 1/23.502.3840.620.8400.841.88
NPS 3/43.882.7540.621.0501.062.25
NPS 14.253.1240.621.3151.312.62
NPS 1-1/44.623.5040.621.6601.663.00
NPS 1-1/25.003.8840.621.9001.913.38
NPS 26.004.7540.752.3752.384.12
NPS 2-1/27.005.5040.752.8752.884.88
NPS 37.506.0040.753.5003.505.38
NPS 3-1/28.507.0080.754.0004.006.38
NPS 49.007.5080.754.5004.506.88
NPS 510.008.5080.885.5635.567.75
NPS 611.009.5080.886.6256.628.75
NPS 813.5011.7580.888.6258.6211.00
NPS 1016.0014.25121.0010.75010.7513.38
NPS 1219.0017.00121.0012.75012.7516.12
NPS 1421.0018.75121.1214.00014.0017.75
NPS 1623.5021.25161.1216.00016.0020.25
NPS 1825.0022.75161.2518.00018.0021.62
NPS 2027.5025.00201.2520.00020.0023.88
NPS 2432.0029.50201.3824.00024.0028.25

Bolt holes in ASME B16.5 are 1/8 in larger than the bolt. Full-face gaskets use the flange OD, bolt holes and the B16.21 ID. Flat flange plates use the pipe OD (ASME B36.10) as the bore; add clearance for a slip-on fit.

EN 1092-1 PN16 flanges (mm)
SizeD (OD)K (bolt circle)n boltsL (hole)BoltPipe OD
DN159565414M1221.3
DN2010575414M1226.9
DN2511585414M1233.7
DN32140100418M1642.4
DN40150110418M1648.3
DN50165125418M1660.3
DN65185145818M1676.1
DN80200160818M1688.9
DN100220180818M16114.3
DN125250210818M16139.7
DN150285240822M20168.3
DN2003402951222M20219.1
DN2504053551226M24273.0
DN3004604101226M24323.9

DN65 PN16 has 8 bolts in EN 1092-1; older DIN flanges had 4. Pipe OD is ISO series 1 (EN 10220). EN ring gaskets here are sized as K minus the bolt size, not taken from EN 1514-1.

Roller chain pitch and roller diameter
ChainPitchRoller diaStandard
ANSI 25 (1/4")0.25 in0.13 in (bushing)ANSI B29.1
ANSI 35 (3/8")0.375 in0.2 in (bushing)ANSI B29.1
ANSI 40 (1/2")0.5 in0.312 inANSI B29.1
ANSI 50 (5/8")0.625 in0.4 inANSI B29.1
ANSI 60 (3/4")0.75 in0.469 inANSI B29.1
ANSI 80 (1")1 in0.625 inANSI B29.1
ISO 06B (9.525 mm)9.525 mm6.35 mmISO 606
ISO 08B (12.7 mm)12.7 mm8.51 mmISO 606
ISO 10B (15.875 mm)15.875 mm10.16 mmISO 606
ISO 12B (19.05 mm)19.05 mm12.07 mmISO 606
ISO 16B (25.4 mm)25.4 mm15.88 mmISO 606
Keyways: DIN 6885-1 (mm) and ANSI B17.1 square keys (in)
Bore over / up toKey b × hHub t2
6 / 82 × 21
8 / 103 × 31.4
10 / 124 × 41.8
12 / 175 × 52.3
17 / 226 × 62.8
22 / 308 × 73.3
30 / 3810 × 83.3
38 / 4412 × 83.3
44 / 5014 × 93.8
50 / 5816 × 104.3
58 / 6518 × 114.4
65 / 7520 × 124.9
75 / 8522 × 145.4
85 / 9525 × 145.4
95 / 11028 × 166.4
110 / 13032 × 187.4
130 / 15036 × 208.4
Bore over / up toSquare key
5/16 / 7/163/32
7/16 / 9/161/8
9/16 / 7/83/16
7/8 / 1-1/41/4
1-1/4 / 1-3/85/16
1-3/8 / 1-3/43/8
1-3/4 / 2-1/41/2
2-1/4 / 2-3/45/8
2-3/4 / 3-1/43/4
3-1/4 / 3-3/47/8
3-3/4 / 4-1/21
4-1/2 / 5-1/21-1/4
5-1/2 / 6-1/21-1/2

Keyways are drawn at nominal size without tolerances. ANSI hub depth is half the key at the side wall of the keyway.

Tips for Cutting the Parts

  • Need a shape that isn't here? Open the DXF in the DXF Sketcher to add cut-outs, tabs or extra holes, then export it again.
  • Allow for kerf. The DXF is the finished size. Let your CAM apply kerf compensation: outside the outline, inside the holes. Typical kerf is 0.1 to 0.3 mm on a fibre laser, 1 to 2 mm on plasma and about 0.8 to 1 mm on a waterjet.
  • Mind the smallest hole. Plasma holes under about 1 × thickness (1.5 × for clean bolt holes) come out tapered and rough. A laser manages about 0.5 to 1 × thickness. Cut undersize and drill or ream holes that must fit. The Fastener Clearance Calculator and Tap Drill Calculator give the sizes.
  • Gears and sprockets. Thermal cutting rounds small teeth. Waterjet or laser suits module 1.5 and up, or #40 chain and up, in thin plate. Check a short length of chain on a test-cut sprocket before you cut a batch.
  • Check the fit first. Print the SVG at 100 % and lay it over the mating flange, or cut one part in cheap material. Bolt circles can be checked with the Bolt Circle Calculator.
  • Nest and weigh. Lay the parts out with the Sheet Cut Optimizer and work out their weight with the Weight Calculator. For shapes you only have on paper, try the Image to DXF Converter.

Frequently Asked Questions

The file is the widely supported R12 DXF format with polylines, circles and lines, so it opens in AutoCAD, Fusion 360, SolidWorks, LibreCAD, QCAD, Inkscape, SheetCam and most laser and plasma software. If your software does not like polylines with arcs, choose separate LINE and ARC entities.

Yes. The tooth is made by rolling a standard rack around the gear, the way a hob cuts it, so the flanks are true involutes and the root fillet is the curve the rack tip leaves. The flank is written as short lines that stay within 0.002 mm of the true curve. The tip and root are true arcs.

Below about 17 teeth at 20° a standard rack cuts away the bottom of the flank. That weakens the tooth and shortens contact. Add positive profile shift (the tool tells you how much), use a 25° pressure angle, or use more teeth. A shifted gear has a larger outside diameter, so the centre distance or mating gear must suit.

No. The drawing is the finished part. Set kerf compensation in your CAM or cutting software so it cuts outside the outline and inside the holes. Adding kerf to the drawing as well would make the part wrong by a full kerf.

They are taken from ASME B16.5 Class 150, ASME B16.21 and EN 1092-1 PN16, and the tables are shown on this page. Always check them against the standard and the flange you are matching. EN ring gaskets are sized to sit inside the bolts (K minus the bolt size), not taken from EN 1514-1.

OUTLINE holds the outer profile as one closed shape. HOLES holds holes, slots and bores. CENTER holds centre marks, bolt circles and the pitch circle. CENTER is left out unless you switch it on, so it cannot be cut by mistake.

Geometry follows the standards and formulas named on this page, but tables can have typos and your application may need different clearances. Check critical sizes and a test piece before cutting production parts.