Why Some Fractions Become Repeating Decimals, and How to Convert

Learn how to convert fractions to decimals by long division, predict whether the decimal terminates or repeats, and write repeating digits correctly.

Updated September 29, 2026 6 min read

Use the free Fraction to Decimal ConverterTurn any fraction into a decimal and spot repeating digits exactly

Type 3/8 into a calculator and you get a tidy 0.375. Type 5/7 and the screen fills with 0.714285714… and then cuts off. Is the display rounding? Does it ever stop? And how would you write it on paper without guessing?

This guide explains how a fraction becomes a decimal, why some decimals end and others repeat forever, how to predict which will happen before you divide, and how to write repeating decimals in a way nobody can misread. All the examples were checked with our converter.

A fraction is a division

The fraction bar means "divided by". So 3/8 is 3 ÷ 8, and converting a fraction to a decimal is just carrying out that division. For a mixed number such as 1 5/6, convert the whole part and the fraction separately: 1 + 5 ÷ 6 = 1.8333…

The only question is whether the division ever finishes.

Long division, digit by digit

Here is 5 ÷ 7 done the way you would on paper. At each step you bring down a 0, divide by 7, write the digit and keep the remainder.

Step Divide Digit Remainder
1 50 ÷ 7 7 1
2 10 ÷ 7 1 3
3 30 ÷ 7 4 2
4 20 ÷ 7 2 6
5 60 ÷ 7 8 4
6 40 ÷ 7 5 5
7 50 ÷ 7 7 1

Before step 1, 5 ÷ 7 is 0 with remainder 5. At step 6 the remainder is 5 again, so step 7 is an exact copy of step 1. From here the digits must repeat, so 5/7 = 0.714285 714285 … with a repeating block of six digits.

This is the whole reason decimals repeat. When you divide by 7, the only possible remainders are 0 to 6. If you never hit 0, you must eventually revisit a remainder, and from that point the digits cycle. A denominator d can never produce a repeating block longer than d − 1 digits.

Predicting terminate vs repeat

You do not need to divide to know what will happen. Simplify the fraction first, then look at the prime factors of the denominator:

  • If the denominator has no prime factors other than 2 and 5, the decimal terminates.
  • If it has any other prime factor (3, 7, 11, 13 …), the decimal repeats.

The reason is that our number system is base 10, and 10 = 2 × 5. A fraction terminates exactly when it can be rewritten with a denominator of 10, 100, 1000 and so on.

The number of decimal places in a terminating decimal equals the larger of the two exponents. Some examples:

Fraction Denominator Result
3/8 2³ 0.375 (3 places)
7/40 2³ × 5 0.175 (3 places)
5/6 2 × 3 0.8333… repeats
1/12 2² × 3 0.08333… repeats
22/7 7 3.142857 142857… repeats

Remember to simplify first. 3/12 looks like it should repeat, but it simplifies to 1/4 = 0.25.

Writing repeating decimals

"0.714285…" is ambiguous: the reader cannot tell which digits repeat. There are two clear notations.

  • Bar (vinculum) notation: draw a line over the repeating block, as in 0.8 with a bar over the 3 for 5/6.
  • Parentheses notation: put the block in brackets, as in 0.8(3) or 0.(714285). This is handy when typing.

Note the difference between a purely repeating decimal such as 5/7 = 0.(714285), where the cycle starts right after the point, and a mixed one such as 1/12 = 0.08(3), where some digits come first. Mixed decimals appear when the denominator contains 2 or 5 alongside another prime.

How to use the Fraction to Decimal Converter

  1. Open the Fraction to Decimal Converter.
  2. Type the fraction into Fraction. It accepts forms like 3/8, 22/7, a mixed number such as 1 5/6, or a negative fraction such as -7/12.
  3. Optionally change Decimal places for the rounded value. The default is 10.
  4. Read the result. The main value shows the repeating block with a bar over it. Below it you get Parentheses notation, a Written out version, the Rounded value, the fraction As a percentage, the Type (terminating, or repeating with its period) and the Simplest fraction.
  5. Open the steps to see the simplification, the prime factor check on the denominator and each long division step, ending with the remainder that repeats.

The converter works with exact whole-number arithmetic, not floating point, so it can find very long cycles. 1/97, for example, repeats with a period of 96 digits, and it finds cycles up to 5,000 digits long.

Other ways to convert

A basic or phone calculator

Fine for a quick approximation, but the display is limited to 10 to 16 digits and the last digit is usually rounded. You cannot always tell a long repeating block from a terminating decimal. 1/17 has a period of 16, so an ordinary display shows barely one cycle.

Spreadsheets

=5/7 in Excel or Google Sheets gives about 15 significant digits. That is plenty for calculations but will not show you the repeating pattern.

Memorise the common ones

A handful come up constantly: 1/2 = 0.5, 1/4 = 0.25, 1/8 = 0.125, 1/3 = 0.(3), 2/3 = 0.(6), 1/6 = 0.1(6), 1/9 = 0.(1), 1/11 = 0.(09). Every ninth is its numerator repeating: 4/9 = 0.(4).

To go the other way, from a decimal such as 0.(3) back to 1/3, use the Decimal to Fraction Converter. For arithmetic with fractions before you convert, the Fraction Calculator keeps everything exact.

Common mistakes

Rounding too early

If you round 1/3 to 0.33 and multiply by 3, you get 0.99, not 1. Keep the fraction, or plenty of digits, until the final step, then round with the Rounding Calculator.

Assuming the calculator display is exact

A display showing 0.6666666667 has rounded the last digit up. The true value is 0.(6), which never ends in 7.

Misplacing the repeating bar

0.1(6) = 0.1666… and 0.(16) = 0.161616… are different numbers (1/6 and 16/99). Put the bar only over the digits that actually cycle.

Forgetting to simplify

6/15 has a 3 in the denominator, yet it equals 2/5 = 0.4, which terminates. Always cancel common factors before judging.

Frequently asked questions

How do I know if a fraction will be a terminating decimal?

Simplify it, then factor the denominator. If the only prime factors are 2 and 5, the decimal terminates; any other prime factor makes it repeat.

Why does 1/3 never end?

Dividing 1 by 3 leaves a remainder of 1 at every step, so you keep writing the digit 3 forever. Because 3 does not divide any power of 10, no finite decimal can equal 1/3.

How long can the repeating part be?

For a denominator d, the repeating block is at most d − 1 digits long. 1/7 has 6 repeating digits and 1/97 has 96.

How do I convert a mixed number to a decimal?

Keep the whole number and convert only the fraction part: 1 5/6 = 1 + 0.8(3) = 1.8(3). The converter accepts mixed numbers typed with a space, such as 1 5/6.

Is 0.999… the same as 1?

Yes. 0.(9) is exactly 1, since 1/3 = 0.(3) and multiplying both sides by 3 gives 1 = 0.(9). It is a second way of writing the same number, not a slightly smaller one.

Try it now: Fraction to Decimal Converter

Loading tool…