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
Write the decimal over a power of ten
2.375 has 3 decimal places, so it is 2375/1000.
- 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
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
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.
| Decimal | Fraction |
|---|---|
| 0.1 | 1/10 |
| 0.125 | 1/8 |
| 0.2 | 1/5 |
| 0.25 | 1/4 |
| 0.375 | 3/8 |
| 0.5 | 1/2 |
| 0.625 | 5/8 |
| 0.75 | 3/4 |
| 0.875 | 7/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.
| Fraction | Decimal inches | Millimeters |
|---|---|---|
| 1/16 in | 0.0625 in | 1.5875 mm |
| 1/8 in | 0.125 in | 3.175 mm |
| 3/16 in | 0.1875 in | 4.7625 mm |
| 1/4 in | 0.25 in | 6.35 mm |
| 5/16 in | 0.3125 in | 7.9375 mm |
| 3/8 in | 0.375 in | 9.525 mm |
| 7/16 in | 0.4375 in | 11.1125 mm |
| 1/2 in | 0.5 in | 12.7 mm |
| 5/8 in | 0.625 in | 15.875 mm |
| 3/4 in | 0.75 in | 19.05 mm |
| 7/8 in | 0.875 in | 22.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.
Related calculators
Fraction Calculator
Add, subtract, multiply, and divide fractions
Percentage Calculator
Calculate percentages, increases, and decreases
GCD & LCM Calculator
Calculate greatest common divisor and least common multiple
Ratio Calculator
Simplify ratios, solve proportions and split a total in a given ratio