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 inch is 25.4 mm exactly, so mm = inches × 25.4: 0.3125 × 25.4 = 7.938 mm.
- Nearest 1/64: 0.3125 × 64 = 20, which rounds to 20; 20/64 = 5/16" = 0.3125", exact.
- Drills come from the site’s drill list: number, letter and fractional drills to 2", and metric drills from 0.3 to 50 mm.
Sources
| Nearest | Fraction | Decimal | Error |
|---|---|---|---|
| 1/8 | 3/8" | 0.3750 | +0.0625 |
| 1/16 | 5/16" | 0.3125 | exact |
| 1/32 | 5/16" | 0.3125 | exact |
| 1/64 (chosen) | 5/16" | 0.3125 | exact |
What next
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
- 10 ÷ 25.4 = 0.3937"
- Nearest 1/64: 0.3937 × 64 = 25.20 → 25/64 = 25/64" = 0.3906", 0.0031" under
- Nearest 1/16: 0.3937 × 16 = 6.30 → 6/16 = 3/8" = 0.3750", 0.0187" under
- 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.