Quick answer
A decimal measurement converts to the nearest fraction of an inch by rounding to the chosen denominator: round(x × denominator) ÷ denominator. 3.4375 in to the nearest 1/16 is exactly 3 7/16 in, with zero error.
Enter decimal inches and the denominator to round to. The calculator returns the nearest fraction and the rounding error.
Related tools: Fraction Calculator: Add, subtract, multiply and divide fractions with simplified and mixed-number results. Fraction to Decimal Calculator: Convert a fraction to a decimal, showing repeating digits. Percent to Fraction Calculator: Convert a percentage to a simplified fraction.
How to use the Inch Fraction Calculator
- Enter decimal inches (between 0 and 10000).
- Choose nearest: 1/2, 1/4, 1/8, 1/16, 1/32 and 1/64.
- Press Calculate to see the result, and use Reset to start again.
| Input | What to enter | Allowed values |
|---|---|---|
| Decimal inches | A number | ≥ 0, ≤ 10000 |
| Nearest | Choose one: 1/2; 1/4; 1/8; 1/16; 1/32; 1/64 | Starts at 1/16 |
Formula and method
Formula
round(x × denominator) ÷ denominator
IEEE-754 double precision; shown to at most 6 decimal places.
Rounds to the nearest fraction of an inch and reports the rounding error.
Worked examples
These examples are verified: each one is an automated test case that the live calculator must reproduce exactly.
Example 1
Inputs: Decimal inches = 3.4375; Nearest = 1/16.
| Result | Value |
|---|---|
| Nearest fraction | 3 7/16 in |
| Error | 0 |
Example 2
Inputs: Decimal inches = 0.3; Nearest = 1/16.
| Result | Value |
|---|---|
| Nearest fraction | 5/16 in |
| Error | -0.0125 |
Example 3
Inputs: Decimal inches = 2; Nearest = 1/8.
| Result | Value |
|---|---|
| Nearest fraction | 2 in |
| Error | 0 |
The first line is the headline result (nearest fraction). Below it the inch Fraction Calculator lists error, which describe the same case from other angles. IEEE-754 double precision; shown to at most 6 decimal places.
Working through it
0.4375 × 16 = 7, so the fraction is 7/16 and the error is zero. For 3.4 in, 0.4 × 16 = 6.4 rounds to 6, giving 3 3/8 in with an error of 0.025 in. Ties round up.
Choosing a denominator
Woodworkers commonly use 1/16 or 1/32; machinists work to thousandths instead. A finer denominator gives a smaller error. Millimetres convert to inches by dividing by 25.4.
How the result changes with decimal inches
Holding every other input at the first worked example, this table changes only decimal inches. It shows how sensitive the answer is to that one value; each row was produced by running this calculator.
| Decimal inches | Nearest fraction | Error |
|---|---|---|
| 1.719 | 1 3/4 in | -0.031 |
| 3.438 | 3 7/16 in | 0.0005 |
| 6.875 | 6 7/8 in | 0 |
| 13.75 | 13 3/4 in | 0 |
What happens with invalid input
These messages are produced by the calculator itself, so you know what to fix.
- Decimal inches: entering "-1" shows "Decimal inches must be at least 0." beside that field and no result.
Choosing between the Inch Fraction Calculator and similar calculators
Each row shows what a related calculator on this site asks for and what it returns, so you can pick the one that matches your question.
| Calculator | You enter | It returns |
|---|---|---|
| [Fraction Calculator](/math/fraction-calculator/) | numerator 1, denominator 1 and operation | Result |
| [Fraction to Decimal Calculator](/math/fraction-to-decimal-calculator/) | numerator and denominator | Decimal |
| [Percent to Fraction Calculator](/math/percent-to-fraction-calculator/) | percent | Fraction |
| [Fraction Simplifier](/math/fraction-simplifier/) | numerator and denominator | Simplified |
| [Decimal to Fraction Calculator](/math/decimal-to-fraction-calculator/) | decimal | Fraction |
Background: rounding and basic arithmetic
Rounding to a place looks at the digit just to its right: 0 to 4 rounds down and 5 to 9 rounds up (the half-up convention, so 2.5 becomes 3). Rounding 838.274 gives 800 to the nearest hundred, 840 to the nearest ten and 838 to the nearest one.
Some systems use banker's rounding (half to even), which sends 2.5 to 2 and 3.5 to 4; check which convention your task requires, and round only at the end of a multi-step calculation.
Assumptions and limitations
- Ties round up
If a required value is empty, not a number, or outside its allowed range, the form marks that field with a message and shows no result instead of a misleading number. The automated checks deliberately try invalid entries for decimal inches to confirm this.
Frequently asked questions
What is 0.5 in as a fraction?
1/2 inch, which is 8/16.
What is 0.3125 in?
0.3125 × 16 = 5, so it is 5/16 inch.
How accurate is 1/16?
Within 1/32 inch (0.031 in) of the true value.
What does the Inch Fraction Calculator calculate?
Convert decimal inches to the nearest fractional inch. It returns Nearest fraction and Error.
What formula does the Inch Fraction Calculator use?
round(x × denominator) ÷ denominator. Rounds to the nearest fraction of an inch and reports the rounding error.
What do I need to enter in the inch Fraction Calculator?
You enter Decimal inches and Nearest.
How is the result rounded or limited?
IEEE-754 double precision; shown to at most 6 decimal places. Ties round up.
What does the “Nearest” option change?
It sets how the inch Fraction is worked out. The choices are 1/2, 1/4, 1/8, 1/16, 1/32 and 1/64.
What is an example of a inch Fraction result?
With decimal inches 3.4375 and nearest 1/16, the nearest fraction is 3 7/16 in.
Where does the method come from?
The method follows: OpenStax, Prealgebra 2e (Rice University): fractions, decimals, percents, ratios and rounding (fractions); inch subdivisions to 1/64 are a tape-measure convention.
Related calculators
- Fraction Calculator — Add, subtract, multiply and divide fractions with simplified and mixed-number results.
- Fraction to Decimal Calculator — Convert a fraction to a decimal, showing repeating digits.
- Percent to Fraction Calculator — Convert a percentage to a simplified fraction.
- Fraction Simplifier — Reduce a fraction to lowest terms.
- Decimal to Fraction Calculator — Convert a terminating decimal to a simplified fraction.
- Fraction to Ratio Calculator — Convert a fraction to a ratio.
- Greater Than Less Than Calculator — Compare two numbers.
- Scientific Notation Calculator — Convert a number to scientific notation.
- Standard Notation Calculator — Write a number in standard (ordinary decimal) notation from scientific or standard form.
Sources
- OpenStax, Prealgebra 2e (Rice University): fractions, decimals, percents, ratios and rounding (fractions); inch subdivisions to 1/64 are a tape-measure convention
Content last reviewed 2026-11-04. Formulas and worked examples are checked by automated tests against independently computed values.