Decimal to fraction
Turn a decimal such as 0.125 into an exact fraction such as 1/8. It is useful for measurements, recipes and math homework where a fraction is easier to read than a long decimal.
- Runs in your browser
- Free, no account needed
- Copy or download the result
Result
The short answer
Write the digits of the decimal over a power of ten, then reduce by dividing top and bottom by their greatest common divisor. One decimal place gives a denominator of 10, two places gives 100, and so on.
FormulaFraction = digits / 10^(decimal places), then divide both parts by their GCD
Worked exampleThe decimal 0.375 is 375/1000 before simplifying, which reduces to 3/8, and it equals 37.5%.
Example
0.375
- Before simplifying
- 375/1000
- Percent
- 37.5%
How to use the decimal to fraction
- Type a decimal in the box, such as 0.375 or -2.75.
- You can also use e notation, such as 2.5e-3.
- The result updates as you type, or press Run. Use Copy result or Download to keep it.
How it works
The decimal is written over a power of ten and reduced to lowest terms. 0.125 is 125/1000, which simplifies to 1/8.
The answer is always exact. A whole-number result appears with no denominator, such as 3.
Only decimals that end are supported. Typing 0.333 gives 333/1000, not 1/3, because the tool cannot know the digits were meant to repeat.
Use at most 80 digits and an exponent from -100 to 100. Fractions, commas and text are rejected.
Improper results also show a mixed number, so 2.75 shows as 11/4 and 2 3/4. The percent value is shown too.
Everything runs in your browser. Your input is not uploaded or stored. If you use Copy link, what you entered is placed in the link.
Questions and answers
How do you convert a decimal to a fraction?
Write the digits over 10, 100, 1000 and so on, matching the number of decimal places, then simplify. 0.75 is 75/100, which reduces to 3/4.
What is 0.375 as a fraction?
0.375 is 375/1000, which simplifies to 3/8.
How do I convert a repeating decimal like 0.333...?
This tool only handles decimals that end. A repeating decimal needs a bit of algebra, which shows 0.333... equals 1/3. Typing 0.333 here gives exactly 333/1000.
Can it show a mixed number?
Yes. When the value is above 1 in size, a Mixed number line appears, such as 2 3/4 for 11/4.
Last updated November 1, 2026. Maintained by SnowRock. How our tools work
All 220 SnowRock tools