Free tool
Fraction to Decimal Calculator
Convert a fraction or mixed number to an exact decimal and percent, with repeating digits marked in parentheses and the long division shown.
- Decimal
- –
- As a percent
- –
- Type of decimal
- –
- Fraction (improper form)
- –
- Mixed number
- –
Long division
Assumptions and limits
Every figure comes from the numbers you enter. Where a rule of thumb is used, it is labeled as one.
- The decimal is found by long division, tracking each remainder. When a remainder repeats, the digits between its two appearances repeat forever and are shown in parentheses.
- The result is exact, never rounded. A decimal that does not repeat within 2,000 digits is cut off, marked with …, and labeled truncated.
- A decimal ends exactly when the reduced denominator has no prime factors other than 2 and 5.
- Mixed numbers are written with a space (2 3/8). The numerator and denominator must be whole numbers, and the denominator cannot be 0.
- The percent is the decimal times 100, also shown exactly.
Runs entirely in your browser. Nothing you type or upload is sent to our servers.
How a fraction becomes a decimal
A fraction is a division that has not been carried out yet. The bar means "divided by", so 7/8 is 7 ÷ 8. Long division carries it out one digit at a time: divide, write the digit, keep the remainder, put a zero after the remainder, and divide again. The process stops when the remainder is 0, or it cycles when a remainder you have seen before comes back, because the same remainder always produces the same next digits.
That cycle is the whole story of repeating decimals. There are only so many possible remainders, so a division that never ends has to loop. The calculator detects the loop and puts the looping digits in parentheses.
Worked example 1: a decimal that ends
Convert 7/8.
- 8 goes into 7 zero times, so the whole part is 0 with remainder 7.
- Bring down a 0: 70 ÷ 8 = 8 remainder 6.
- Bring down a 0: 60 ÷ 8 = 7 remainder 4.
- Bring down a 0: 40 ÷ 8 = 5 remainder 0. The remainder is 0, so the division ends.
The digits are 8, 7 and 5, so 7/8 = 0.875. As a check, 0.875 × 8 = 7.
Worked example 2: a decimal that repeats
Convert 1/7.
- 10 ÷ 7 = 1 remainder 3. Then 30 ÷ 7 = 4 remainder 2. Then 20 ÷ 7 = 2 remainder 6.
- 60 ÷ 7 = 8 remainder 4. Then 40 ÷ 7 = 5 remainder 5. Then 50 ÷ 7 = 7 remainder 1.
- The remainder is 1 again, which is where we started, so the six digits 142857 repeat forever.
So 1/7 = 0.(142857). Enter 1/7 in the box above to see the same lines.
Tips
- Reduce first if you like. 6/48 and 1/8 give the same decimal, and the GCF Calculator shows the common factor.
- To find a fraction of a quantity, convert it once and multiply: 3/8 of 40 is 0.375 × 40 = 15.
- For a decimal that is already in front of you, the Decimal to Fraction Calculator runs the conversion in reverse.
Related calculators
Add, subtract, multiply and divide fractions with the Fraction Calculator. If a division comes with a remainder instead of a decimal, the Long Division Calculator writes out every step. To express the result as a change between two values, use the Percent Change Calculator.
Frequently asked questions
How do I convert a fraction to a decimal?
Divide the numerator by the denominator. For 7/8, 7 ÷ 8 = 0.875. When the division does not come out even, keep adding zeros to the remainder and dividing. The calculator prints the first few of these long-division lines for your fraction so you can follow them.
What do the parentheses in the answer mean?
They mark the digits that repeat forever. The answer 0.(3) means 0.3333…, and 0.1(6) means 0.1666…, where only the 6 repeats. The calculator writes it this way so the result is exact. A rounded value such as 0.33 would be a different number from 1/3.
How do I know whether a decimal ends or repeats?
Reduce the fraction first. If the denominator has no prime factors other than 2 and 5, the decimal ends: 7/8 has a denominator of 8 = 2³, so it ends. Otherwise it repeats forever: 1/7 repeats because 7 is a prime other than 2 and 5, with a block of six digits.
How long can the repeating part be?
For a reduced fraction with denominator d, the repeating block has at most d − 1 digits. For 1/7 it has 6, and for 1/97 it has 96. The calculator searches up to 2,000 digits. If the block is longer, it shows the digits found, marks the cut with … and says that it was truncated, not rounded.
Can I enter a mixed number or a negative fraction?
Yes. Write a mixed number with a space, such as 2 3/8, and the result is 2.375. A leading minus sign applies to the whole value, so −5/4 gives −1.25. A whole number such as 4 is accepted too and returns 4. The denominator cannot be 0.
How do I turn the result into a percent?
Multiply the decimal by 100. The calculator does this for you and shows the percent as an exact decimal as well: 1/8 = 0.125 = 12.5%, and 1/3 = 0.(3) = 33.(3)%. Moving the decimal point two places to the right gives the same result.
Why does my phone calculator show a different ending?
Calculators show a fixed number of digits and round or cut the rest, so 2/3 may appear as 0.6666667 or 0.6666666. This page shows 0.(6), which says exactly what the digits do forever. Neither of the shortened values is exactly equal to 2/3.
Is anything I type saved or sent anywhere?
No. The conversion runs in your browser, and nothing you enter is stored or sent to our servers. Only a count that the tool was used is recorded, without any numbers from the form.
Link to this tool
Found it useful? Copy a link for your page, newsletter or documentation.
Get new tools and guides by email
Optional. The tool above works without signing up.
More free tools
Browse all everyday calculators or the full list of free tools.
- Pythagorean Theorem CalculatorFind a missing side of a right triangle from the other two, with exact roots, simplified radicals, area, perimeter and angles. Working shown.
- Square Root Calculator with Cube RootFind the square root and cube root of any number, in simplified radical form and as a decimal to the places you choose. Perfect squares are exact.
- Quadratic Formula CalculatorSolve ax² + bx + c = 0 with the quadratic formula: real and complex roots, discriminant, vertex and every step shown. Exact for rational roots.
- Long Division CalculatorDivide whole numbers with a quotient and remainder or a decimal answer, with every written step of the long division shown. Big numbers supported.
- Gravel CalculatorEstimate gravel in cubic yards, cubic meters and tons for a driveway, path or base layer, with the density you enter and an optional extra allowance.
- Mulch CalculatorFind how many cubic yards and bags of mulch a garden bed needs from its size and depth, plus how much area a cubic yard covers at that depth.