Fraction to Repeating Decimal Converter: Your Guide to Rational Numbers
ByMuhammad Ali•Founder of KruskalCode
22:08
6 min read

Fractions and decimals are two fundamental ways to represent numbers, but sometimes converting between them, especially when decimals repeat, can be tricky. This guide will walk you through the process of converting fractions to their decimal form, with a special focus on understanding and identifying repeating decimals. Our online calculator is here to make this process straightforward.
Explanation
A rational number is any number that can be expressed as a fraction p/q, where p and q are integers and q is not zero. When you convert a rational number (a fraction) to a decimal, the result will either be a terminating decimal (like 1/4 = 0.25) or a repeating decimal (like 1/3 = 0.333.). A repeating decimal has a sequence of digits that repeats infinitely. This happens when the division process never reaches a remainder of zero, but instead, the remainders start repeating themselves, causing the quotient digits to repeat.
Formula
To convert a fraction a/b to a decimal, simply perform the division: a ÷ b. For example, to convert 3/8: 3 ÷ 8 = 0.375 (terminating decimal) To convert 2/11: 2 ÷ 11 = 0.181818. (repeating decimal, where '18' repeats)
Example
Let's convert the fraction 5/12 to a decimal. When you divide 5 by 12: 5 ÷ 12 = 0.41666. Here, the digit '6' repeats indefinitely. So, 5/12 as a repeating decimal is 0.41(6). Our calculator will show you this exact pattern, helping you verify your manual calculations.
How to use the related calculator
Using our Fraction to Repeating Decimal Calculator is simple. Just enter the numerator (the top number of your fraction) in the 'Numerator' field and the denominator (the bottom number) in the 'Denominator' field. Make sure your denominator is not zero. The calculator will instantly display the decimal equivalent, clearly indicating any repeating digits with parentheses. This makes it easy to see the pattern and understand the decimal representation of any rational number.
Try the related calculator
Open toolFAQ
What is a repeating decimal?
A repeating decimal (also known as a recurring decimal) is a decimal number that, after a certain point, has a sequence of one or more digits that repeats infinitely. For example, 1/3 is 0.333. where '3' repeats, and 1/7 is 0.142857142857. where '142857' repeats.
How do you write a repeating decimal?
Repeating decimals are typically written by placing a bar over the repeating block of digits. For example, 0.333. is written as 0.3̅, and 0.142857142857. is written as 0.142857̅. In text, sometimes parentheses are used, like 0.3(3) or 0.142857(142857).
Can all fractions be written as repeating or terminating decimals?
Yes, every rational number (which is any number that can be expressed as a fraction) will result in either a terminating decimal or a repeating decimal. You'll never get a decimal that goes on forever without repeating if you start with a simple fraction.
Related articles

About the author
Muhammad Ali. Muhammad Ali is a full-stack developer and founder of KruskalCode. He builds SaaS platforms and automation systems with React and Laravel, and helps teams ship fast, scalable tools.
Need a custom calculator, dashboard, or automation workflow? Reach out to KruskalCode.