What this calculator does
The Round to the Nearest Fraction Calculator snaps any decimal number to the closest fraction with a denominator you choose — halves, quarters, eighths, sixteenths, thirty-seconds, or sixty-fourths. It is ideal for woodworking, machining, sewing, construction, and any task that uses an inch ruler marked in fractional increments rather than decimals.
How to use it
Enter the decimal value you want to round, then pick the fractional precision (for example "nearest 1/16"). The calculator returns the rounded decimal, the equivalent mixed fraction in lowest terms, and the rounding difference so you know exactly how much was added or removed.
The formula explained
To round a value \(x\) to the nearest \(1/d\), multiply \(x\) by the denominator \(d\), round that product to the nearest whole number, then divide by \(d\) again:
$$\text{Rounded} = \frac{\operatorname{round}\!\left(\text{Value} \times \text{Denominator}\right)}{\text{Denominator}}$$A larger denominator gives finer precision. The fractional part is then reduced by dividing the numerator and denominator by their greatest common divisor, so \(8/16\) displays as \(1/2\).
Worked example
Round 3.3 to the nearest 1/16. Multiply: \(3.3 \times 16 = 52.8\). Round: \(53\). Divide:
$$53 / 16 = 3.3125$$As a mixed number that is 3 5/16 (since \(53 - 48 = 5\)). The rounding difference is \(3.3125 - 3.3 = 0.0125\) inch.
Fraction to Decimal and Millimeter Conversion Chart
Inch fractions convert exactly to decimals, and millimeters follow from the exact definition 1 inch = 25.4 mm. The table below lists every 1/16 step from 1/16 to 1 inch in reduced form.
| Fraction (reduced) | Decimal inches | Millimeters |
|---|---|---|
| 1/16 | 0.0625 | 1.5875 |
| 1/8 | 0.125 | 3.175 |
| 3/16 | 0.1875 | 4.7625 |
| 1/4 | 0.25 | 6.35 |
| 5/16 | 0.3125 | 7.9375 |
| 3/8 | 0.375 | 9.525 |
| 7/16 | 0.4375 | 11.1125 |
| 1/2 | 0.5 | 12.7 |
| 9/16 | 0.5625 | 14.2875 |
| 5/8 | 0.625 | 15.875 |
| 11/16 | 0.6875 | 17.4625 |
| 3/4 | 0.75 | 19.05 |
| 13/16 | 0.8125 | 20.6375 |
| 7/8 | 0.875 | 22.225 |
| 15/16 | 0.9375 | 23.8125 |
| 1 | 1 | 25.4 |
The odd 1/32 values
Each step of 1/32 inch is 0.03125 in = 0.79375 mm.
| Fraction | Decimal inches | Millimeters |
|---|---|---|
| 1/32 | 0.03125 | 0.79375 |
| 3/32 | 0.09375 | 2.38125 |
| 5/32 | 0.15625 | 3.96875 |
| 7/32 | 0.21875 | 5.55625 |
| 9/32 | 0.28125 | 7.14375 |
| 11/32 | 0.34375 | 8.73125 |
| 13/32 | 0.40625 | 10.31875 |
| 15/32 | 0.46875 | 11.90625 |
| 17/32 | 0.53125 | 13.49375 |
| 19/32 | 0.59375 | 15.08125 |
| 21/32 | 0.65625 | 16.66875 |
| 23/32 | 0.71875 | 18.25625 |
| 25/32 | 0.78125 | 19.84375 |
| 27/32 | 0.84375 | 21.43125 |
| 29/32 | 0.90625 | 23.01875 |
| 31/32 | 0.96875 | 24.60625 |
The 1/64 values
One 1/64 inch is 0.015625 in = 0.396875 mm. Every odd 64th is n × 0.015625 in, or n × 0.396875 mm. A few examples:
| Fraction | Decimal inches | Millimeters |
|---|---|---|
| 1/64 | 0.015625 | 0.396875 |
| 3/64 | 0.046875 | 1.190625 |
| 5/64 | 0.078125 | 1.984375 |
| 63/64 | 0.984375 | 25.003125 |
The remaining 64ths follow the same pattern, and even-numbered 64ths reduce to the 1/32, 1/16, and coarser fractions above (for example 2/64 = 1/32).
Same Number, Different Precisions
The calculator multiplies the value by the denominator, rounds to the nearest whole number, and divides by the denominator again. Finer denominators generally give a smaller error, but a coarser fraction can land closer by chance. Two examples:
Value 0.337
| Round to | Value × d | Rounded fraction | Decimal | Absolute error |
|---|---|---|---|---|
| 1/2 | 0.674 → 1 | 1/2 | 0.5 | 0.163 |
| 1/4 | 1.348 → 1 | 1/4 | 0.25 | 0.087 |
| 1/8 | 2.696 → 3 | 3/8 | 0.375 | 0.038 |
| 1/16 | 5.392 → 5 | 5/16 | 0.3125 | 0.0245 |
| 1/32 | 10.784 → 11 | 11/32 | 0.34375 | 0.00675 |
| 1/64 | 21.568 → 22 | 22/64 = 11/32 | 0.34375 | 0.00675 |
Value 3.3
| Round to | Value × d | Rounded fraction | Decimal | Absolute error |
|---|---|---|---|---|
| 1/2 | 6.6 → 7 | 3 1/2 | 3.5 | 0.2 |
| 1/4 | 13.2 → 13 | 3 1/4 | 3.25 | 0.05 |
| 1/8 | 26.4 → 26 | 26/8 = 3 1/4 | 3.25 | 0.05 |
| 1/16 | 52.8 → 53 | 3 5/16 | 3.3125 | 0.0125 |
| 1/32 | 105.6 → 106 | 106/32 = 3 5/16 | 3.3125 | 0.0125 |
| 1/64 | 211.2 → 211 | 3 19/64 | 3.296875 | 0.003125 |
Worked check for 3.3 at 1/64: \(3.3 \times 64 = 211.2\), which rounds to 211. Then \(211 / 64 = 3\tfrac{19}{64}\) because \(211 - 3 \times 64 = 19\), and the error is \(3.3 - 3.296875 = 0.003125\).
Maximum possible error
Rounding to the nearest 1/d can never be off by more than half a step, which is \(\frac{1}{2d}\):
| Denominator | Maximum error (in) |
|---|---|
| 1/2 | 0.25 |
| 1/4 | 0.125 |
| 1/8 | 0.0625 |
| 1/16 | 0.03125 |
| 1/32 | 0.015625 |
| 1/64 | 0.0078125 |
So rounding to the nearest 1/16 is never off by more than 1/32 = 0.03125 in. Note that 0.337 at 1/16 has an error of 0.0245, which is inside that bound.
Key Terms
- Denominator / precision
- The bottom number of the fraction, chosen in the calculator as 2, 4, 8, 16, 32 or 64. It sets the step size 1/d. A larger denominator means finer precision and a smaller maximum error.
- Numerator
- The top number, found by rounding value × denominator to the nearest whole number. It counts how many 1/d steps make up the result.
- Mixed number
- A whole part plus a proper fraction, such as 3 5/16. When the numerator is larger than the denominator, the calculator splits out the whole part, so 53/16 is shown as 3 5/16.
- Lowest terms (GCD reduction)
- A fraction is in lowest terms when numerator and denominator share no common factor above 1. The result is divided by their greatest common divisor (GCD), so 22/64 becomes 11/32 and 26/8 becomes 13/4.
- Rounding error / difference
- The absolute gap between your original value and the rounded fraction: |value − rounded|. It is never more than 1/(2d).
- Tie / half-way value
- A value that sits exactly between two neighboring fractions, where value × d ends in exactly .5 (for example 0.375 at 1/4 gives 1.5). Ties are resolved by the rounding rule of the calculator, which for positive numbers normally rounds up. In a tie the error equals exactly 1/(2d) either way.
- Tolerance
- The deviation your job allows, such as ±1/32 in. Compare it with the rounding error: if the maximum error 1/(2d) is larger than your tolerance, choose a finer denominator.
FAQ
How is a tie (exactly halfway) handled? The calculator rounds halves to the nearest even/up using standard round-half-up behavior of the rounding function, so 1/32 of an inch ties move to the next sixteenth.
Can it round negative numbers? Yes. The whole part keeps the sign and the fraction is shown as a positive numerator over its denominator.
Why reduce the fraction? Rulers and plans are read in lowest terms — 4/8 is easier to find as 1/2 — so the result is always simplified.