Decimal to Fraction Calculator
Turn decimal values such as 0.125 into simplified fractions.
The calculator builds a denominator from decimal places, then reduces the fraction.
Turn decimal values such as 0.125 into simplified fractions.
The calculator builds a denominator from decimal places, then reduces the fraction.
0.125 has three decimal places, so it is 125/1000. The GCD is 125, giving 1/8.
| Decimal | Fraction | Check (decimal) |
|---|---|---|
| 0.75 | 3/4 | 0.75 |
| 0.125 | 1/8 | 0.125 |
| 2.4 | 12/5 | 2.4 |
| 0.04 | 1/25 | 0.04 |
| 3.375 | 27/8 | 3.375 |
Let x = 0.333... then 10x - x = 3, so x = 3/9 = 1/3. A fraction in lowest terms has a terminating decimal only if its denominator has no prime factors except 2 and 5.
| Fraction | Decimal (6 places) | Lowest terms |
|---|---|---|
| 1/3 | 0.333333 | 1/3 |
| 2/7 | 0.285714 | 2/7 |
| 5/6 | 0.833333 | 5/6 |
| 1/8 | 0.125 | 1/8 |
A typed 0.333 is exactly 333/1000, not 1/3. If you know the source value is a repeating decimal, enter the fraction instead; the tool converts exactly what you typed.
Measurements in inches use fractions such as 3/8 and 5/16: 0.375 in is exactly 3/8 in and 0.3125 in is 5/16 in.
The form above runs in your browser with the same arithmetic described on this page; nothing you type is sent to a server. Results are rounded for display only, so a long decimal may differ from the last digit of a hand calculation. Empty, zero or non-numeric inputs return a message instead of a result, and division by zero is never evaluated.
Use the tool to check your own working rather than to replace it: write the formula, substitute your numbers, and compare. If the two disagree, look first at units, the order of the inputs and whether a percentage was entered as 5 or as 0.05.
The tables on this page are generated by script from the formulas shown, not typed by hand, and are rebuilt whenever the page is reviewed. The reviewed date above is the date those numbers were last recomputed.
Typical input errors are worth a second look before you rely on a result: a comma used as a decimal separator, a value typed in the wrong unit, or two inputs swapped. If a result looks implausible, test the tool with a case you can do in your head, such as round numbers, and confirm it matches before trying your real figures.
Educational tool. Found an error? Tell us.