About the Decimal to Fraction Converter tool
Turning 0.75 into 3/4 is easy once you know the trick, but repeating decimals such as 0.333… or 0.1666… are where most people and many online converters go wrong: they treat the digits you typed as the whole story and return something like 333/1000 instead of 1/3. This converter understands repeating decimals properly. Put the repeating digits in parentheses — 0.(3), 0.1(6), 2.(142857) — or type a pattern followed by “...” and it will spot the cycle for you.
For a terminating decimal it writes the number over a power of ten and cancels the greatest common factor. For a repeating decimal it uses the algebra method taught in school: call the number x, multiply by powers of ten so the repeating tails line up, subtract to cancel them, and solve for x. Both methods are shown line by line with your own digits, and the final fraction is always in lowest terms, with the mixed-number form and percentage alongside.
There is also a practical extra: the closest fraction with a denominator you choose. Set it to 16 to turn 0.6875 into 11/16 of an inch, or to 100 to find that 3.14159 is close to 311/99. It uses continued fractions, the same method mathematicians use for best rational approximations.
How to use Decimal to Fraction Converter
- Type the decimal into “Decimal number”. Put repeating digits in parentheses, e.g. 0.1(6), or type 0.1666...
- Read the simplest fraction at the top of the result card, plus the mixed number if the value is above 1.
- Optionally set “Also find the closest fraction with denominator up to” (for example 16 or 64 for inch measurements).
- Click “Show steps” to see the power-of-ten or algebra method worked through.
- Copy the fraction with the copy icon.
Features
True repeating-decimal support
0.(3) becomes exactly 1/3 and 1.2(34) becomes 611/495, not a rounded approximation.
Automatic pattern detection
Inputs ending in “...” are scanned for the shortest block that repeats, and the interpretation is shown so you can confirm it.
Algebra steps
The multiply-and-subtract method is written out with your numbers, followed by simplification by the GCF.
Closest fraction finder
Continued fractions give the best approximation with a denominator limit — handy for rulers, drill bits and recipes.
Exact big-number arithmetic
Uses BigInt, so long decimals with many digits are converted without rounding.
When to use it
- Convert 0.375 to 3/8 for a woodworking measurement.
- Prove in algebra homework that 0.999… equals 1.
- Find the fraction behind a repeating decimal from a calculator display.
- Round a decimal inch reading to the nearest 1/16 or 1/32.
- Express a decimal probability or ratio as a simple fraction.
Frequently asked questions
How do I convert a repeating decimal to a fraction?
Let x equal the decimal. Multiply by 10ⁿ where n is the number of repeating digits (plus any non-repeating ones) so the repeating parts line up, subtract the equations to cancel the tail, and divide. For 0.(3): 10x = 3.(3), subtract x = 0.(3) to get 9x = 3, so x = 1/3.
What is 0.333… as a fraction?
Exactly 1/3. Typing 0.333 without marking the repetition gives 333/1000, which is a different (terminating) number.
Is 0.999… really equal to 1?
Yes. With x = 0.(9), 10x = 9.(9); subtracting gives 9x = 9, so x = 1. Enter 0.(9) to see the steps.
How do I write a repeating decimal in this tool?
Put the repeating block in parentheses: 0.1(6) for 0.1666…, 0.(142857) for 0.142857142857…. Square brackets work too, or type the digits followed by ... and the tool will detect the pattern.
What does “closest fraction with denominator up to N” do?
It finds the fraction with a denominator no larger than N that is nearest to your decimal, using continued fractions. For example 0.3 with N = 16 gives 3/10, and π ≈ 3.14159 with N = 1000 gives 355/113.