FLXCode Decimal to Fraction Calculator

FLXCode apps

Appearance

Decimal to Fraction Calculator

Type a decimal and get the simplified fraction with the steps. It also handles repeating decimals, the reverse direction, and tape-measure fractions.

Decimal to fraction Example

For repeating decimals write 0.(3), 0.1(6) or 0.333...

as a fraction
3/8

0.375 = 3/8

  • 0.375 has 3 digits after the point, so write it over 1000: 375/1000.
  • Greatest common divisor of 375 and 1000 is 125. Divide both by it: 3/8.
  • As a percent: 37.5%.

Fraction to decimal Example

as a decimal
0.4375

7/16 = 0.4375

  • Divide the top by the bottom: 7 ÷ 16 = 0, remainder 7, and carry on with decimals.
  • It stops after 4 decimal places, so this is exact.
  • As a percent: 43.75%.

Nearest tape-measure fraction Example

For inches on a tape measure or ruler. Pick how fine the marks are.

in, to the 1/
7 5/16

7.3 in is about 7 5/16 in (nearest 1/16).

  • 7.3 × 16 = 116.8. Round to the nearest whole number: 117.
  • 117/16 has no common factor left.
  • As a mixed number: 7 5/16.
  • Off by 0.0125 in (0.32 mm) above your number.
  • As a decimal: 7.3125 in.

No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it.

Problem or idea? Email us

How the conversion works

A terminating decimal is already a fraction with a power of ten at the bottom.

  1. Count the digits after the point. Call the count n.
  2. Put the digits, without the point, over 1 followed by n zeros.
  3. Divide the top and bottom by their greatest common divisor.

For repeating decimals, use the shift-and-subtract trick shown in the steps. 0.1(6) has one digit before the repeat and a block of one digit. 100x − 10x = 16 − 1, so 90x = 15 and x = 1/6.

Common decimals

DecimalFraction
0.51/2
0.251/4
0.753/4
0.1251/8
0.3753/8
0.21/5
0.63/5
2.7511/4
0.06251/16
0.(3)1/3
0.1(6)1/6
0.142857142857...1/7

Sixteenths of an inch

MarkDecimal inchesMillimeters
1/160.06251.59
1/80.1253.17
3/160.18754.76
1/40.256.35
5/160.31257.94
3/80.3759.52
7/160.437511.11
1/20.512.70
9/160.562514.29
5/80.62515.88
11/160.687517.46
3/40.7519.05
13/160.812520.64
7/80.87522.22
15/160.937523.81
1125.40

Rounding to a tape measure mark

Decimal inchesMark sizeNearest mark
3.41/323 13/32
0.71/1611/16
12.91/1612 7/8
5.551/85 1/2
0.31/6419/64

Round "next one up" for a hole or a gap that must be at least that big, and "next one down" for a part that must fit inside.

Fractions to decimals

FractionDecimal
3/160.1875
5/80.625
1/30.333333
7/120.583333
1 3/41.75

A fraction in lowest terms gives a stopping decimal only if its bottom has no prime factors except 2 and 5. That is why 3/16 stops and 1/3 repeats.

Numbers this uses

  • 1 inch = 25.4 mm exactly (the international inch, agreed in 1959).
  • Mark sizes: 1/2, 1/4, 1/8, 1/16, 1/32, 1/64 and 1/128 inch, the binary marks on US rulers.
  • Ties in nearest rounding go up, so 1/32 in at 1/16 marks shows 1/16.
  • Size: up to 40 digits. Repeating decimals show up to 30 digits of the expansion.

Going the other way for a whole range of fractions: see the fraction to decimal chart, with percent and millimeters.

Nothing you type is uploaded. We count events without cookies (details).

FAQ

How do I convert a decimal to a fraction?

Write the digits after the point over 1 followed by that many zeros, then simplify. 0.375 has three digits, so it is 375/1000. Divide both by 125 and you get 3/8.

How do I convert a repeating decimal like 0.333... to a fraction?

Write it as 0.333... or 0.(3) and the tool does the algebra. Multiply by 10 to shift one repeat, subtract the original, and the repeating tail cancels: 10x − x = 3, so x = 3/9 = 1/3. The steps appear under the result.

Why does 0.333 give 333/1000 and not 1/3?

Because 0.333 stops. It is exactly 333 thousandths. Only 0.(3) or 0.333... means the 3s go on forever. Type the bracket or the three dots to say so.

How do I find the nearest 1/16 inch for a tape measure?

Multiply the decimal by 16, round to the nearest whole number, and put that over 16. 7.3 × 16 = 116.8, which rounds to 117, and 117/16 is 7 5/16. The third row does this, and also shows how far off the rounded mark is.

Which fraction sizes does a tape measure use?

US tapes mark halves, quarters, eighths and sixteenths. Better ones add 32nds and some rulers have 64ths. Pick the finest mark you can really cut or read. Rounding to 1/64 when you can only cut to 1/16 gives numbers you can't use.

How many millimeters is a sixteenth of an inch?

An inch is exactly 25.4 mm, so 1/16 in is 1.5875 mm, about 1.59 mm. The table on this page lists all sixteenths with their millimeter values.

Can it turn a fraction into a decimal?

Yes, the second row. It divides the top by the bottom and tells you if the decimal stops (3/16 = 0.1875) or repeats (1/3 = 0.(3)). Repeats are rounded to 6 places for the big number.

What about a decimal with a lot of digits, like pi?

A fraction with the same digits would be huge and still not equal to pi, because pi never ends or repeats. Round the decimal first, for example 3.1416 = 3927/1250, or use 22/7 for a rough value. The tool accepts up to 40 digits.

More from FLXCode

Share Decimal to Fraction Calculator