Calcamaze

Decimal to Fraction Calculator

Convert a decimal, including repeating decimals, to a simplified fraction and mixed number, with the steps and the nearest inch fractions.

Put repeating digits in brackets, 0.1(6), or choose how many digits repeat below.

Result

0.375 as a fraction
3/8
As a mixed number
3/8
Steps
3 decimal places, so write 0.375 as 375/1,000 and divide top and bottom by their greatest common factor.
Decimal places
3
Nearest 16th (inch fractions)
3/8
Off by 0
Nearest fractions for rulers and tape measures
Denominator up toFractionDecimalDifference
8ths3/80.3750
16ths3/80.3750
32ths3/80.3750
64ths3/80.3750

Turn any decimal into a fraction in lowest terms. Type the decimal — a terminating one like 0.375, a mixed value like 2.5, or a repeating one written as 0.(3), 0.1(6) or 0.333… — and the calculator gives the simplified fraction, the mixed number and the working. It also shows the nearest fraction with a denominator of 8, 16, 32 or 64, which is what you need to read a decimal measurement off a tape measure.

Fractions are often more useful than decimals in practice: tape measures, drill bits and recipes all work in halves, quarters and eighths. The calculator gives the exact fraction in lowest terms, and handles repeating decimals such as 0.333… correctly.

How do you turn a decimal into a fraction?

A decimal is a fraction whose denominator is a power of ten — the place values are tenths, hundredths, thousandths and so on. So a decimal that ends can be written over 10, 100 or 1,000 straight away: 0.375 has three decimal places and is 375/1000. All that is left is to simplify, dividing the top and bottom by their greatest common factor (here 125) to reach 3/8. If there is a whole number in front, as in 2.125, it either stays in front as a mixed number, 2 1/8, or is folded in to make an improper fraction, 17/8.

Repeating decimals such as 0.333… are fractions too, but with denominators like 3, 9 or 99 rather than powers of ten. The trick is to call the number x, multiply by 10 for each repeating digit, and subtract: 10x − x = 3.333… − 0.333… = 3, so 9x = 3 and x = 1/3. Decimals that neither end nor repeat, like π or √2, are irrational and have no exact fraction — only approximations such as 22/7. The nearest-fraction table is for exactly that kind of job: turning a decimal measurement into the closest mark on a ruler divided into 16ths or 32nds.

How to use the decimal to fraction calculator

  1. Type the decimal.
  2. If digits repeat forever, write them in brackets or pick how many repeat.
  3. Read the fraction, mixed number and the nearest tape-measure fraction.

Formula

0.abc = abc ÷ 1000, then divide top and bottom by their greatest common factor

A terminating decimal with k decimal places is the digits over 10ᵏ: 0.375 = 375/1000. Dividing both by their greatest common factor, 125, gives 3/8.

For a repeating decimal, call it x, multiply by a power of 10 that shifts one full repeating block, subtract the original, and the repeating tails cancel: 10x − x = 3.333… − 0.333… = 3, so 9x = 3 and x = 1/3.

Worked examples

A terminating decimal

Decimal
0.375
Does it repeat?
No — it ends
0.375 as a fraction
3/8
As a mixed number
3/8
Steps
3 decimal places, so write 0.375 as 375/1,000 and divide top and bottom by their greatest common factor.

Three decimal places, so 0.375 = 375/1000. The greatest common factor of 375 and 1,000 is 125, and 375 ÷ 125 = 3, 1,000 ÷ 125 = 8: the fraction is 3/8.

A mixed number

Decimal
2.125
Does it repeat?
No — it ends
2.125 as a fraction
17/8
As a mixed number
2 1/8
Steps
3 decimal places, so write 2.125 as 2,125/1,000 and divide top and bottom by their greatest common factor.

2.125 = 2125/1000 = 17/8 as an improper fraction, or 2 1/8 as a mixed number — the 2 stays, and 0.125 = 1/8.

A repeating decimal

Decimal
0.1(6)
Does it repeat?
No — it ends
0.1(6) as a fraction
1/6
As a mixed number
1/6
Steps
Let x = the decimal. Multiply by 10^2 and by 10^1 and subtract: (10^2 − 10^1)x = 16 − 1, so x = 15/90, then simplify.

Let x = 0.1666…. Then 100x = 16.666… and 10x = 1.666…; subtracting, 90x = 15, so x = 15/90 = 1/6.

A decimal inch on a tape measure

Decimal
0.6
Does it repeat?
No — it ends
0.6 as a fraction
3/5
As a mixed number
3/5
Steps
1 decimal place, so write 0.6 as 6/10 and divide top and bottom by their greatest common factor.

0.6 = 3/5 exactly, but tape measures are marked in 16ths: the nearest is 5/8 (0.625), 0.025 in off.

Common decimals as fractions

DecimalFractionDecimalFraction
0.51/20.(3)1/3
0.251/40.(6)2/3
0.753/40.1(6)1/6
0.1251/80.8(3)5/6
0.21/50.(142857)1/7
0.06251/160.(1)1/9
0.3753/80.(09)1/11

Why repeating decimals always make fractions

Every repeating decimal is a fraction in disguise. For 0.272727…, multiply by 100 to shift one repeat: 100x = 27.2727… Subtracting x leaves 99x = 27, so x = 27 ÷ 99 = 3/11. The same trick, multiplying by 10 for each repeating digit, works for any repeating decimal.

Common mistakes

  • Writing 0.375 as 375/100. The denominator needs one zero per decimal place: three places means 1,000.
  • Forgetting to simplify. 50/100 is correct but 1/2 is the answer teachers and tape measures want.
  • Treating 0.333 as 1/3. 0.333 is exactly 333/1000; only the endlessly repeating 0.333… equals 1/3.
  • Looking for an exact fraction for π or √2. They are irrational, so any fraction is an approximation.
  • Entering a rounded repeating decimal such as 0.67 and expecting 2/3. Use the repeating option for an exact result.

Frequently asked questions

What is 0.375 as a fraction?

3/8. It has three decimal places, so it is 375/1000; dividing top and bottom by 125 gives 3/8.

How do I convert a repeating decimal to a fraction?

Write the repeating digits in brackets, e.g. 0.(6) for 0.666… or 0.1(6) for 0.1666…, or choose how many of the final digits repeat. 0.(6) = 2/3 and 0.1(6) = 1/6.

How do I read 0.6 inches on a tape measure?

The nearest 16th is 10/16 = 5/8 (0.625), about 0.025 in off. For finer work, the nearest 32nd is 19/32 = 0.59375.

Is 0.333 the same as 1/3?

No. 0.333 stops after three digits and is exactly 333/1,000. Only the repeating decimal 0.333… equals 1/3, so choose the repeating option to get it.

Sources

  1. Prealgebra 2e, 5.3 Decimals and Fractions, OpenStax, Rice University
  2. Repeating Decimal, Wolfram MathWorld

Last updated · Calculations checked by automated tests· Editorial policy