Hexagon across-flats to across-corners — calculate & draw
Hex nut heads and hexagon bar are usually specified by their across-flats size (AF) — the distance between two parallel faces, which is also the spanner size (an M10 nut takes a 17 mm spanner). But when you mill a hex, choose round bar to cut it from, or measure across the corners with a caliper, you need the across-corners size (AC) — the distance between opposite corners. This guide gives the AF ↔ AC ↔ radius conversions with real worked numbers and the in-program drawing steps.
The relationships in a regular hexagon
A regular hexagon has three key values locked together — know any one and you get the other two instantly.
| To find | Formula | Approx. |
|---|---|---|
| Radius R (centre → corner) | R = AF ÷ √3 | 0.5774 × AF |
| Across corners AC | AC = 2R = 2·AF ÷ √3 | 1.1547 × AF |
| Across flats AF (from AC) | AF = AC × (√3 ÷ 2) | 0.8660 × AC |
| Side length s | s = R = AF ÷ √3 | 0.5774 × AF |
Worked example: an M10 nut head (17 mm spanner)
An M10 nut has across-flats AF = 17 mm. Find across-corners and radius, step by step.
| Step | Calculation | Result |
|---|---|---|
| Radius R | R = 17 ÷ √3 = 17 ÷ 1.7320 | 9.815 mm |
| Across corners AC | AC = 2 × 9.815 = 1.1547 × 17 | 19.63 mm |
| Side length s | s = R | 9.815 mm |
Choosing round bar to mill a hex: round bar to be milled into a hex of AF = 17 must have a diameter not less than AC = 19.63 mm (the corners have to fall inside the bar), so you pick Ø20 bar with a little to clean up. Pick Ø19 and the corners come out short.
Draw the hexagon by corner coordinates
The most accurate way: put the centre at (0,0) with the top and bottom as parallel faces (the faces a spanner grips), then type the six corners, where R = AF ÷ √3.
| Corner | X | Y |
|---|---|---|
| 1 | +R | 0 |
| 2 | +R/2 | +AF/2 |
| 3 | −R/2 | +AF/2 |
| 4 | −R | 0 |
| 5 | −R/2 | −AF/2 |
| 6 | +R/2 | −AF/2 |
For AF = 17: R = 9.815, R/2 = 4.907, AF/2 = 8.5. Steps:
- Type P (polyline) and press Enter.
- Type the first corner
9.815,0Enter, then each following corner with#in front so it is read as an absolute coordinate:#4.907,8.5→#-4.907,8.5→#-9.815,0→#-4.907,-8.5→#4.907,-8.5. - Close back to the first corner — an exact 17 mm across-flats hexagon.
- For a point-up hexagon, swap X and Y in the table.
Quick way with a construction circle: type C and draw a construction circle of radius R = 9.815 at the centre, then P and click the six corners on it, and delete the circle — faster, but only as accurate as the snap.
Try it right now — a free 2D CAD in your browser. Nothing to install, no sign-up.
Open DXCAD2D OnlineSpanner size and across-corners table
| Thread | AF (spanner) mm | AC = 1.1547 × AF mm |
|---|---|---|
| M6 | 10 | 11.55 |
| M8 | 13 | 15.01 |
| M10 | 17 | 19.63 |
| M12 | 19 | 21.94 |
| M16 | 24 | 27.71 |
| M20 | 30 | 34.64 |
Frequently asked questions
How do I calculate across-corners of a hexagon
Across-corners (AC) = 1.1547 × across-flats (AF), or twice the radius: AC = 2 × (AF ÷ √3). For AF 17 you get AC = 19.63 mm.
What spanner and across-corners does an M10 nut have
M10 usually takes a 17 mm spanner (across-flats 17 mm), so across-corners = 1.1547 × 17 = 19.63 mm. Some standards use 16.
What size round bar to mill a hex AF 17
Use round bar with a diameter not less than the across-corners size, 19.63 mm, so Ø20. Anything smaller leaves the corners incomplete.
Difference between across-flats and across-corners
Across-flats is the distance between two parallel faces (the spanner size); across-corners is between opposite corners, always about 15.5% longer.
Summary
The key to a hexagon is three formulas: R = AF ÷ √3, AC = 1.1547 × AF, and AF = 0.8660 × AC. To draw, convert AF to a radius first and type the six corner coordinates. To choose round bar for milling a hex, use bar no smaller than AC. And when measuring, don't confuse the parallel faces (AF) with the corners (AC), which are 15.5% longer.