Decimal to Fraction Converter
Convert any terminating decimal to an exact fraction in lowest terms and a mixed number, with optional rounding to the nearest 1/16, 1/32 or other denominator.
Your inputs
See the method ↓Enter quantities in the labelled units. Unit changes keep the entered number; calculate again.
Loading calculator… If this message remains, reload the page.
HOW THE CALCULATION WORKS
Transparent decimal to fraction converter method
- A decimal with k digits after the point equals (all digits as a whole number) ÷ 10^k. For example, 0.6875 = 6875 ÷ 10,000.
- Reduce by dividing the numerator and denominator by their greatest common divisor: 6875/10000 = 11/16.
- Nearest 1/d fraction = round(decimal × d) ÷ d, rounding halves away from zero, then reduced. The rounding difference is shown.
Worked example
0.6875 = 6875/10000 = 11/16. Rounded to the nearest 1/8: 0.6875 × 8 = 5.5, which rounds to 6, so 6/8 = 3/4, a difference of +1/16.
Defaults and assumptions
- The decimal starts blank. Rounding to a nearest fraction is off by default, so the exact fraction is always shown first.
- Changing a unit keeps and reinterprets the entered number; recalculate. Reset restores the displayed configuration defaults, including any explicitly named customer defaults. The example is demonstration data.
- Numeric inputs accept decimals, fractions, mixed numbers, grouped commas and scientific notation within 80 characters. Each field shows its supported range. Some tools accept negative values; required divisors must be nonzero or positive as stated. These bounds are not safe-use recommendations.
Limitations
- Repeating decimals such as 0.333… cannot be entered exactly; the digits you type are converted exactly (0.333 = 333/1000). Use the nearest-fraction option to recover simple fractions.
- Values are limited to 80 characters and ±1 trillion.
Precision and rounding
Supported arithmetic uses exact fractions. Formulas involving logarithms, trigonometry, statistical functions or simulations can use numerical approximations; storing an approximation as a fraction does not make it exact. Decimal display rounds to at most 6 fractional places, so very small values can appear as approximately zero. Time displays round to the nearest second where shown. Whole-item rounding follows the stated formula.
Sources
Use the assumptions, worked example and sources to interpret your result. Estimates do not replace professional advice.
How to use this calculator
- Enter the measured quantities in the labelled units; inspect any named customer defaults.
- Check the units, dates and selected options. Where a tool asks for a rate, price or product specification, use a value appropriate to your situation.
- Calculate and compare the result, exact details, assumptions and worked example.
Common questions
Are the example values recommendations?
No. They demonstrate the arithmetic. Use measurements, product labels and supplier information appropriate to your situation.
What happens when I change units?
The entered number stays the same and is reinterpreted in the new unit. The old result is cleared; calculate again.
Are inputs sent to a server?
No. Calculations stay in your browser. A calculation record is downloaded only when you request it.
Report a problem or suggest a calculator
Found a confusing result, a missing option, or an idea for a new calculator? Send it privately to the site owner.
Opening the form loads Cloudflare Turnstile, a spam check that processes connection and device information. Privacy details.