How to use
- Type or paste your decimals into the box, one per line, for example 0.75 and 1.75.
- Each line is converted as you type: 0.75 = 3/4, and 1.75 = 7/4 = 1 3/4.
- Press Copy to copy all the results, or Clear to start a new list.
Examples
| Input | Output |
|---|---|
0.625 | 0.625 = 5/8 |
3.2 | 3.2 = 16/5 = 3 1/5 |
0.6666666667 | 0.6666666667 = 2/3 |
About this tool
Turning a decimal into a fraction
Write the digits after the point over a power of ten, then reduce:
- Count the decimal places. 0.375 has three, so it is 375/1000.
- Find the greatest common divisor of top and bottom. For 375 and 1000 it is 125.
- Divide both by it: 375 ÷ 125 = 3 and 1000 ÷ 125 = 8, giving 3/8.
The tool does exactly this for any decimal with up to six places, so the answer is exact.
Improper fractions and mixed numbers
A value above 1 is shown both ways. 2.6 becomes 26/10, which reduces to 13/5, and as a mixed number that is 2 3/5: two wholes and three fifths. Negative values keep the sign in front, so −1.5 is −3/2 or −1 1/2.
Repeating decimals
A calculator display such as 0.3333333333 is a cut-off version of the endless 0.333…. Written over a power of ten it would give an ugly fraction, so for seven or more decimal places the tool searches for the simplest fraction that matches, using continued fractions with denominators up to one million. That is how 0.3333333333 comes back as 1/3, 0.6666666667 as 2/3 and 0.142857142857 as 1/7. Give at least seven digits of a repeating decimal for this to work; 0.333 on its own is treated as exactly 333/1000.
A long decimal that does not come from a simple fraction, such as 3.14159265, returns a close approximation rather than an exact match.
Where this helps
- Imperial measurements: tape measures and drill sets are marked in halves, quarters, eighths and sixteenths, so 0.375 inch is 3/8 inch and 0.0625 inch is 1/16 inch.
- Recipes: 0.75 cup is 3/4 cup.
- Homework: checking a hand calculation, a whole worksheet at a time.
A comma is also accepted as the decimal mark, so 0,125 converts to 1/8. Lines that are not numbers show a question mark.
Frequently asked questions
How do I convert a decimal to a fraction?
Put the digits after the decimal point over 10, 100, 1000 and so on, then divide top and bottom by their greatest common divisor. 0.625 = 625/1000 = 5/8.
What is 0.75 as a fraction?
0.75 = 75/100 = 3/4.
How do I convert a repeating decimal like 0.3333 to a fraction?
Enter at least seven digits, such as 0.3333333, and the tool finds the simple fraction it comes from, 1/3. With fewer digits it is treated as an exact terminating decimal.
What is a mixed number?
A whole number plus a proper fraction. 1.75 is the improper fraction 7/4, or the mixed number 1 3/4.