Free browser-based calculators.Back home
%Compound Calculator

Decimal to Fraction Calculator

Turn decimal values such as 0.125 into simplified fractions.

Result0.125 = 1/8

The calculator builds a denominator from decimal places, then reduces the fraction.

Short answer: Write the decimal over 10 raised to the number of decimal places, then simplify: 0.75 = 75/100 = 3/4; 2.4 = 12/5. Repeating decimals need a different method.

Terminating decimals

0.125 has three decimal places, so it is 125/1000. The GCD is 125, giving 1/8.

DecimalFractionCheck (decimal)
0.753/40.75
0.1251/80.125
2.412/52.4
0.041/250.04
3.37527/83.375

Repeating decimals

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.

FractionDecimal (6 places)Lowest terms
1/30.3333331/3
2/70.2857142/7
5/60.8333335/6
1/80.1251/8

Rounded inputs

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.

Where it is useful

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.

How this calculator works

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.

Sources

Related tools

Educational tool. Found an error? Tell us.