The Util Box

Decimal to Fraction

Free online decimal to fraction. Convert decimals to simplified fractions. Accurate and easy to use.

Enter a decimal to convert to a fraction

Embed this tool

Copy and paste the code below into your website to embed this tool for free. An attribution link to The Util Box is required.

<iframe src="https://www.theutilbox.org/embed/decimal-to-fraction" width="600" height="500" frameborder="0" style="border: none; max-width: 100%;" title="Free Decimal to Fraction tool from The Util Box"></iframe>
<!-- Free tool by The Util Box — https://www.theutilbox.org/tools/decimal-to-fraction -->
<a href="https://www.theutilbox.org/tools/decimal-to-fraction">Decimal to Fraction by The Util Box</a>

Frequently Asked Questions about Decimal to Fraction

Decimal to Fraction Converter — With the Working Shown

This decimal to fraction converter turns a decimal into an exact fraction and shows the working. Type 0.75 and you get 3/4; type 0.333 and you get 1/3, because it recognises the repeating pattern rather than treating the 3s as exact.

The percentage is shown alongside, and where the fraction is larger than one you also get the mixed number.

How the Two Cases Are Handled

A terminating decimal is handled the usual way: the number of decimal places gives the denominator, and the numerator is the digits with the point removed. So 0.125 becomes 125/1000, which reduces to 1/8.

A repeating decimal is different, and the tool detects it from the digits you typed. For 0.333... the repeating block "3" has length one, so the denominator is 10¹ − 1 = 9 and the numerator is the repeating block itself — giving 3/9, which reduces to 1/3. The same trick gives 1/11 for 0.090909... and 1/7 for 0.142857142857...

The step-by-step panel shows which case was detected and the arithmetic that followed.

Honest Limits

  • Repeating detection needs three or more repetitions. The pattern is matched only when a digit repeats at least three times, so 0.1666 is treated as a terminating decimal and gives 833/5000 rather than the 1/6 it really is.
  • It reads the digits you typed, not a mathematical value. Type 0.3333333333333333 and the repeating block is detected correctly, but type 0.3 and you get exactly 3/10, not an approximation of 1/3.
  • A negative decimal gives a negative numerator with the sign carried through, and no mixed number is offered for it.
  • There is no reverse direction. This tool converts a decimal to a fraction; use the Fraction Calculator to go the other way and to do arithmetic with the result.

Related Calculators

The conversion runs entirely in your browser and works offline.