TTKTheTextKit

Decimal to Fraction Converter

Type a decimal and get the exact fraction in lowest terms, with the steps and a mixed number when the fraction is larger than 1. A decimal that repeats goes in brackets, so 0.(3) is 1/3 and 0.1(6) is 1/6. A percent sign works too, and so does a decimal comma. For a rounded decimal such as 3.14159 the page also gives the closest fraction with a denominator up to any limit you choose, and the nearest fraction on a ruler. Everything runs in your browser.

A repeating part goes in brackets: 0.(3) is 0.333 without end and 0.1(6) is 0.1666 without end. A percent sign or a decimal comma also works.

Fraction
3/8
exact, in lowest terms
How it is worked out
  1. Write the digits over a power of 10: 0.375 = 375/1000.
  2. Divide the top and bottom by their greatest common divisor, 125: 375/1000 = 3/8.
Closest fraction with a small denominator

The exact fraction 3/8 already has a denominator of 8 or less.

Nearest fraction on a ruler
The nearest fraction over each ruler denominator and how far it is from the decimal
Fine toFractionOff by
1/21/20.125
1/41/20.125
1/83/80
1/163/80
1/323/80
1/643/80

A decimal that ends is read exactly: 0.375 is 375 over 1000, which reduces to 3/8. A repeating decimal written with brackets is also exact, with the same method used by hand, so 0.(3) is 1/3 and 0.(142857) is 1/7. A decimal that was rounded, such as 3.14159 or 0.333, is read as the digits you typed, so its exact fraction has a large denominator. The closest fraction with a small denominator uses continued fractions and is the best possible for the limit you set, and the ruler table rounds a half up. The arithmetic uses whole numbers of any size, up to 1,000 digits, so nothing is rounded along the way. Everything runs in your browser and nothing you type is uploaded.

Related Tools

[6 suggestions]

About the Decimal to Fraction Converter

A decimal that ends is a fraction over a power of 10. 0.375 is 375 over 1000, and dividing both by their greatest common divisor, 125, gives 3/8. A repeating decimal is also exact. Call it x, multiply by a power of 10 that lines up the repeating digits, subtract, and divide: for 0.(3), 10x minus x is 3, so 9x is 3 and x is 1/3. The tool does this with whole numbers of any size, up to 1000 digits, so 0.(142857) is exactly 1/7 and nothing is rounded. Type a repeating part in brackets after the point, such as 0.1(6), 2.(3) or 12.34(567). A percent is a fraction over 100, so 62.5% is 5/8. If you type a decimal that was rounded, such as 0.333 or 3.14159, it is read as the digits you typed, which gives 333/1000 and 314159/100000, and the closest small fraction is found with continued fractions, which is the best possible fraction for the denominator limit you set: 22/7 up to 10, 311/99 up to 100 and 355/113 up to 1000 for 3.14159. A table gives the nearest fraction over 2, 4, 8, 16, 32 and 64, rounding a half up, with how far each is from your decimal, which is how a tape measure or a drill bit chart reads. Everything runs in your browser and nothing you type is uploaded.

How do you convert a decimal to a fraction?▾

Write the digits over a power of 10 with as many zeros as there are digits after the point, then reduce. 0.375 is 375/1000, and dividing by the greatest common divisor, 125, gives 3/8. The tool shows each step.

How do you convert a repeating decimal to a fraction?▾

Type the repeating digits in brackets, such as 0.(3) or 0.1(6). The tool multiplies to line the repeating digits up, subtracts, and divides, so 0.(3) is 1/3 and 0.1(6) is 1/6. The result is exact.

What is 0.333 as a fraction?▾

Exactly, 0.333 is 333/1000. It is not 1/3, because 1/3 is 0.333 repeating without end. The closest fraction with a denominator up to 100 is 1/3, which the tool shows, and 0.(3) with brackets gives exactly 1/3.

How do I convert a percent to a fraction?▾

Divide by 100 and reduce. 62.5% is 62.5/100, which is 5/8, and 12.5% is 1/8. Type the number with the percent sign and the tool does it.

How do I turn a decimal into a mixed number?▾

Convert it to a fraction, then divide the top by the bottom. 2.75 is 11/4, which is 2 whole and 3/4. The tool shows the mixed number whenever the fraction is larger than 1.

Which fraction is closest to a decimal with a small denominator?▾

Set the denominator limit and the tool finds the best fraction up to it. For 3.14159 it is 22/7 up to 10, 311/99 up to 100 and 355/113 up to 1000.