Decimal to fraction calculator

Enter a decimal such as 0.75 or a repeating decimal with the repeating digits in brackets, like 0.1(6). You get the fraction in lowest terms, the mixed number and the decimal back with its repeating block. A limit on the denominator finds the closest simple fraction to a long decimal.

Examples: 0.75, -2.5, 1.5e-3, 0.(3) for 0.333…, 1.2(45) for 1.2454545…
Simplest fraction1/3
As a decimal
0.(3)
Before simplifying
3/9
Divided by (GCD)
3

Runs in your browser: nothing you enter is sent anywhere.

How to use it

  1. Type the decimal. For a repeating decimal, write the repeating block in brackets.
  2. Read the fraction in lowest terms, with the mixed number when the value is above 1.
  3. To approximate a long decimal, pick a denominator limit instead of Exact fraction.

How it works

  • Terminating decimals are read as digits over a power of ten, then reduced with the greatest common divisor (the same exact fraction arithmetic as the fraction calculator).
  • Repeating decimals use the formula (AB − A) / (10^a × (10^b − 1)) with A the non-repeating digits and B the repeating ones.
  • Closest fraction walks the continued-fraction convergents of the value and stops before the denominator would pass the limit, then picks the best of the last convergent and the best intermediate fraction.

Worked examples

  • 0.75 = 75/100 = 3/4.
  • 2.5 = 25/10 = 5/2 = 2 1/2.
  • 0.(3) = 3/9 = 1/3.
  • -2.1(6): (216 − 21) / 90 = 195/90 = 13/6, so -13/6 = -2 1/6.
  • 3.14159265 with a limit of 1000 gives 355/113.

Tips

  • Percentages work the same way: 12.5% is 0.125, which is 1/8.
  • To add or compare the fractions you get, use the fraction calculator.

Frequently asked questions

How do I convert a decimal to a fraction by hand?

Write the digits over a power of ten with as many zeros as there are decimal places, then divide top and bottom by their greatest common divisor. 0.75 = 75/100, and dividing both by 25 gives 3/4.

How do I enter a repeating decimal?

Put the repeating digits in brackets after the point and any non-repeating digits. 0.(3) is 0.333…, 0.1(6) is 0.1666… and 1.(142857) is 1.142857142857…. The fraction is exact: 0.(9) is exactly 1.

How is a repeating decimal turned into a fraction?

With non-repeating digits A (a of them) and repeating digits B (b of them), the value is (the whole digit string AB minus the digits A) divided by 10^a × (10^b − 1). For 0.1(6) that is (16 − 1) / (10 × 9) = 15/90 = 1/6.

What does the denominator limit do?

A decimal copied from a calculator, such as 3.14159265, is a finite decimal, so its exact fraction has a huge denominator. With a limit, the tool finds the closest fraction whose denominator is at most that number: 22/7 for 10, 311/99 for 100 and 355/113 for 1000.

Why is the fraction not what I expected for 0.333?

0.333 is exactly 333/1000, not 1/3. To get 1/3, type 0.(3) with the repeating digit in brackets, or choose a denominator limit such as 100.

More in Math

All tools in this category: Math ·Updated November 3, 2026

Privacy choices

Google Analytics shows us which tools are used and whether they work. It may set cookies. Your choice is kept in this browser.