Every terminating decimal is secretly a fraction. 0.5 is 1/2, 0.75 is 3/4, and 0.625 is 5/8 — the trick is knowing how many zeros belong in the denominator and how far the fraction reduces. This calculator does both steps and shows its work.
How to Convert a Decimal to a Fraction (step by step)
Step One: Write the decimal over a power of 10
Count the digits after the decimal point, then put the decimal’s digits (without the point) over a 1 followed by that many zeros.
0.625 has 3 digits after the decimal point
0.625 = 625 / 1000
Step Two: Find the greatest common divisor (GCD)
The GCD of the numerator and denominator tells you the biggest number that divides evenly into both — that’s what you’ll divide out to simplify.
gcd(625, 1000) = 125
Step Three: Divide both numbers by the GCD
625 ÷ 125 = 5
1000 ÷ 125 = 8
0.625 = 5/8
With the calculator’s defaults (0.625, converted at 3 decimal digits), the result is exactly 5/8 — and 5 ÷ 8 does equal 0.625, confirming the conversion.
What your results mean
The numerator and denominator are your answer in lowest terms — this is the fraction you’d write on paper. The GCD used to simplify shows exactly what number both the raw numerator (625) and raw denominator (1000) were divided by to get there; if the GCD is 1, the fraction was already in lowest terms before simplifying.
The decimal used field shows the decimal value after rounding to your chosen digit count. If it doesn’t match what you typed, you rounded at fewer digits than your original number had — try a higher digit setting for more precision.
Common decimals and their fractions
| Decimal | Fraction | GCD used |
|---|---|---|
| 0.5 | 1/2 | 5 |
| 0.25 | 1/4 | 25 |
| 0.75 | 3/4 | 25 |
| 0.125 | 1/8 | 125 |
| 0.375 | 3/8 | 125 |
| 0.2 | 1/5 | 2 |
Notice the GCD is what does the real work — a decimal like 0.5 (500/1000) needs a GCD of 500 to collapse all the way down to 1/2, while 0.375 only needs 125.
A note on precision
Choosing more decimal digits than your number actually has doesn’t hurt — trailing zeros just get absorbed into the GCD. But choosing fewer digits than you meant will round your input, which matters for anything beyond simple fractions. If you’re working from a measurement, it can help to check the result against the fraction to decimal calculator run in reverse, or compare it to the equivalent fractions calculator to see other fractions that represent the same value.