Decimal to Fraction Converter
Turns a decimal typed as text into an exact fraction and mixed number — including repeating decimals written in brackets, such as 0.1(6).
Inputs
Exact fraction and mixed number for a decimal typed as text — including repeating decimals in brackets.
Enter the values and press Convert.
Or load an example to see a worked result.
How to use this calculator
- Type the decimal exactly as you have it: 0.75, -1.5, 2.5e-3, or a repeating decimal with the repeating digits in brackets, 0.(3).
- Leave the mode on Exact for the exact fraction, or choose Approximate and a maximum denominator (such as 16) for the closest simple fraction.
- Press Convert to see the fraction, the mixed number and the reduction steps.
How it works
A finite decimal is written over a power of ten and reduced by the greatest common divisor: 0.75 = 75/100 = 3/4. The digits are read as text and handled with exact whole-number arithmetic — never through a rounded binary float.
A repeating decimal I.A(B) becomes (IAB − IA) ÷ (10^len(A) × (10^len(B) − 1)): 0.1(6) = (16 − 1) ÷ (10 × 9) = 15/90 = 1/6. The sign is applied once, in front.
Approximate mode finds the closest fraction with a denominator up to your limit (continued fractions) and shows its error; it is labelled approximate. Inputs are limited to 1000 digits and an exponent of ±1000.
Worked example
0.1(6). Repeating 6: (16 − 1) ÷ (10 × (10 − 1)) = 15/90; gcd(15, 90) = 15, so the fraction is 1/6. By contrast 0.75 = 75/100 = 3/4 and 1.5 = 3/2 = 1 1/2.
Common mistakes
- Expecting 1/3 from 0.333 — the digits you type are taken exactly, so 0.333 is 333/1000. Write 0.(3) for one third.
- Writing 0.333… with dots — the tool cannot tell which digits repeat, so it asks for brackets.
Frequently asked questions
Why is 0.333 not 1/3?
Because 0.333 is exactly 333/1000; 1/3 is 0.333… repeating forever. If you mean the repeating value, enter 0.(3) and you get exactly 1/3.
How do I enter a repeating decimal?
Put the repeating block in brackets after the decimal point: 0.(3) = 1/3, 0.1(6) = 1/6, 0.(142857) = 1/7, 2.1(45) = 118/55.
Is approximate mode exact?
No. It gives the closest fraction whose denominator is no larger than your limit — handy for 16ths of an inch — and shows the error against the exact value. The exact fraction is always shown alongside.
Related tools
- Fraction Calculator
- Scientific Notation Converter
- Ratio Calculator
- Percentage Calculator
- Roman Numeral Converter
- Dilution Ratio Calculator
Explore more in Maths, Education & Science.
Cite this tool
Zerdly. (2026). Decimal to Fraction Converter. Retrieved from https://www.zerdly.com/tools/decimal-to-fraction-calculator/
Tip: Enter any known values to calculate the remaining results.
Designed to run locally in your browser. Tool inputs are not intentionally stored by Zerdly unless stated otherwise.



