How to convert a fraction to a decimal
Divide the top number by the bottom number.
Decimal = top number ÷ bottom number
Worked examples
- Fraction: 3/4 = 3 ÷ 4 = 0.75, which is 75%.
- Mixed number: 2 1/2 = 2 + (1 ÷ 2) = 2.5.
- Repeating decimal: 1/3 = 0.333…, where the 3 goes on forever.
How to convert a decimal to a fraction
Write the digits over a power of 10, then simplify. For example, 0.375 is 375/1000, and dividing the top and bottom by 125 gives 3/8.
Common fractions as decimals
| Fraction | Decimal | Percent |
|---|---|---|
| 1/8 | 0.125 | 12.5% |
| 1/5 | 0.2 | 20% |
| 1/4 | 0.25 | 25% |
| 1/3 | 0.333… | 33.33% |
| 3/8 | 0.375 | 37.5% |
| 1/2 | 0.5 | 50% |
| 2/3 | 0.666… | 66.67% |
| 3/4 | 0.75 | 75% |
Why do some decimals repeat?
In lowest terms, a fraction’s decimal ends only if its bottom number has no prime factors other than 2 and 5. So 3/8 ends, because 8 is 2 × 2 × 2. But 1/3 and 1/7 repeat forever. The calculator tells you which digits repeat.
To work with percentages, try our fraction to percent converter.
How to use the fraction to decimal converter
- Pick the conversion direction. Fraction to decimal is selected when the page opens. Choose Decimal to fraction to go the other way.
- Enter the fraction. Type the top number and the bottom number. For a mixed number such as 3 2/7, put 3 in Whole number (optional), 2 in Top number and 7 in Bottom number.
- Press Convert. Your result opens on its own page, with the decimal in large type and the division written out underneath.
Below the answer you get the fraction in lowest terms, the decimal, the percent, the mixed number when the value is more than one whole, and the decimal pattern, which says whether the digits end or repeat.
Worked example: a repeating decimal
Enter 5 as the top number and 12 as the bottom number. The converter shows 5 ÷ 12 = 0.416667. That figure is rounded to 6 significant digits, because the real decimal never ends. The Decimal pattern row says Repeats: 6, so the exact value is 0.41666…, with the 4 and the 1 coming once and the 6 going on forever. As a percent, 5/12 is 41.6667%.
Long division shows why. 5 ÷ 12 gives the digits 4 and 1, and then the remainder is 8 every time. Once a remainder comes back, the same digit comes back with it, so the 6 repeats without end.
Worked example: a mixed number
For 3 2/7, the converter first turns the mixed number into one fraction: 3 × 7 + 2 = 23, so the division line reads 23 ÷ 7 = 3.2857. The table shows the fraction 23/7, the mixed number 3 2/7 and the percent 328.5714%. The pattern row says Repeats: 285714. Every fraction with 7 on the bottom repeats in a block of six digits.
Long blocks are cut short on screen. 1/17 repeats in a block of 16 digits, so the pattern row shows the first 12, 058823529411, followed by an ellipsis.
Worked example: decimal to fraction
Choose Decimal to fraction and type 2.45. The answer is 49/20, with the line 2.45 = 49/20. The converter writes 2.45 as 245/100 and divides both numbers by 5. The table adds the mixed number 2 9/20, the percent 245% and the pattern Ends.
The converter treats what you type as exact. If you type 0.333, you get 333/1000, not 1/3, because 0.333 is a little less than one third. The decimal must be between 0.000001 and 1,000,000.
Which fractions end and which repeat
| Fraction | Decimal shown | Decimal pattern |
|---|---|---|
| 7/16 | 0.4375 | Ends |
| 3/20 | 0.15 | Ends |
| 1/6 | 0.166667 | Repeats: 6 |
| 1/9 | 0.111111 | Repeats: 1 |
| 1/11 | 0.0909091 | Repeats: 09 |
| 1/12 | 0.0833333 | Repeats: 3 |
| 1/13 | 0.0769231 | Repeats: 076923 |
Both 16 and 20 are built only from 2s and 5s, so their decimals end. The other bottom numbers include a 3, 7, 11 or 13, so their decimals repeat.
Turning a repeating decimal into a fraction by hand
The Decimal to fraction mode needs a decimal that ends. For a repeating one, you can do it on paper. Take 0.272727…, where 27 repeats. Call it x. The block is two digits long, so multiply by 100: 100x = 27.2727…. Subtract x from 100x and the repeating tails cancel, leaving 99x = 27. So x = 27/99, which simplifies to 3/11. Enter 3 and 11 in the converter to check: the pattern row shows Repeats: 27.
How the decimal is rounded
- Values of 1 or more show up to 4 decimal places, as in 3.2857.
- Values below 1 show 6 significant digits, so a small value such as 1/17 still shows real digits: 0.0588235.
- The percent row shows up to 4 decimal places.
The fraction and pattern rows only appear when the whole, top and bottom numbers are whole numbers. If you type 1.5 as the top number, you still get the decimal and percent, but no fraction row.
When a decimal is easier than a fraction
Decimals are easier to compare and to type into other tools. Is 7/16 bigger than 3/8? As decimals, 0.4375 is clearly bigger than 0.375. Rulers, recipes and spreadsheets often mix the two, so converting both sides to decimals first makes the comparison quick. To keep working with fractions instead, the fraction calculator adds, subtracts, multiplies and divides them.
Common mistakes
- Dividing the wrong way. 3/4 is 3 ÷ 4 = 0.75, not 4 ÷ 3.
- Putting the whole number in the top box. For 2 1/2, the 2 goes in Whole number (optional), not in Top number.
- Treating a rounded decimal as exact. 0.416667 is a rounded form of 5/12. Use the fraction when you need the exact value.
How we calculate this
Going from a fraction to a decimal, the tool computes whole part + top ÷ bottom. The percent is that value × 100. If you enter whole numbers, it also reduces the fraction to lowest terms by dividing both numbers by their greatest common divisor, and shows a mixed number when the fraction is more than one whole.
It runs long division on the top and bottom to find out whether the decimal ends or repeats, and shows the repeating block, up to 12 digits. Long division stops at 2,000 digits.
Going from a decimal to a fraction, it scales your decimal by a power of 10 and reduces it. So 0.375 becomes 375 over 1,000, which is 3/8. The bottom number must be more than zero.
What next
Use this often? Add Fraction to to your Home screen.
Frequently asked questions
How do you turn a fraction into a decimal?
Divide the top number by the bottom number. For example, 3/4 = 3 ÷ 4 = 0.75.
What is 1/3 as a decimal?
It’s 0.333…, where the 3 repeats forever. Rounded to two places, it’s 0.33.
How do I convert a decimal to a fraction?
Write it over a power of 10, then simplify. For example, 0.25 is 25/100, which simplifies to 1/4.
How do I convert a fraction to a percent?
Find the decimal, then multiply by 100. For example, 3/4 is 0.75, which is 75%.
What is 5/12 as a decimal?
It is 0.41666…, where the 6 repeats forever. Rounded to 6 significant digits it is 0.416667, and as a percent it is about 41.6667%.
Why does 0.333 not convert to 1/3?
Because 0.333 is not exactly one third. The converter treats the digits you type as exact, so 0.333 becomes 333/1000. One third is 0.333… with the 3 repeating forever.
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.