Home / Articles / Hexagon across-flats to across-corners — calculate & draw
Draw + calculate · 2D

Hexagon across-flats to across-corners — calculate & draw

7 min read · updated 16 Nov 2026

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.

AF AC R circumscribed circle (corners)
AF = across flats (spanner) · AC = across corners · R = centre to corner = the circle through all six corners
To findFormulaApprox.
Radius R (centre → corner)R = AF ÷ √30.5774 × AF
Across corners ACAC = 2R = 2·AF ÷ √31.1547 × AF
Across flats AF (from AC)AF = AC × (√3 ÷ 2)0.8660 × AC
Side length ss = R = AF ÷ √30.5774 × AF
Remember: AC is always about 15.5% longer than AF (× 1.1547), and the side length equals the circumscribed-circle radius exactly.

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.

StepCalculationResult
Radius RR = 17 ÷ √3 = 17 ÷ 1.73209.815 mm
Across corners ACAC = 2 × 9.815 = 1.1547 × 1719.63 mm
Side length ss = R9.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.

Watch out when measuring: a caliper across the parallel faces reads AF (17), but across two corners it reads AC (19.63) — don't confuse the two.

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.

CornerXY
1+R0
2+R/2+AF/2
3−R/2+AF/2
4−R0
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:

  1. Type P (polyline) and press Enter.
  2. Type the first corner 9.815,0 Enter, 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.
  3. Close back to the first corner — an exact 17 mm across-flats hexagon.
  4. 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 Online

Spanner size and across-corners table

ThreadAF (spanner) mmAC = 1.1547 × AF mm
M61011.55
M81315.01
M101719.63
M121921.94
M162427.71
M203034.64
Watch out: AF values vary by standard (DIN/ISO/JIS) and between old and new editions — M10 appears as both 17 and 16 mm. When drawing from a real part, measure it with a caliper first.

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.