Article

Decimal to Fraction: How to Convert a Decimal to a Fraction

To convert a decimal to a fraction, write the digits after the decimal point as the numerator, put a 1 followed by as many zeros as there are decimal places in the denominator, and then reduce the fraction by the GCF. This article shows the method step by step, a chart of common values, mixed numbers, repeating decimals and four worked examples. You can check your own number in the decimal to fraction calculator. The number 0.375 is the fraction 3/8.

Last updated:

Turn a decimal into a fraction in the decimal to fraction calculator. Do arithmetic with fractions in the fraction calculator.

How to convert a decimal to a fraction step by step

A decimal has a power of ten in its denominator, so converting it to a common fraction comes down to writing it in place-value form and reducing it.

1. Count the decimal places: k.
2. The numerator is the number without the decimal point, the denominator is 10 to the power k.
3. Reduce the fraction by the GCF of the numerator and the denominator.
example: 0.375 = 375/1000, GCF = 125, result 3/8

DecimalPlace-value formReduced fraction
0.11/101/10
0.125125/10001/8
0.22/101/5
0.2525/1001/4
0.33/103/10
0.375375/10003/8
0.44/102/5
0.55/101/2
0.66/103/5
0.625625/10005/8
0.7575/1003/4
0.88/104/5
0.875875/10007/8

You reduce a fraction by dividing the numerator and the denominator by their greatest common factor. You can find that factor in the GCD calculator.

The decimal 0.375 as a part of a unit segmentTwo bars of the same length, divided into 8 equal parts. The upper bar shows 0.375 as 375 thousandths, and the lower bar shows the same fraction reduced to 3 eighths.0.375375/10003/8reduced
The number 0.375 is 375/1000 of a unit segment. Reduced by the GCF of 125 it is 3/8, which is three of eight equal parts.

Try it with an example

Example: the number 0.375. The value is already stored in the link to the calculator.

Decimal number
0.375
Result
3/8, from the place-value form 375/1000

Open the calculator with these numbers

The calculator reads the values from the page address and shows the result right away. You can change them freely.

How the calculator works

The calculator turns a decimal into a reduced fraction with the continued-fraction method, with a denominator no larger than 10,000, and then reduces the result by the GCF. For a number with a terminating expansion it also shows the place-value form, for example 375/1000, and the GCF used to reduce it. For a result larger than 1 it gives a mixed number. It does not recognize a repeating decimal from its expansion, so it gives the best rational approximation, and the absolute error is shown in the results.

Numbers larger than 1 and mixed numbers

When a decimal is larger than 1 you can write it as an improper fraction or as a mixed number. The number 2.4 is 24/10, which reduces to 12/5, or 2 2/5. The number 1.5 is 3/2, or 1 1/2.

The whole part stays in front of the fraction and you convert the part after the point as usual. For 2.4 the part 0.4 is 2/5, so 2.4 = 2 + 2/5. You can do arithmetic with such numbers in the fraction calculator, and find a common denominator with the LCM calculator.

Repeating decimals and approximations

A repeating decimal such as 0.333… has an endless expansion. You convert it with a subtraction: for x = 0.(3) we have 10x − x = 3, so x = 3/9 = 1/3. For a two-digit repeat you multiply by 100, for example 0.(27) = 27/99 = 3/11.

The calculator does not know repeating notation, only the number you enter with a given number of digits. For 0.333333 it returns 1/3, for 0.666667 it returns 2/3, and for 0.3333 it returns 3333/10000, because that number has a finite expansion. For π entered as 3.14159 it gives the approximation 9563/3044, not an exact value, because π is not a rational number.

Fraction to decimal and to percent

In the other direction just divide the numerator by the denominator: 3/8 = 3 ÷ 8 = 0.375. To get a percent multiply the result by 100, so 3/8 is 37.5%. Work out percentages in the percentage calculator, and the article How to Calculate a Percentage of a Number gives more examples.

For common fractions use the fraction calculator. Convert sizes in fractions of an inch in the mm to inches converter.

Four worked examples

You can repeat each example in the decimal to fraction calculator.

1. 0.75 as a fraction

Two decimal places.

  1. Write 0.75 = 75/100.
  2. GCF(75, 100) = 25.
  3. Divide the numerator and the denominator by 25.
  4. The result is 3/4.

2. 0.375 as a fraction

Three decimal places.

  1. Write 0.375 = 375/1000.
  2. GCF(375, 1000) = 125.
  3. Divide the numerator and the denominator by 125.
  4. The result is 3/8.

3. 2.4 as a mixed number

A number larger than 1.

  1. Write 2.4 = 24/10.
  2. GCF(24, 10) = 2, so 12/5.
  3. Take out the whole part: 12 ÷ 5 = 2 remainder 2.
  4. The result is 12/5, or 2 2/5.

4. 0.333333 as a fraction

An approximation of a repeating decimal.

  1. Enter 0.333333 in the calculator.
  2. The calculator looks for a fraction with a denominator up to 10,000.
  3. The result is 1/3.
  4. The exact 0.(3) also equals 1/3.

Common mistakes when converting a decimal to a fraction

  • Skipping the reduction — 75/100 is correct but not reduced. The final result is 3/4.
  • The wrong number of zeros in the denominator — the number of zeros equals the number of decimal places: 0.375 has three, so the denominator is 1000.
  • Ignoring the zeros at the start of the decimal part — 0.05 is 5/100, not 5/10.
  • Writing 0.25 as 2/5 — it is 25/100, which is 1/4.
  • Confusing a repeating decimal with a finite one — 0.3333 is 3333/10000, not 1/3.
  • Treating π as 3.14 — 3.14 is 157/50, and π is an irrational number.
  • Mixing a comma and a period as the decimal separator — the calculator accepts both, but keep one form in your text.

Frequently asked questions

How do you convert a decimal to a fraction?

Write the digits after the point as the numerator, put 10, 100 or 1000 in the denominator depending on the number of places, then reduce. For 0.375 the result is 3/8.

How do you write 0.75 as a fraction?

The number 0.75 is 75/100, and after reducing by 25 you get 3/4.

How do you convert a repeating decimal to a fraction?

For 0.(3) compute 10x − x = 3, so x = 1/3. For 0.(27) it is 27/99, which is 3/11.

How do you convert 2.4 to a mixed number?

The number 2.4 is 24/10, which is 12/5, or 2 2/5 as a mixed number.

How do you convert a fraction to a decimal?

Divide the numerator by the denominator. For 3/8 the result is 0.375.

What is 0.125 as a fraction?

The number 0.125 is 125/1000, which is 1/8.

Why does the calculator give 1/3 for 0.333333?

The calculator looks for the best rational approximation with a denominator up to 10,000. The number 0.333333 is very close to 1/3, so you get that result, although the exact value of 0.333333 is 333333/1000000.

Is the result of the calculator always exact?

For numbers with a terminating decimal expansion yes, as long as the reduced denominator does not exceed 10,000. For long expansions such as π the calculator gives an approximation and shows the absolute error.

Convert your own decimal to a fraction

Enter a number in the decimal to fraction calculator and read the reduced fraction, the place-value form, the GCF and the absolute error.

Do arithmetic with fractions in the fraction calculator and find a common factor in the GCD calculator.