Skip to main content
ponderloop

Decimal to Fraction Converter

To turn a decimal into a fraction, write the digits over a power of 10 and divide the top and bottom by their greatest common divisor: 0.375 = 375/1000 = 3/8. A repeating decimal works too, with the repeating digits in parentheses: 0.(3) = 1/3 and 0.1(6) = 1/6. For a tape measure, round the decimal to the nearest mark instead: 0.7 inch is 11/16" to the nearest 1/16 inch (rounding error −0.0125 in, −0.3175 mm), 11/16" to the nearest 1/32, and 0.99 inch rounds to 1". Everything is exact, and the steps are shown.

Updated Runs in your browser: nothing you enter is uploadedHow this tool works

Type a decimal like 0.375, a repeating decimal with the repeating digits in parentheses (0.(3), 0.1(6)) or 0.333..., or a fraction like 3/16 to get its decimal.

Need to add or subtract fractions? Use the fraction calculator, or the feet and inches calculator for whole lengths.

0.375 = 3/8

3/8

Exact, in lowest terms.

Fraction
3/8
Decimal
0.375
Percent
37.5%

The working, step by step

  1. Count the digits after the point: 0.375 has 3, so write it over 10^3 = 1000: 0.375 = 375/1000.
  2. Simplify: GCD(375, 1000) = 125. Divide the top and bottom by 125: 375 ÷ 125 = 3 and 1000 ÷ 125 = 8, so 375/1000 = 3/8.

Fractions of an inch with decimal and millimetre equivalents

Every mark on a tape measure down to 1/64 inch, in lowest terms. Decimals are exact; millimetres use 1 inch = 25.4 mm exactly.
Fraction of an inchDecimal inchesMillimetres
1/640.0156250.396875
1/320.031250.79375
3/640.0468751.190625
1/160.06251.5875
5/640.0781251.984375
3/320.093752.38125
7/640.1093752.778125
1/80.1253.175
9/640.1406253.571875
5/320.156253.96875
11/640.1718754.365625
3/160.18754.7625
13/640.2031255.159375
7/320.218755.55625
15/640.2343755.953125
1/40.256.35
17/640.2656256.746875
9/320.281257.14375
19/640.2968757.540625
5/160.31257.9375
21/640.3281258.334375
11/320.343758.73125
23/640.3593759.128125
3/80.3759.525
25/640.3906259.921875
13/320.4062510.31875
27/640.42187510.715625
7/160.437511.1125
29/640.45312511.509375
15/320.4687511.90625
31/640.48437512.303125
1/20.512.7
33/640.51562513.096875
17/320.5312513.49375
35/640.54687513.890625
9/160.562514.2875
37/640.57812514.684375
19/320.5937515.08125
39/640.60937515.478125
5/80.62515.875
41/640.64062516.271875
21/320.6562516.66875
43/640.67187517.065625
11/160.687517.4625
45/640.70312517.859375
23/320.7187518.25625
47/640.73437518.653125
3/40.7519.05
49/640.76562519.446875
25/320.7812519.84375
51/640.79687520.240625
13/160.812520.6375
53/640.82812521.034375
27/320.8437521.43125
55/640.85937521.828125
7/80.87522.225
57/640.89062522.621875
29/320.9062523.01875
59/640.92187523.415625
15/160.937523.8125
61/640.95312524.209375
31/320.9687524.60625
63/640.98437525.003125
1125.4

Decimal inches rounded to the nearest tape mark

The nearest 1/16, 1/32 and 1/64 inch for some common decimals, and how far the 1/16 inch mark is from the exact length.
Decimal inchesNearest 1/16Nearest 1/32Nearest 1/64Error at 1/16
0.11/8"3/32"3/32"+0.025 in, +0.635 mm
0.35/16"5/16"19/64"+0.0125 in, +0.3175 mm
0.711/16"11/16"45/64"−0.0125 in, −0.3175 mm
0.991"1"63/64"+0.01 in, +0.254 mm
1.21 3/16"1 3/16"1 13/64"−0.0125 in, −0.3175 mm
2.82 13/16"2 13/16"2 51/64"+0.0125 in, +0.3175 mm
5.43755 7/16"5 7/16"5 7/16"None (exact)
7.627 5/8"7 5/8"7 5/8"+0.005 in, +0.127 mm

Common decimals as fractions

Each fraction is in lowest terms. The digits in parentheses repeat forever.
DecimalFractionMixed number
0.51/21/2
0.251/41/4
0.753/43/4
0.1251/81/8
0.3753/83/8
0.21/51/5
0.42/52/5
0.63/53/5
0.84/54/5
0.051/201/20
0.(3)1/31/3
0.(6)2/32/3
0.1(6)1/61/6
0.8(3)5/65/6
0.(142857)1/71/7
1.53/21 1/2
2.37519/82 3/8

How to convert a decimal to a fraction

  1. Count the digits after the decimal point. 0.375 has three, so the denominator is 10 to the power 3, which is 1000. The numerator is the digits without the point: 375.
  2. Write the digits over the power of 10. 0.375 = 375/1000. A whole-number part stays: 2.375 = 2375/1000.
  3. Divide the top and bottom by their GCD. The greatest common divisor of 375 and 1000 is 125, so 375/1000 = 3/8. 2.375 = 2 3/8, or 19/8 as an improper fraction.
  4. For a repeating decimal, subtract a shifted copy. With x = 0.(3), 10x = 3.(3), and subtracting gives 9x = 3, so x = 1/3. Type the repeating digits in parentheses, or end with three dots: 0.666... = 2/3.
  5. For a tape measure, round to the nearest mark. Multiply the decimal inches by the number of marks per inch and round to a whole number: 0.7 × 16 = 11.2, which rounds to 11, so 11/16 inch. The rounding error (rounded minus exact) is −0.0125 in, −0.3175 mm.

Frequently asked questions

How do you convert a decimal to a fraction?
Write the digits after the point over 1 followed by as many zeros, then simplify by dividing the top and bottom by their greatest common divisor. 0.375 = 375/1000, and the GCD of 375 and 1000 is 125, so it is 3/8. For 2.375 the answer is 2 3/8, which is 19/8 as an improper fraction.
How do you convert a repeating decimal to a fraction?
Subtract a shifted copy of the number from itself so the repeating part cancels. With x = 0.(3), 10x − x = 3, so x = 3/9 = 1/3. With x = 0.1(6), 100x − 10x = 15, so x = 15/90 = 1/6. Type the repeating digits in parentheses, as in 0.(3) or 0.1(6).
What does 0.333... mean, and does the converter accept it?
Three dots after a decimal mean the last digit repeats forever, so 0.333... is 0.(3) = 1/3 and 0.666... is 2/3. The converter reads three dots (or the … character) that way. For a longer repeating block such as 0.142857142857..., put the block in parentheses: 0.(142857) = 1/7.
How do I convert a decimal inch to a fraction on a tape measure?
Choose tape measure mode and the finest mark your tape or project needs. A tape shows halves, quarters, eighths, sixteenths and sometimes thirty-seconds, so 0.7 inch is 11/16" to the nearest 1/16 inch, 11/16" to the nearest 1/32 inch and 45/64" to the nearest 1/64 inch. The rounding error is shown in inches and millimetres, so you can decide whether it matters for the cut.
How much error does rounding to 1/16 inch cause?
At most half a mark: 1/32 inch, or about 0.79 mm, for a 1/16 inch tape. The converter shows the actual error for your number, for example 0.7 inch is 11/16" (−0.0125 in, −0.3175 mm). Rounding to 1/32 inch halves the worst case to 1/64 inch, about 0.4 mm.
Why does 0.99 inch round to 1 inch?
Because 0.99 is closer to 1 than to 15/16, which is 0.9375. At 1/16 inch the nearest mark is 1", only 0.01 inch away. A decimal that lands on a whole number of marks needs no fraction at all, and a result of 12 inches or more is also shown in feet and inches.
Can I enter feet instead of inches?
Yes. In tape measure mode choose “Feet” for the unit and the number is multiplied by 12 first: 5.4 feet is 64.8 inches, which rounds to 64 13/16" at 1/16 inch, or 5' 4 13/16" in feet and inches.
How do I convert a fraction to a decimal?
Type the fraction and the converter divides the top by the bottom. 5/16 = 5 ÷ 16 = 0.3125, and in millimetres a 5/16 inch mark is 7.9375 mm. Fractions such as 1/3 do not end, and the repeating digits are shown in parentheses: 0.(3).
Does it handle negative numbers and mixed numbers?
Yes. A minus sign is carried through: −0.75 = −3/4. A mixed number such as 2 3/8 is read exactly and shown as the decimal 2.375.
Is the conversion exact, or does it use floating point?
It is exact. Digits are kept as whole numbers of any size (up to 30 digits), never as floating-point values, so a decimal such as 0.30000000000000004 gives its true fraction instead of 3/10. Rounding happens only in tape measure mode, once, and the error is shown.

How it works

The number you type is read as an exact fraction: a decimal is its digits over a power of 10 (0.375 = 375/1000), and a repeating decimal such as 0.1(6) is found by subtracting a copy shifted past the repeating block, (100x − 10x) / (100 − 10) = 15/90. The result is reduced by dividing by the greatest common divisor, found with Euclid’s algorithm, and written as a fraction and a mixed number. Three dots after a decimal mean its last digit repeats. A fraction or mixed number typed in is converted to a decimal by long division, and the digits that repeat are shown in parentheses. In tape measure mode the length in inches (feet are multiplied by 12) is scaled by the number of marks per inch and rounded to the nearest whole mark, with a tie rounded away from zero; the error is the rounded length minus the exact one. Millimetres use the definition 1 inch = 25.4 mm exactly. Every figure is computed with whole-number arithmetic, so nothing is rounded except the tape measure result. It all runs in your browser and nothing you type is sent anywhere.

Sources

All toolsHome & DIY calculators