How to Convert a Decimal to a Fraction: Step-by-Step
To convert a decimal to a fraction, write the digits over the matching power of ten and reduce β so 0.375 becomes 375/1000, which simplifies to 3/8. For repeating decimals, algebra gives an exact result, and the ByteTools Decimal to Fraction Converter does both for you instantly. Enter a value, mark any repeating block, and read the exact fraction, its simplest form and a mixed number β all computed privately in your browser. Here is how to use it and the math behind it.
What the converter does
The tool turns any decimal into a fraction. Give it a terminating decimal like 0.375 and it returns 3/8; mark a repeating block such as 0.1(6) and it returns the exact 1/6 using proper algebra rather than an approximation. Every result comes simplified to lowest terms, and when the value is greater than one, it also shows a mixed number. It even carries a negative sign into the numerator, so -0.75 becomes -3/4.
Step-by-step
- Type the decimal you want to convert into the input box.
- Mark a repeat if needed. If part of the decimal repeats, tick Repeating decimal and enter how many trailing digits repeat.
- Read the three results: the exact fraction, its simplified form, and the mixed number where the value exceeds one.
- Confirm with the reverse check. The tool shows the fraction converted back to a decimal so you can verify it matches.
- Copy the fraction you need with one click.
The two methods behind the answer
| Decimal type | Method | Example |
|---|---|---|
| Terminating | Digits over a power of ten, then reduce | 0.375 → 375/1000 → 3/8 |
| Repeating | Set x = decimal, shift by a power of ten, subtract to cancel the repeat | 0.333β¦ → 1/3 |
| Greater than one | Convert, then split into whole part + fraction | 2.25 → 9/4 → 2 1/4 |
For a terminating decimal, the number of decimal places tells you the denominator's power of ten, and reducing by the greatest common divisor gives the simplest fraction. For a repeating decimal, you cannot use a power of ten alone β the algebra of subtracting a shifted copy of the number is what cancels the endless repetition and produces an exact fraction. The converter applies whichever method fits automatically.
Why do it in the browser
Everything runs locally with JavaScript, so nothing is uploaded. That makes the converter fast, private and fully usable offline as a PWA β handy for a student checking homework on a spotty connection or an engineer converting a measurement without leaving their workflow. Because repeating decimals are handled with real algebra, the answers are exact, not rounded guesses.
Try the Decimal to Fraction Converter β free and 100% in your browser.
FAQ
How do I tell the tool that my decimal repeats?
Tick the Repeating decimal option and enter how many of the trailing digits form the repeating block. For 0.1666β¦ the repeating part is a single digit (the 6), so you would mark one repeating digit and the tool returns the exact 1/6.
What is the difference between the exact fraction and the simplified form?
The exact fraction is the raw digits-over-power-of-ten result, such as 375/1000. The simplified form reduces that by the greatest common divisor to its lowest terms, 3/8. Both represent the same value; the simplified one is usually what you want to use.
Why does the tool show a mixed number sometimes but not always?
A mixed number only appears when the decimal is greater than one, because that makes the fraction improper. For 2.25 the improper fraction 9/4 is shown as 2 1/4. For values below one, there is no whole part, so no mixed number is displayed.
Can I trust the result for a long, messy decimal?
If the decimal terminates or you mark its repeat, the fraction is exact. If you paste a long non-repeating decimal without marking a repeat, the tool gives the exact fraction of the digits you typed β the closest fraction to what you entered. Use the reverse-check display to confirm it matches.
Related free tools
- Fraction Calculator β add, subtract, multiply and divide fractions.
- Fraction Simplifier β reduce any fraction to lowest terms.
- Ratio Calculator β scale and solve ratios.
- Percentage Calculator β convert between percentages and values.
Built by ByteVancer
ByteTools is a free product of ByteVancer, a software and web development studio building web apps, SaaS and custom software. If you need precise, private math tooling inside your own app, explore how ByteVancer can help.
Recommended reading
Decimal to Fraction: 7 Real-World Use Cases
See where a decimal to fraction converter earns its keep β from woodworking cut lists to recipe scaling, tolerances, music timing and classroom checks.
Percentage to Fraction: Real Use Cases and Examples
Real use cases for a percentage-to-fraction converter: recipe scaling, classroom math, workshop measurements, probability, and finance, with worked examples.
Percentage to Fraction: Tips and Common Mistakes
Pro tips for converting percentages to fractions: handle repeating decimals and over-100% values, and avoid the most common simplifying mistakes.
How to Convert a Percentage to a Fraction Free
Learn how to convert any percentage to a simplified fraction and decimal in your browser, step by step, with a free private percent-to-fraction converter.