Everyday Math

Decimal to Fraction Calculator

Convert the decimal digits you enter into an exact fraction, reduced to lowest terms.

Private, in-browser calculationUpdated

Let’s work it out

Enter your numbers. We’ll show the working.

Use a decimal point, up to 30 digits on each side. No exponent or recurring notation.

How to use this calculator

  1. Enter finite decimal and the remaining values.
  2. Check the selected units and the counting or calculation convention described below.
  3. Select Calculate to review the result and breakdown. Reset restores the example.

The formula

Fraction = signed digits without the point / 10^(decimal places), then divide by gcd

The decimal is read as text so every supplied digit is preserved. Removing the point creates an integer numerator; a power of ten records its original position. The greatest common divisor reduces the pair.

PUTTING IT INTO PRACTICE

A worked example

0.375 becomes 375/1000, then reduces by 125 to 3/8. Trailing zeros such as 0.3750 give the same reduced fraction.

How to interpret your result

The answer is exact for the finite digits entered. Entering 0.333 creates 333/1000, not 1/3; the input does not imply recurring digits.

Assumptions and limitations

Finite decimal notation only; optional sign and up to 30 digits on either side of the point.

Scientific notation and ellipses are intentionally rejected. To express 1/3 exactly, use Fraction Calculator.