Reduce a fraction to lowest terms, with its mixed number and exact decimal form including any repeating block.
Fraction to Decimal
Convert a fraction to its exact decimal expansion, identifying the repeating block rather than truncating it.
- Free
- No sign-up
- Runs in your browser
Input
A whole number, a decimal, or a fraction such as 3/4. Arithmetic is exact, so fractions stay exact.
A whole number, a decimal, or a fraction such as 3/4. Arithmetic is exact, so fractions stay exact.
Ready
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
Enter the fraction. The exact decimal appears, with any repeating block shown in brackets.
- 2
1/7 is reported as 0.(142857), which is the exact value - not a decimal cut off after a few places.
Questions about Fraction to Decimal
What do the brackets mean?
The digits inside repeat without end. 1/7 is 0.(142857), meaning 0.142857142857... forever. That notation is the exact value; any decimal that stops is a rounding of it. Most converters just print fifteen digits and leave you to guess whether the expansion ended or was cut off.
Which fractions have a terminating decimal?
Exactly those whose denominator, in lowest terms, has no prime factor other than 2 and 5. So halves, quarters, fifths, eighths and tenths terminate; thirds, sevenths and ninths do not. That is a consequence of base ten: 10 is 2 x 5, so only those factors can divide a power of ten.
How long can the repeating block be?
Up to one less than the denominator. 1/7 has a period of 6, and 1/97 has a period of 96 - the longest possible for 97. The full cycle is computed and shown, however long it is.
Is my data sent anywhere?
No. This runs as JavaScript in your browser tab: there is no network request carrying your numbers, nothing reaches a server log, and it keeps working with your connection off. You can confirm it in the browser’s network panel.
Does the Fraction to Decimal work offline?
Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Fraction to Decimal keeps working with the network switched off and nothing is ever sent to a server.
Related tools
Other tools you might reach for next.
Add two fractions exactly, showing the common denominator step and reducing the result.
Convert a decimal to an exact fraction, reading only the digits you typed and accepting explicit repeat notation.
Evaluate an expression with exact fraction arithmetic, trigonometry, logarithms and factorials, reporting whether the result is exact.
Subtract one fraction from another exactly, showing the common denominator step.
Multiply two fractions exactly, multiplying across and reducing the result.
Divide one fraction by another exactly, by multiplying by the reciprocal.
Convert a mixed number to an improper fraction exactly, handling the negative case correctly.