Shop math

Fraction to decimal to mm converter

Fractions, decimals and millimeters converted both ways, with the nearest fraction and drill sizes.

Nearest 1/64

5/16in

0.3125" = 7.938 mm. 5/16" is exact.

Nearest inch drills

  • 5/16"0.3125" · 7.938 mm · exact

Nearest metric drills

  • 7.9 mm0.3110" · 7.900 mm · 0.0015 under
  • 8 mm0.3150" · 8.000 mm · 0.0025 over
Why these numbers?
  1. 1 inch is 25.4 mm exactly, so mm = inches × 25.4: 0.3125 × 25.4 = 7.938 mm.
  2. Nearest 1/64: 0.3125 × 64 = 20, which rounds to 20; 20/64 = 5/16" = 0.3125", exact.
  3. Drills come from the site’s drill list: number, letter and fractional drills to 2", and metric drills from 0.3 to 50 mm.

How we source these numbers

Rounded to the nearest 1/64
Round to the nearest
Every rounding
NearestFractionDecimalError
1/83/8"0.3750+0.0625
1/165/16"0.3125exact
1/325/16"0.3125exact
1/64 (chosen)5/16"0.3125exact

What next

Which tap drill for this thread?Tap drill size for any thread, cut or form tap, by percent of thread.
What RPM and feed for this drill?Drill RPM, feed and the right peck cycle for your drill, material and hole depth.
What are the missing sides and angles?A right triangle's missing sides and angles from two sides, or a side and angle.
How the fraction to decimal to mm converter works

0.3125 in is 5/16 in and 7.9375 mm; the nearest metric drills are 7.9 mm and 8 mm.

How to convert fractions, decimals and millimeters

Maintained by John, former CNC lathe programmer

What it does

Prints mix fractions, decimal inches and millimeters. This converter takes any one of the three and gives the other two. It rounds a decimal or metric size to the nearest 1/8, 1/16, 1/32 or 1/64 inch and shows how far off that fraction is. It also lists the standard drills on either side, from the same drill list as the drill size chart.

Formulas

Inches to millimeters

mm = in × 25.4

Exact: the inch has been defined as 25.4 mm since 1959.

Millimeters to inches

in = mm ÷ 25.4

Fraction to decimal

decimal = numerator ÷ denominator

3/8 = 3 ÷ 8 = 0.375. Every 64th ends within six decimal places.

Decimal to the nearest fraction

n = round(decimal × D); fraction = n / D, reduced

D is 8, 16, 32 or 64. Error = fraction − decimal; a tie rounds up.

Worked example: 10 mm

  1. 10 ÷ 25.4 = 0.3937"
  2. Nearest 1/64: 0.3937 × 64 = 25.20 → 25/64 = 25/64" = 0.3906", 0.0031" under
  3. Nearest 1/16: 0.3937 × 16 = 6.30 → 6/16 = 3/8" = 0.3750", 0.0187" under
  4. Nearest inch drills: 25/64 (0.3906") and X (0.3970")

Gotchas

Rounding hides real size
A 1/64 step is .0156" (0.397 mm). Nearest 1/8 can be off by up to .0625". Fine for stock, never for a fit; read the error before you trust the fraction.
Metric drills don’t land on fractions
10 mm is .3937": between 25/64 and 13/32, and nearest to 25/64. Choose the drill by the decimal, not the fraction name.
Letter and number drills
Many fractions share a size with a letter drill (1/4" is letter E), and number and letter drills fill the gaps between 64ths. The drill list shows every name for a size.
Decimal comma
Typing 12,7 reads as 12.7 mm; 6,000 reads as six thousand.

Sources

Pure math, cited rather than counted: 25.4 mm per inch exactly, the international inch. Drill sizes are the site's drill list. Every 64th to 1" is on the fraction to decimal chart.

How we pick and check sources