🔢 Decimal to Fraction Calculator

Convert any decimal to a fraction in simplest form with steps — including repeating decimals, mixed numbers and the nearest 1/16 or 1/64 inch.

✓ Free✓ No Signup Required✓ Browser-Based

For a repeating decimal, put the repeating digits in parentheses: 0.(3) is 0.333…, 0.1(6) is 0.1666…, 2.(142857) repeats 142857.

0.625 as a fraction in simplest form
5/8

Steps

  1. Write the digits over a power of ten — 3 decimal places means 103: 625 / 1,000.
  2. The greatest common divisor of 625 and 1,000 is 125. Divide both by it: 5 / 8.

Nearest simple fraction

5/8 = 0.625 (exact)

Nearest inch fractions

PrecisionFractionError
1/2"1/2"−0.1250"
1/4"3/4"+0.1250"
1/8"5/8"exact
1/16"5/8"exact
1/32"5/8"exact
1/64"5/8"exact

What Decimal to Fraction Calculator Does

This decimal to fraction calculator turns any decimal into a fraction in simplest form and shows the steps — the power of ten, the greatest common divisor, and the mixed number when the value is greater than one. It works just as well for repeating decimals: type 0.(3) for 0.333… or 0.1(6) for 0.1666… and you get the exact fraction, 1/3 or 1/6.

Two extra results cover everyday needs that a plain conversion misses. The inch table rounds the decimal to the nearest 1/2, 1/4, 1/8, 1/16, 1/32 and 1/64 inch and shows the error, which is what you want when a drawing says 0.3125 and your tape measure says sixteenths. The nearest-simple-fraction result finds the closest fraction with a small denominator, so 3.14159 gives 355/113 rather than 314159/100000.

All arithmetic on the exact fraction uses whole-number integers of any length, so long decimals come out exactly rather than rounded.

How to Use Decimal to Fraction Calculator

  1. Type a decimal, or put the repeating digits in parentheses such as 0.(6)
  2. Read the fraction in simplest form and the mixed number
  3. Follow the steps to see the power of ten and the greatest common divisor
  4. Pick a largest denominator to get the nearest simple fraction
  5. Use the inch table for the nearest 1/16, 1/32 or 1/64 inch

Formula Used by Decimal to Fraction Calculator

Terminating decimal

x = digits ÷ 10ⁿ, then divide top and bottom by their greatest common divisor

n
Number of digits after the decimal point

Worked example

0.625

  1. Three decimal places: 625 / 1000
  2. GCD(625, 1000) = 125
  3. 625 ÷ 125 = 5 and 1000 ÷ 125 = 8

Result: 0.625 = 5/8

Repeating decimal

x = (all digits − non-repeating digits) ÷ (10ⁿ⁺ʳ − 10ⁿ)

n
Digits after the point that do not repeat
r
Length of the repeating block

Worked example

0.1(6) = 0.1666…

  1. n = 1, r = 1
  2. (16 − 1) ÷ (100 − 10) = 15/90
  3. GCD(15, 90) = 15

Result: 0.1666… = 1/6

Common Decimals as Fractions

DecimalFractionDecimalFraction
0.51/20.06251/16
0.251/40.18753/16
0.753/40.31255/16
0.1251/80.43757/16
0.3753/80.21/5
0.6255/80.42/5
0.8757/80.(3)1/3
0.11/100.(6)2/3
0.051/200.1(6)1/6
0.011/1000.(142857)1/7

How to Read Your Result

Rounded decimals are not repeating decimals

0.33 is exactly 33/100, not 1/3. If a value came from a calculator and was rounded, enter the repeating form, 0.(3), or use the nearest simple fraction with a small maximum denominator, which will find 1/3.

Choosing a denominator for measurements

Woodworking tape measures usually go to 1/16 inch, machinist rules to 1/32 or 1/64. Pick the finest mark you can actually read; the error column shows whether the nearest mark is close enough for the job.

Limitations & Accuracy Notes

  • The nearest-simple-fraction and inch results use double-precision arithmetic, accurate to about 15 significant digits; the exact fraction does not.
  • Scientific notation such as 1.5e-3 is not accepted; write it out as 0.0015.

Frequently Asked Questions

How do you convert a decimal to a fraction?
Write the digits after the point over 10, 100, 1000 and so on — one zero for each decimal place — then simplify. 0.625 has three decimal places, so it is 625/1000. The greatest common divisor of 625 and 1000 is 125, and dividing both by it gives 5/8.
How do I convert a repeating decimal to a fraction?
Type the repeating digits in parentheses: 0.(3) for 0.333…, 0.1(6) for 0.1666…. The calculator multiplies by powers of ten so the endless tails cancel. For 0.(3): 10x − x = 3.333… − 0.333… = 3, so x = 3/9 = 1/3.
What is 0.75 as a fraction?
0.75 = 75/100, and dividing top and bottom by 25 gives 3/4. Other common ones: 0.5 = 1/2, 0.25 = 1/4, 0.125 = 1/8, 0.2 = 1/5, 0.375 = 3/8 and 0.875 = 7/8.
How do I write a decimal greater than 1 as a mixed number?
Keep the whole number and convert only the decimal part. 1.875 is 1 + 0.875, and 0.875 = 7/8, so 1.875 = 1 7/8, or 15/8 as an improper fraction. The calculator shows both.
How do I convert a decimal to inches in fractions?
Multiply the decimal by the denominator of your tape measure’s smallest mark, round, and simplify. 0.3125 × 16 = 5, so 0.3125 inch is 5/16 inch. The inch table shows the nearest 1/2 through 1/64 inch and how far off each one is.
Why does 3.14159 give a strange fraction?
Its exact fraction is 314159/100000, which is correct but not useful. The “nearest simple fraction” finds the best fraction with a small denominator using continued fractions: with denominators up to 1000 it gives 355/113, which matches π to six decimal places.
Can a fraction be negative?
Yes. Enter the decimal with a minus sign, such as −2.4. The sign stays in front of the fraction: −2.4 = −12/5, or −2 2/5 as a mixed number.
By OnlineToolHubs Team • Updated September 2026