Home › Math › Decimal to Fraction Calculator

Decimal to Fraction Calculator

Turn any decimal into a simplified fraction or mixed number, including repeating decimals, with the steps shown.

Up to 9 decimal places. Negative numbers are fine.

Useful when your decimal is rounded, such as 0.3333 or 3.14159.

Fraction

-

--
--
--
--

Common decimals as fractions

DecimalFractionPercentage
0.11/1010%
0.1251/812.5%
0.21/520%
0.251/425%
0.3333… = 0.(3)1/333.33…%
0.3753/837.5%
0.42/540%
0.51/250%
0.63/560%
0.6255/862.5%
0.6666… = 0.(6)2/366.66…%
0.753/475%
0.84/580%
0.8757/887.5%
0.051/205%
0.06251/166.25%
0.1666… = 0.1(6)1/616.66…%
0.0833… = 0.08(3)1/128.33…%
0.142857… = 0.(142857)1/714.28…%
0.0909… = 0.(09)1/119.09…%

How do you convert a decimal to a fraction?

A decimal that ends can be written as a fraction with a power of 10 on the bottom. You then simplify it by dividing the top and bottom by their greatest common factor.

  1. Count the digits after the decimal point. Call this number n.
  2. Write the decimal digits, without the point, over 1 followed by n zeros.
  3. Divide the top and bottom by their greatest common factor to simplify.

How to use this calculator

  1. Type the decimal, for example 0.375 or 2.75.
  2. Read the simplified fraction, and the mixed number if the decimal is above 1.
  3. For a repeating decimal, enter the digits that repeat, or use the closest simple fraction shown for a rounded value.

Example 1: 0.375

There are 3 digits after the point, so 0.375 = 375/1000. The greatest common factor of 375 and 1000 is 125. Dividing both by 125 gives 3/8.

Example 2: 2.75

2.75 = 275/100 = 11/4. As a mixed number, this is 2 3/4.

More examples

  • 0.6 = 6/10 = 3/5.
  • 0.05 = 5/100 = 1/20. There are two digits after the point, so the bottom is 100, not 10.
  • 0.125 = 125/1000 = 1/8.
  • 4.2 = 42/10 = 21/5, which is the mixed number 4 1/5.
  • 12.5 = 125/10 = 25/2, which is the mixed number 12 1/2.
  • 0.3125 = 3125/10000 = 5/16, which is useful for measurements in inches.

Common decimals as fractions

DecimalFractionDecimalFraction
0.11/100.51/2
0.1251/80.63/5
0.21/50.6255/8
0.251/40.753/4
0.33/100.84/5
0.3753/80.8757/8
0.42/50.06251/16

Finding the greatest common factor

To simplify, you need the greatest common factor (GCF) of the top and bottom. A reliable way is Euclid's method. For 375 and 1000, divide the bigger number by the smaller: 1000 = 2 × 375 + 250. Then divide 375 by the remainder: 375 = 1 × 250 + 125. Then divide 250 by 125: 250 = 2 × 125 + 0. The last divisor, 125, is the GCF. You can also use our LCM and HCF Calculator to find it.

Converting a repeating decimal

A repeating decimal such as 0.58333… cannot be written over a power of 10, but it is still an exact fraction. Split the digits after the point into the part that does not repeat (58) and the part that repeats (3).

Fraction = ( all the digits − the non-repeating digits ) ÷ ( 10^(non-repeating count) × (10^(repeating count) − 1) )
0.58(3) = (583 − 58) ÷ (10² × (10¹ − 1)) = 525/900 = 7/12

Another example is 0.(142857), where the whole block repeats: 142857 ÷ 999999 = 1/7.

For a block that repeats from the start, the rule is simple: put the repeating digits over as many 9s as there are digits. So 0.(3) = 3/9 = 1/3 and 0.(18) = 18/99 = 2/11. If the decimal has a whole number part, convert the decimal part and add the whole number back. For 1.2(5), the decimal part is (25 − 2) ÷ (10 × 9) = 23/90, so 1.2(5) = 1 23/90 = 113/90.

Rounded decimals and the closest simple fraction

If you type a rounded repeating decimal such as 0.3333, the exact fraction is 3333/10000. You probably meant 1/3. The "closest simple fraction" row finds the best fit with a small denominator, and shows how far off it is. Likewise, 3.14159 is closest to 355/113 for denominators up to 1,000, and to 22/7 for denominators up to 10. These are approximations and not exact matches.

Here are some rounded values and the simple fractions they probably come from:

Rounded decimalClosest simple fraction
0.33331/3
0.66672/3
0.14291/7
0.28572/7

Take care when the decimal is exact. The decimal 0.14 is exactly 14/100 = 7/50, even though it is close to 1/7 (0.142857…). If the number really ends at 0.14, use 7/50.

Ending and repeating decimals

Decimals fall into two groups. An ending decimal, such as 0.375, stops after a few digits and can be written exactly over a power of 10. A repeating decimal, such as 0.58333…, goes on forever with a pattern. Both are rational numbers, which means both can be written as a fraction of two whole numbers. Only a decimal that goes on forever without any repeating pattern, such as π, cannot be written as an exact fraction.

Percentages as fractions

A percentage is a decimal in disguise. Divide by 100 to get the decimal, then convert as above. For 37.5%, the decimal is 0.375, which is 3/8. For 12%, the decimal is 0.12 = 12/100 = 3/25.

Where decimals as fractions are useful

  • Measurements: tools, drill bits and drawings often use fractions of an inch, such as 0.3125 inch = 5/16 inch.
  • Cooking: 0.75 cup is 3/4 cup, and 0.125 teaspoon is 1/8 teaspoon.
  • Maths and exams: many questions ask for an answer as a fraction in simplest form.
  • Probability: a chance of 0.2 is 1 in 5.

Common mistakes

  • Using the wrong power of 10. Count the decimal places carefully. 0.05 has two, so it is 5/100, not 5/10.
  • Not simplifying. 375/1000 is correct but unfinished. Divide by the GCF to get 3/8.
  • Treating a rounded repeating decimal as exact. 0.58333 is 58333/100000 exactly, but you probably meant 7/12.

Things to remember

  • A decimal that ends is always an exact fraction with only 2s and 5s in the simplest denominator.
  • 0.999… repeating is exactly equal to 1.
  • For a percentage, move the decimal point two places to the right. 0.375 is 37.5%.
  • Negative decimals give negative fractions, such as −0.2 = −1/5.

To go the other way, from a fraction to a decimal, use the Fraction to Decimal Calculator. To compare how a number has changed, try the Percentage Change Calculator. To work with fractions after you convert them, use the Fraction Calculator.

Decimal to fraction calculator FAQs

How do I convert a decimal to a fraction?

Write the digits after the point over 1 followed by that many zeros, then simplify. For 0.375, that is 375/1000, which simplifies to 3/8.

How do I convert a decimal above 1 to a fraction?

Treat all the digits as the top of the fraction. For 2.75, write 275/100 and simplify to 11/4, which is the mixed number 2 3/4.

How do I convert a repeating decimal to a fraction?

Put the repeating digits over as many 9s as there are digits when the block starts right after the point. For 0.(18), that is 18/99 = 2/11. If some digits do not repeat, use the subtraction method shown above.

Why does 0.3333 not give exactly 1/3?

0.3333 is a rounded value that ends, so it equals 3333/10000 exactly. The fraction 1/3 is 0.3333… repeating forever. The closest simple fraction row shows the match.

Is 0.999… equal to 1?

Yes. Let x = 0.999…, then 10x = 9.999…, so 9x = 9 and x = 1. They are two ways of writing the same number.

How do I turn a percentage into a fraction?

Divide the percentage by 100 to get a decimal, then convert it. For 12%, the decimal is 0.12, which is 12/100 = 3/25.

Need another calculator?

Browse all calculators
Scroll to Top