Decimal to Fraction Calculator
Convert a decimal to a fraction in lowest terms, reading the digits exactly rather than guessing a near one.
Updated
Type it as written. 0.33 is thirty-three hundredths unless you mark it as repeating below.
As a fraction
3/8in lowest terms
from 375/1000, divided by 125
- Mixed number
- 3/8
- Before reducing
- 375/1000
- Divided by
- 125
- Back to decimal
- 0.3750000000
Advertisement
In short
How do you turn a decimal into a fraction?
Write the digits over their place value, then divide both by their greatest common factor. 0.375 is 375/1000, and dividing both by 125 gives 3/8. A repeating decimal needs a different step: 0.333… is 3/9, which reduces to one third.
A terminating decimal and a repeating one are different numbers even when they look alike.
How to use the decimal to fraction calculator
Enter the decimal and read the fraction. The only decision the tool asks you to make is whether the decimal repeats, and it asks rather than guesses because guessing is where most converters of this kind go wrong.
The wrong approach is to search for a simple fraction near the value you typed. That method answers a different question, and it answers it confidently: give it 0.33 and it returns one third. But 0.33 and a third are not the same number. They differ by a third of a percent, which is small until it is a tolerance or a dose.
0.375
Reads as 375/1000
then reduces to 3/8
125
The factor divided out
the GCD of 375 and 1000
0.33
Is 33/100, not 1/3
they differ by 0.33 percent
Advertisement
So this reads the digits literally. Three decimal places means thousandths, so 0.375 becomes 375 over 1000, and the greatest common factor of 375 and 1000 is 125. Divide both and you have 3/8. Every step is integer arithmetic with no tolerance anywhere in it, which is why the answer is exact rather than close.
The repeating case uses a different identity, and it is worth seeing once. Take the digits as a whole number, subtract the non-repeating prefix, and put the difference over a denominator of nines followed by zeros. For 0.8333 with one repeating place that is 8333 minus 833, over 9000, which is 7500/9000 and reduces to 5/6.
- 0.125
- 1/8
- 0.2
- 1/5
- 0.25
- 1/4
- 0.375
- 3/8
- 0.625
- 5/8
- 0.75
- 3/4
- 0.333… repeating
- 1/3
- 0.1666… repeating
- 1/6
The eighths are the ones worth memorising, because they are the fractions a tape measure and a drill index are marked in and the decimals a digital caliper reports. Everything on a sixteenth is a terminating decimal, which is why imperial measurement and decimal displays coexist as well as they do.
Go the other way and see the repeat
Fraction to decimal runs long division and marks the repeating block, which is how you find out that a seventh cycles every six digits and an eighth stops after three.
Open fraction to decimal →Common decimals with the unreduced fraction the place value gives, the factor divided out, and the result in lowest terms.
| Decimal | Over its place value | Divided by | In lowest terms |
|---|---|---|---|
| 0.5 | 5/10 | 5 | 1/2 |
| 0.25 | 25/100 | 25 | 1/4 |
| 0.2 | 2/10 | 2 | 1/5 |
| 0.125 | 125/1000 | 125 | 1/8 |
| 0.375 | 375/1000 | 125 | 3/8 |
| 0.4 | 4/10 | 2 | 2/5 |
| 0.6 | 6/10 | 2 | 3/5 |
| 0.625 | 625/1000 | 125 | 5/8 |
| 0.75 | 75/100 | 25 | 3/4 |
| 0.875 | 875/1000 | 125 | 7/8 |
| 1.005 | 1005/1000 | 5 | 201/200 |
Why this does not guess a nearby fraction
There is a classical algorithm for finding the simplest fraction close to a decimal, built on continued fractions, and it is genuinely elegant. It is also the wrong tool here, because it answers "what simple fraction is near this number" when the question asked was "what fraction is this number".
- Input
- 0.33
- Reading the digits
- 33/100
- Nearest simple fraction
- 1/3
- Difference between them
- 0.00333…
- As a proportion
- about 1 percent
- Which is correct
- the one you meant
Neither is wrong as arithmetic. The difference is what the person typing believed they were entering, and only they know that. Reading the digits is the honest default because it never invents information, and the repeat switch is there for when you have information to add.
The same tension shows up in reverse. Somebody who genuinely means a third and types 0.333333333 will get 333333333/1000000000 back, which is technically correct and unhelpful. That is exactly the case the repeat switch exists for, and it turns the answer into 1/3 without any tolerance being introduced.
What a decimal input can and cannot hold
Numbers in a browser are stored as double-precision floats, which carry about fifteen to seventeen significant digits. Past that, the value you typed and the value stored are different numbers, and any fraction derived from the stored one describes something you never entered.
Do
- Type the decimal exactly as it appears on your source
- Switch the repeat on only when you know the digits recur
- Read the unreduced fraction to check the place value looks right
- Use the mixed number form for anything above one
Don't
- Assume a decimal with many places is exactly a simple fraction
- Enter a rounded figure and expect an exact fraction of the original
- Treat 0.33 and one third as interchangeable in a calculation
- Round the result and then convert it again
The tool says so when it happens rather than staying quiet. If an input carries more places than a double can hold, the panel notes that the fraction describes the stored value. That is a small warning about a real limit, and it is the kind of thing a converter should tell you rather than paper over.
Advertisement
The formula, worked line by line
Two formulas, one for each kind of decimal. The terminating case is the one everybody knows; the repeating case is the one worth learning, because it turns an infinite thing into two integers with no approximation.
“A terminating decimal already tells you its denominator. Three places means thousandths, and the only work left is reducing.”
The repeating identity below looks stranger than it is. It works because multiplying by a power of ten shifts the repeating block onto itself, and subtracting cancels the infinite tail entirely.
terminating: fraction = digits / 10^places
then divide both by gcd(digits, 10^places)
0.375 = 375 / 1000 = 3 / 8 (gcd 125)
repeating: (all digits - prefix digits) / (10^(i+r) - 10^i)
0.8333 with r=1: (8333 - 833) / 9000 = 5 / 6- Let x
- 0.333… repeating
- Then 10x
- 3.333… repeating
- Subtract
- 9x = 3
- So x
- 3/9
- Reduced
- 1/3
- Exactly
- 1/3
The infinite tail is identical on both lines, so subtracting removes it completely. That is the whole trick, and it is why a repeating decimal is a rational number: the subtraction always leaves two integers behind.
Which decimals can terminate at all
Only those whose reduced denominator is built from twos and fives, the primes of base ten. That is why eighths and twentieths terminate and thirds and sevenths cannot: no power of ten is divisible by three, so the division never comes out and the digits have to cycle instead.
Where an exact fraction earns its keep
- Woodworking and machining
- the tape is in sixteenths
- Recipe scaling
- thirds and halves compound
- Gear and pulley ratios
- exact ratios, not close ones
- Music intervals
- 3/2 and 4/3 exactly
- Probability
- a third is not 0.33
The common thread is repetition. A one percent difference applied once is invisible; applied across twelve gear teeth, six recipe doublings or an octave of intervals, it accumulates into something you can see or hear.
The habit worth taking away is small: when you write a decimal down, note whether it stopped or was cut short. That single fact is the only thing this conversion cannot work out for itself.
Advertisement
Questions people ask
How do I convert a decimal to a fraction?
Put the digits over their place value and reduce. Two decimal places means hundredths, three means thousandths, and so on. 0.375 has three places, so it is 375/1000, and dividing top and bottom by their greatest common factor of 125 gives 3/8 in lowest terms.
Is 0.33 the same as one third?
No. 0.33 is exactly 33/100, while one third is 0.3333 repeating forever. They differ by about one percent of their value, which is negligible in one calculation and visible after several. This tool returns 33/100 unless you tell it the decimal repeats.
How do I convert a repeating decimal?
Set the repeat control to how many trailing digits recur. The tool then uses the standard identity: take the digits as an integer, subtract the non-repeating prefix, and divide by nines followed by zeros. For 0.333 with one repeating place that gives 3/9, which reduces to one third.
Why do some fractions never terminate as decimals?
Because base ten is two times five, so only denominators built from twos and fives can divide a power of ten exactly. An eighth is two cubed and terminates after three places. A third carries a factor of three, which no power of ten contains, so the division never resolves and the digits cycle instead.
What is 0.625 as a fraction?
Five eighths. Three decimal places make it 625/1000, and the greatest common factor of 625 and 1000 is 125, so both divide down to 5 and 8. The eighths all terminate cleanly, which is why they appear so often on tape measures and drill sets alongside their decimal equivalents.
Related guides
Math
Why the Quadratic Formula Loses Accuracy on One of Its Two Roots
Completing the square takes four lines and produces the formula. It also shows which of the two roots is safe to trust, and the calculator on this site was corrected to use the other route.
August 19, 2026 · 10 min read
Math
Geometry Backwards: Finding the Radius from the Area
Every geometry formula is printed in the direction you need least. Running it backwards is not the same operation reversed; it is a root, and roots can refuse.
August 17, 2026 · 10 min read
Math
When Cross Multiplication Gives You the Wrong Answer
Cross multiplication answers every question you put to it, including the ones it should refuse. The test is one line: if the input were zero, would the output be zero?
August 17, 2026 · 10 min read