MakeMyCalculator.com

CALCULATOR

Decimal to Fraction

Convert a terminating or explicitly repeating decimal to a reduced exact fraction, a mixed-number view and verifiable conversion steps.

YOUR INPUTS Live calculation

Example values. Enter your own inputs.

Exact fraction

5/8Exact reduced fraction

Decimal approximation (not exact): 0.625

How this fraction is calculated
  1. Read the decimal

    Treat 0.625 as a terminating decimal.

  2. Write a fraction

    There are 3 decimal place(s), so use denominator 1000: 625/1000.

  3. Find the common factor

    The greatest common divisor of 625 and 1000 is 125.

  4. Reduce the fraction

    Divide 625 and 1000 by 125 to get 5/8.

Add to project +Customize with AI →

How the calculation works

For a terminating decimal, use a power-of-ten denominator, then reduce by the greatest common divisor. For repeating notation, align and subtract matching repeating tails, then reduce.

Worked example

For “0.625” in terminating notation, the exact reduced fraction is 5/8.

Assumptions and limits

Use ordinary decimal text with a dot. Select repeating notation explicitly; the chosen number of final fractional digits repeats. Input is limited to 64 characters and 18 digits on each side of the decimal point, with absolute value at most 1000000000000.

Method sources
Exact fraction5/8
Edit inputs ↑

Embed this calculator

Paste this snippet into your site. The widget is free and ad-free, opens with your current inputs, and keeps a link back to this calculator.