BYTETOOLS

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

  1. Type the decimal you want to convert into the input box.
  2. Mark a repeat if needed. If part of the decimal repeats, tick Repeating decimal and enter how many trailing digits repeat.
  3. Read the three results: the exact fraction, its simplified form, and the mixed number where the value exceeds one.
  4. Confirm with the reverse check. The tool shows the fraction converted back to a decimal so you can verify it matches.
  5. Copy the fraction you need with one click.

The two methods behind the answer

Decimal typeMethodExample
TerminatingDigits over a power of ten, then reduce0.375 → 375/1000 → 3/8
RepeatingSet x = decimal, shift by a power of ten, subtract to cancel the repeat0.333… → 1/3
Greater than oneConvert, then split into whole part + fraction2.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

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.