Decimal to Fraction Calculator

Convert a terminating decimal to its simplified fraction form.

Inputs

Up to 10 digits after the decimal point.

Result

Loading calculator…

General calculation reads

Amazon affiliate

As an Amazon Associate we may earn from qualifying purchases. This does not add cost for you.

How to use this calculator

  • Enter the decimal value (terminating only).
  • Read the simplified fraction.

About this calculator

A terminating decimal can be converted to a fraction by reading the digits after the decimal point as a numerator and using a power of ten as the denominator, then simplifying. 0.625 = 625/1000, which simplifies (dividing both by 125) to 5/8. For repeating decimals, see the dedicated repeating-decimal-to-fraction approach (not in this tool).

Frequently asked

Does this work for repeating decimals?+
Not directly. For repeating decimals like 0.333…, use the algebraic identity x = 0.333…, 10x = 3.333…, subtract to get 9x = 3, x = 1/3.
How is the answer simplified?+
By dividing numerator and denominator by their greatest common divisor (GCD). 625/1000 → divide by 125 → 5/8.
Can I get a mixed number?+
For improper fractions (numerator > denominator), the breakdown shows both improper and mixed forms.
Why does 0.1 not give 1/10 exactly?+
0.1 in floating point is actually 0.1000000000000000055…. The calculator parses the decimal as a string to avoid this representation issue.
How precise can the input be?+
JavaScript numbers have ~15 significant digits. For very precise fractions, use scientific-notation or the gcd-calculator directly with the desired numerator/denominator.

Related calculators

More tools you might like

Hand-picked tools that pair well with this one — same audience, same intent.