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...

Fraction
3/8
simplified from 375/1000
Mixed number
3/8
Decimal type
Terminating

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

Closest fraction
311/99
Mixed number
3 14/99

How to use the decimal to fraction converter

  1. Type the decimal, for example 0.375. For a repeating decimal, put the repeating digits in brackets.
  2. Read the simplified fraction and the mixed number.
  3. 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

Frequently Asked Questions (FAQ)

How do I convert a decimal to a fraction?

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.

What is 0.375 as a fraction?

0.375 is 375/1000, which simplifies to 3/8.

How do I convert a repeating decimal to a fraction?

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.

How do I convert a decimal to a mixed number?

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.

What if my decimal is rounded, like 0.333333 or 3.14159?

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.

Why is 0.999... equal to 1?

The exact rule gives 0.(9) = 9/9 = 1. There is no number between 0.999... and 1, so they are the same value.

Which decimals are repeating?

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.

Is there a limit on the number of digits?

Up to 30 digits in total. The arithmetic uses big integers, so the fraction is exact and never rounded.