Free online tools

Decimal to Fraction Calculator

Turn a decimal into a fraction in lowest terms and see how the numerator and denominator are calculated. Use parentheses for a repeating block, such as 0.1(6).

Enter your values

Use a decimal point. Examples: 0.125, −2.5 and 1.2(34).

This tool processes your input in your browser.

Result

Terminating decimals use powers of ten

A value with three digits after the decimal point can be written over 1,000. For example, 0.125 = 125/1,000. Divide the numerator and denominator by 125 to get 1/8. Digits at the end like the zeros in 0.1250 leave the same simplified fraction.

Repeating decimals use subtraction

Set x = 0.1666… . Then 100x = 16.666… and 10x = 1.666… . Subtract to cancel the repeating digits: 90x = 15. The fraction 15/90 reduces to 1/6. In the tool, write that value as 0.1(6), where the 6 repeats and the 1 occurs once.

Keep rounded values separate from exact ones

The decimal 0.333 is exactly 333/1,000. The repeating decimal 0.(3) equals 1/3. If a display shows a limited number of decimal places, use the original fraction or the known repeating pattern to recover the exact value.

Frequently asked questions

How do I enter a repeating decimal?

Put the repeating digits in parentheses at the end. For example, 0.(27) means 0.272727… and simplifies to 3/11. Write 0.1(6) for 0.1666….

Can I convert a negative or whole number?

Yes. The negative sign carries over to the numerator, so −2.5 becomes −5/2. Whole numbers have a denominator of 1.

What does it mean for a fraction to be in lowest terms?

The numerator and denominator have no shared factor greater than 1. The calculation divides both by their greatest common divisor to get the reduced form.