Decimal to Fraction Converter
Turn a decimal into a simplified fraction and a mixed number. Repeating decimals are supported, and you can find the closest fraction for a rounded decimal. It runs in your browser and the answer is exact.
Convert a decimal
Put repeating digits in brackets: 0.(3) is 0.333..., 0.1(6) is 0.1666...
3 decimal places, so the digits go over 1000, then simplified.
Closest fraction for a rounded decimal
For example 0.333333 or 3.14159
A whole number from 1 up, such as 10, 100 or 1000
How to use the decimal to fraction converter
- Type the decimal, for example 0.375. For a repeating decimal, put the repeating digits in brackets.
- Read the simplified fraction and the mixed number.
- For a rounded decimal such as 0.333333, use the second box with a largest denominator to get the closest simple fraction.
How the conversion works
A decimal with n places is the digits over 10n: 0.375 = 375/1000. Dividing top and bottom by their greatest common divisor gives 3/8. For a repeating decimal, subtract the number without the repeat from the number with one repeat and divide by 9s: 0.(3) = 3/9 = 1/3.
Related tools
To add, subtract, multiply or divide fractions use the fraction calculator. For ratios use the ratio calculator, and for percentages the percentage calculator.
See also
- Need to add, subtract, multiply or divide fractions? Use the fraction calculator.
- Working with ratios? Try the ratio calculator.
- Need a percentage instead? Use the percentage calculator.
Frequently Asked Questions (FAQ)
Write the digits over a power of 10 with as many zeros as there are decimal places, then simplify. 0.375 = 375/1000, and dividing both by 125 gives 3/8.
0.375 is 375/1000, which simplifies to 3/8.
Put the repeating digits in brackets, for example 0.(3) or 0.1(6). The converter uses the exact rule: 0.(3) = 3/9 = 1/3 and 0.1(6) = (16 - 1)/90 = 1/6.
Keep the whole part and convert the decimal part. 2.75 is 2 and 75/100, which is 2 3/4. The converter shows the improper fraction (11/4) and the mixed number together.
Typed as written, 0.333333 is exactly 333333/1000000. Use the closest fraction box with a maximum denominator, for example 100, to get 1/3 for 0.333333 and 311/99 for 3.14159.
The exact rule gives 0.(9) = 9/9 = 1. There is no number between 0.999... and 1, so they are the same value.
A fraction in lowest terms gives a terminating decimal only when its denominator has no prime factors other than 2 and 5. 1/8 gives 0.125, but 1/3 and 1/7 repeat.
Up to 30 digits in total. The arithmetic uses big integers, so the fraction is exact and never rounded.