Decimal to Fraction Converter
Convert a decimal inch to the nearest machinist fraction (1/8 down to 1/128), reduced to lowest terms, with the exact-vs-approximate difference shown. Runs in your browser.
Nearest fraction
-
How it works
Machinist fractions use power-of-two denominators (halves, quarters, eighths, and so on). This tool multiplies your decimal by the chosen denominator, rounds to the nearest whole numerator, then reduces to lowest terms:
numerator = round(decimal × denominator)
A finer denominator (like 1/64" or 1/128") snaps closer to the true value. When the fraction lands exactly on the decimal, it is marked as an exact match.
What this does
This tool converts a decimal inch to the nearest machinist fraction (from 1/8 down to 1/128) reduced to lowest terms, and shows how far the fraction is from the exact decimal.
How to use it
- Enter a decimal inch value.
- Choose the smallest denominator to allow.
- Read the nearest fraction and the rounding error.
How it works
The decimal is multiplied by your chosen denominator (such as 64), rounded to the nearest whole numerator, then reduced to lowest terms. Imperial fractions use powers of two because rulers and tooling subdivide by halving.
numerator = round(decimal × denominator)
Example
0.375 inch becomes exactly 3/8 inch. 0.51 inch rounds to 33/64 inch, which is about 0.0006 inch over.
Sources & methodology
Last updated .
Frequently asked questions
How is the nearest fraction found?
The decimal is multiplied by your chosen denominator (such as 64), rounded to the nearest whole numerator, then reduced to lowest terms, so 0.375" becomes 3/8".
Why are denominators always powers of two?
Machinist and imperial fractions subdivide by halving (halves, quarters, eighths, sixteenths, and so on) which keeps rulers, drills, and tooling consistent.
Is my data stored?
No. Everything is calculated locally in your browser.
Related tools
Inch to MM Converter
Convert between inches and millimeters using the exact 25.4 mm definition. Works both directions, entirely in your browser.
SFM to RPM Calculator
Convert cutting speed (SFM or SMM) to spindle RPM for a given tool diameter, or read the cutting speed from an RPM. Inch and metric, in your browser.
Feed Rate Calculator
Calculate machine feed rate (IPM or mm/min) from spindle RPM, number of teeth, and chip load, plus the feed per revolution. Inch and metric, in your browser.
Tap & Drill Size Chart
Look up the recommended tap drill (≈75% thread engagement) for common imperial (UNC/UNF) and metric threads, with decimal-inch and millimeter sizes. Searchable, in your browser.