Decimal to fraction

Type a decimal, get the fraction in lowest terms. The digits you type are taken as exact — 0.375 is 3/8, full stop. For a decimal that repeats, put the repeating block in parentheses: 0.(3) is 1/3.

Try:

Common decimals as fractions

DecimalFraction
0.5 1/2
0.25 1/4
0.375 3/8
0.625 5/8
0.0625 1/16
0.125 1/8
0.75 3/4
0.875 7/8
0.3125 5/16

The full set is on the fraction–decimal chart. For a decimal that came off a calculator already rounded, try rational approximation instead.

Common questions

How do I turn a decimal into a fraction?
Write the digits after the point over a power of ten, then reduce. 0.375 has three digits, so it is 375/1000; dividing top and bottom by their GCD of 125 gives 3/8.
What about a repeating decimal like 0.333…?
A repeating decimal needs its own notation: type 0.(3) and the repeating block converts exactly to 1/3. Typed as 0.333, it is exactly 333/1000 — which is what you wrote, so that is what you get.
Why did my calculator decimal give an ugly fraction?
Because the decimal was already rounded. 0.6667 is exactly 6667/10000, not 2/3. If you want the simplest fraction near a rounded value, use the rational approximation tool, which shows candidates and their errors instead of guessing.
Where this comes from. Exact rational arithmetic on the values shown — fractions are pairs of integers until display, and inch–metric conversion uses 25.4 mm to the inch, exact by definition since 1959. See the full methodology.