How to use the decimal to fraction calculator
- Type your decimal, for example 0.375 or 2.75, and press Convert.
- For a repeating decimal, tell the calculator which digits repeat. You can type them in the “Repeating digits” box (decimal 0.1, repeating 6 means 0.1666…), write them in parentheses like 0.1(6), or simply end the number with dots: 0.333...
- Read the simplified fraction, the mixed number (when the value is bigger than 1) and the numbered steps.
How to convert a terminating decimal to a fraction
A terminating decimal has a last digit. Its place value tells you the denominator straight away:
- Count the decimal places. One place means tenths, two means hundredths, three means thousandths, and so on.
- Write the digits over that power of ten. Drop the decimal point to get the numerator; the denominator is 1 followed by as many zeros as there were decimal places.
- Simplify by dividing the top and bottom by their greatest common factor (GCF).
Example: 0.375. There are three decimal places, so 0.375 = 375/1000. The GCF of 375 and 1000 is 125, and 375 ÷ 125 = 3, 1000 ÷ 125 = 8. So 0.375 = 3/8.
If the decimal is larger than 1, the same method gives an improper fraction: 2.75 = 275/100 = 11/4, which is the mixed number 2 3/4. To practise the last step on its own, try the simplify fractions calculator.
How to convert a repeating decimal to a fraction
A repeating decimal such as 0.333… never ends, so there is no “last place” to read. Instead we use a neat piece of algebra that makes the endless tail cancel out.
- Call the decimal x.
- Multiply x by a power of ten so that exactly one repeating block moves to the left of the decimal point.
- If some digits after the point do not repeat, also multiply x by the power of ten that moves just those digits to the left.
- Subtract the two equations. The repeating tails are identical, so they disappear and you are left with a whole number.
- Solve for x and simplify.
Example: 0.1666… Let x = 0.1666… Then 100x = 16.666… and 10x = 1.666… Subtract: 100x − 10x = 16.666… − 1.666…, so 90x = 15 and x = 15/90 = 1/6.
Example: 0.272727… Let x = 0.2727… The block “27” has two digits, so multiply by 100: 100x = 27.2727… Subtract x: 99x = 27, so x = 27/99 = 3/11.
A handy pattern: a block of k repeating digits right after the point equals that block over k nines — 0.777… = 7/9, 0.4545… = 45/99, 0.123123… = 123/999.
Common decimal to fraction conversions
| Decimal | Fraction | Decimal | Fraction |
|---|---|---|---|
| 0.1 | 1/10 | 0.5 | 1/2 |
| 0.125 | 1/8 | 0.6 | 3/5 |
| 0.2 | 1/5 | 0.625 | 5/8 |
| 0.25 | 1/4 | 0.666… | 2/3 |
| 0.333… | 1/3 | 0.75 | 3/4 |
| 0.375 | 3/8 | 0.875 | 7/8 |
Which decimals can be written as fractions?
Every terminating decimal and every repeating decimal is a rational number, which means it can be written exactly as a fraction of two whole numbers. Decimals that go on forever without a repeating pattern — such as π = 3.14159… or √2 = 1.41421… — are irrational and have no exact fraction. To go the other way and see why a fraction terminates or repeats, use the fraction to decimal calculator. To turn your answer into a percent, see the percentage calculator.
Frequently asked questions
How do you convert a decimal to a fraction?
Write the digits after the decimal point over a power of ten (10 for one decimal place, 100 for two, 1000 for three) and simplify. For example 0.375 = 375/1000 = 3/8.
What is 0.333 repeating as a fraction?
0.333… equals 1/3. Let x = 0.333…, so 10x = 3.333…. Subtracting gives 9x = 3, so x = 3/9 = 1/3.
How do you convert a repeating decimal to a fraction?
Call the decimal x, multiply by a power of ten that shifts one repeating block past the decimal point, subtract the original (or the version with the non-repeating digits shifted) so the repeating part cancels, then solve for x and simplify.
What is 0.75 as a fraction?
0.75 = 75/100. Dividing the top and bottom by 25 gives 3/4.
Is 0.999… really equal to 1?
Yes. Let x = 0.999…, so 10x = 9.999…. Subtracting gives 9x = 9, so x = 1. The two notations name the same number.
Can every decimal be written as a fraction?
Only terminating and repeating decimals can. Non-repeating, never-ending decimals such as pi or the square root of 2 are irrational and cannot be written exactly as a fraction.