Every terminating or repeating decimal is a fraction, and the recipe never changes.
A terminating decimal like 0.75 has 2 places, so it equals 75/100, which reduces by 25 to 3/4. A repeating decimal like 0.(3) never ends, but it is a fraction too. The nines-and-zeros rule says the denominator has one 9 for each digit of the repeating block and one 0 for each digit between the decimal point and the block, and the numerator is the number without the point minus the number without the point and without the repeating block. For 0.1(6) the numerator is 16 − 1 = 15, the denominator is 90 and 15/90 reduces to 1/6. For 2.4(54) the numerator is 2454 − 24 = 2430, the denominator is 990 and the result is 27/11, or 2 5/11 as a mixed number. The algebra method lands in the same place: call the number x, multiply by 10 and by 100 until the repeating blocks line up, then subtract (100x − 10x = 16 − 1). The reverse trip works too: a fraction in lowest terms gives a terminating decimal exactly when its denominator has only the prime factors 2 and 5; otherwise it repeats, and the period has at most (denominator − 1) digits (1/7 repeats 142857, 1/17 has 16 digits and 1/97 has 96). That is why 0.999... equals 1: 9/9 = 1. Irrational numbers like π or √2 have no such fraction; Approximate mode uses continued fractions to find the best fraction with a limited denominator (22/7 and 355/113 for π).
How to use
Type the number and the solution shows up right away.
Type a decimal (0.75), a repeating decimal with the repeating part in parentheses (0.1(6)), with an ellipsis (0.333...) or with a bar over the repeating digit. The buttons insert ( ), an ellipsis, a bar and a sign.
Read the simplified fraction, the mixed number and the decimal check, and switch between the nines-and-zeros rule and the algebra method to follow every step.
Use Fraction to decimal to find the repeating and non-repeating parts of any fraction, and Approximate to replace a long decimal with the best fraction under a denominator limit.
Embed
Use this tool on your site
Paste the code into your HTML and the tool shows up on your page, without J-Kit's navigation and ads. It still runs in the browser of whoever visits your site.
<iframesrc="https://jkit.tools/embed/en-US/decimal-to-fraction"width="100%"height="600"style="border:0"loading="lazy"title="Decimal to Fraction and Repeating Decimal Converter"></iframe>
References
Sources and references for this tool
These references help contextualize formulas, standards, APIs and limitations used on this page. They do not replace professional validation when a result has legal, financial, medical or operational impact.
Count the decimal places, write the digits without the point as the numerator and use 1 followed by that many zeros as the denominator. Then reduce by the gcd. Example: 0.375 has 3 places, becomes 375/1000 and, dividing by 125, 3/8. With an integer part, 2.5 = 25/10 = 5/2 = 2 1/2.
Numerator: the number made of the integer part, the non-repeating part and the repeating part, minus the number made of the integer part and the non-repeating part only.016 - 01 = 16 - 1 = 15
Denominator: one 9 for each digit of the repeating part (1), followed by one 0 for each digit of the non-repeating part (1).90
The fraction is:0.1(6) = 15/90
Simplify by dividing the numerator and the denominator by their gcd, which is 15:15/90 = 1/6
Equivalent fractions
16=212=318=424=530=636
Notation options
How to show the repeating decimal
Convert several decimals at once
Decimal
Fraction
0,25
1/4
0,(3)
1/3
1,2(5)
113/90
-0,8
-4/5
All the math happens in your browser. No number is sent to any server.