Decimal to Fraction Calculator

Convert a decimal to a fraction in simplest form and as a mixed number, including repeating decimals like 0.1(6), or a fraction to a decimal.

Reviewed · How we build and check our calculators

Your details

Convert

Put repeating digits in brackets: 0.(3) is 0.333… and 0.1(6) is 0.1666…

2.375 as a fraction

19/8

In simplest form

Mixed number
2 3/8
Before simplifying
2375/1000
Divided top and bottom by
125
Percent
237.5%
Decimal value
2.375

2.375 has 3 decimal places, so it starts as a fraction over 1,000.

How the decimal to fraction calculator works

Turn a decimal into a fraction in simplest form and as a mixed number, including repeating decimals such as 0.(3) or 0.1(6). It also works the other way, showing which digits of a fraction's decimal repeat.

Formula

Terminating: x = digits ÷ 10ⁿ for n decimal places, then simplify. Repeating, with n fixed and k repeating digits: x = (number without the brackets − number up to the brackets) ÷ (10ⁿ⁺ᵏ − 10ⁿ).

  1. 1

    Write the decimal over a power of ten

    2.375 has 3 decimal places, so it is 2375/1000.

  2. 2

    Divide by the greatest common divisor

    The largest number dividing both 2375 and 1000 is 125: 2375 ÷ 125 = 19 and 1000 ÷ 125 = 8, giving 19/8.

  3. 3

    Write it as a mixed number

    8 goes into 19 twice with 3 left over, so 19/8 = 2 3/8, which is 237.5%.

  4. 4

    Repeating decimals

    For 0.1(6): 100x = 16.66… and 10x = 1.66…, so 90x = 15 and x = 15/90 = 1/6.

Worked example

The calculator opens with these values

Convert
Decimal to fraction
Decimal
2.375

2.375 as a fraction

19/8

Common decimals and their fractions

Eighths come up in measurements and prices, and thirds and sixths in recipes and time. The last three rows are repeating decimals, typed with the repeating digits in brackets.

Common decimals as fractions
DecimalFraction
0.11/10
0.1251/8
0.21/5
0.251/4
0.3753/8
0.51/2
0.6255/8
0.753/4
0.8757/8
0.(3)1/3
0.(6)2/3
0.1(6)1/6

Inch fractions in decimals and millimeters

Tape measures, drill bits and wrenches in the US are marked in fractions of an inch down to 1/16. Every one of these fractions ends as a decimal, because its denominator is a power of 2. One inch is exactly 25.4 mm.

Fractions of an inch as decimals and millimeters
FractionDecimal inchesMillimeters
1/16 in0.0625 in1.5875 mm
1/8 in0.125 in3.175 mm
3/16 in0.1875 in4.7625 mm
1/4 in0.25 in6.35 mm
5/16 in0.3125 in7.9375 mm
3/8 in0.375 in9.525 mm
7/16 in0.4375 in11.1125 mm
1/2 in0.5 in12.7 mm
5/8 in0.625 in15.875 mm
3/4 in0.75 in19.05 mm
7/8 in0.875 in22.225 mm

Getting the fraction you meant

The calculator converts exactly what you type, so a rounded decimal gives a fraction with a large denominator.

  • 0.33 is exactly 33/100. If you mean one third, type 0.(3) to get 1/3.
  • A long calculator result such as 0.142857 is probably a repeating decimal: type 0.(142857) to get 1/7.
  • To round a measurement to the nearest 1/16 in, multiply the decimal by 16 and round: 0.3 in × 16 = 4.8, so use 5/16 in.
  • For a value over 1, the mixed number is usually the easier one to read: 2.375 in is 2 3/8 in.

Common questions

How do I type a repeating decimal?

Put the repeating digits in brackets. 0.333… is 0.(3), 0.1666… is 0.1(6) and 0.142857142857… is 0.(142857).

Is 0.(9) really equal to 1?

Yes. By the same method, x = 0.999… gives 10x − x = 9, so x = 1. The calculator shows 0.(9) as 1.

Why do some fractions give decimals that never end?

A fraction in lowest terms has an ending decimal only when its denominator has no prime factors other than 2 and 5, because only those divide a power of ten. 3/8 ends (0.375), but 5/12 repeats (0.41(6)) because 12 has the factor 3.

What is a mixed number?

A whole number with a proper fraction, such as 2 3/8 for 19/8. It is the same value written another way.

Ratio Calculator

Simplify ratios, solve proportions and split a total in a given ratio

Add this calculator to your website

Free for blogs, schools and businesses. Paste this code into your page; the calculator works inside it, with no ads and no tracking. Please keep the credit line.