Put any digits that repeat forever in brackets: 0.(3) is 0.333…, 0.1(6) is 0.1666…, 1.(09) is 1.090909… Without brackets the decimal is taken literally.

Try:

A fraction (3/8), a mixed number (1 1/2) or a negative (-5/8).

1/6
Exact fraction

Before simplifying
Exact fraction
As a mixed number
Closest simple fraction
Approximation error
Exact decimal
Rounded decimal
Terminating or recurring
Repeating block
Fraction in lowest terms

How it was worked out

Conversions are done in exact whole-number arithmetic, so a recurring decimal returns the fraction it genuinely equals rather than a rounded one. An unbracketed decimal is taken at face value: 0.3333 converts to 3333/10000, with 1/3 offered alongside it as the fraction you probably meant.

Common conversions

FractionDecimalPercentage
1/20.550%terminates
1/30.(3)33.33%recurs
2/30.(6)66.67%recurs
1/40.2525%terminates
3/40.7575%terminates
1/50.220%terminates
2/50.440%terminates
3/50.660%terminates
4/50.880%terminates
1/60.1(6)16.67%recurs
5/60.8(3)83.33%recurs
1/70.(142857)14.29%recurs
1/80.12512.5%terminates
3/80.37537.5%terminates
5/80.62562.5%terminates
7/80.87587.5%terminates
1/90.(1)11.11%recurs
1/100.110%terminates
3/100.330%terminates
7/100.770%terminates
1/160.06256.25%terminates
3/160.187518.75%terminates
5/160.312531.25%terminates
11/160.687568.75%terminates

Percentages are rounded to two decimal places; the decimals are exact, with brackets marking the recurring digits.

About this calculator

A fraction turns into a terminating decimal only when its simplified denominator is built entirely from 2s and 5s. The reason is that our decimal notation is built on powers of ten, and ten factorises into 2 × 5. A denominator made only of those primes divides into some power of ten exactly — eighths work because 8 divides 1000, giving 0.125 — and dividing by a power of ten is nothing more than sliding the decimal point. Bring in any other prime, a 3 or a 7 or an 11, and no power of ten will ever be divisible by it, so the long division can never reach a remainder of zero. That is the whole rule, and it is why 1/3 recurs while 1/8 does not.

Simplifying first is essential to that test. 6/12 looks like it has a denominator containing a 3, but it reduces to 1/2 and terminates perfectly well. It is always the denominator in lowest terms that decides.

Going the other way — recurring decimal back to fraction — uses a piece of algebra that feels like sleight of hand the first time you see it. Call the number x. Multiply by whatever power of ten shifts the decimal point exactly one full repeat to the right, so 0.(3) becomes 10x = 3.(3). Now subtract the original from that: the infinite tails are identical, so they cancel completely, leaving 9x = 3 and therefore x = 1/3. The infinite part disappears because you have arranged for it to be subtracted from itself. Where the recurring part does not start immediately, as in 0.1(6), you shift twice — once to clear the non-repeating digits, once for the repeat — which is where the pattern of nines followed by zeros in the denominator comes from.

That same algebra settles the argument about 0.999… Apply the method: 10x = 9.999…, subtract x = 0.999…, and you get 9x = 9, so x = 1. Not approximately one, not one for practical purposes — exactly one. 0.999… and 1 are two notations for a single number, in the same way that 1/2 and 2/4 are. If they were different numbers there would have to be some number between them, and there is not one. Enter 0.(9) above and the working shows this happening line by line.

One practical caution. A decimal you have read off a screen is usually already rounded, so converting it literally gives you something like 3333/10000 rather than the 1/3 it came from. That is not the converter being unhelpful — 0.3333 genuinely is 3333/10000. When you want the fraction someone started with, use the closest simple fraction shown alongside, which finds the neatest fraction within the denominator limit you choose. Sixteenths are the useful setting for anything measured in inches; 1000 is better if you are chasing a recurring decimal that got truncated.

Frequently asked questions

How do you convert a recurring decimal to a fraction?

Multiply by the power of ten that shifts the decimal point exactly one repeat to the right, then subtract the original number. The infinite tails are the same on both lines, so they cancel and you are left with an ordinary equation to solve. For 0.(3): 10x = 3.(3), minus x = 0.(3), gives 9x = 3 and x = 1/3. The shortcut version is to put the repeating digits over that many nines — 0.(27) is 27/99, which simplifies to 3/11.

Why does 1/3 recur but 1/8 does not?

Because 8 is 2 × 2 × 2 and 3 is just 3. Our decimals are built on powers of ten, and ten is 2 × 5, so a denominator made only of 2s and 5s will divide exactly into some power of ten — 8 divides into 1000, giving 0.125. Three divides into no power of ten at all, so the division never terminates. Check the simplified denominator: if its prime factors are only 2s and 5s the decimal stops, and otherwise it recurs forever.

Does 0.999… really equal 1?

Yes, exactly — not nearly, not for practical purposes. Run the standard conversion: if x = 0.999… then 10x = 9.999…, and subtracting gives 9x = 9, so x = 1. Another way to see it: 1/3 is 0.333… and multiplying both sides by three gives 1 = 0.999… They are two ways of writing one number, and there is no number you could name that sits between them.

What is the difference between the exact fraction and the closest simple fraction?

The exact one is what your decimal literally equals: type 0.3333 and it is genuinely 3333/10000. The closest simple fraction is the neatest fraction within the denominator limit you pick, which for 0.3333 at a limit of 16 is 1/3. Use the exact one when the decimal is precise, and the simple one when it has clearly been rounded off somewhere before it reached you.

How do I write a recurring decimal in the box?

Put the repeating digits in brackets at the end. 0.(3) means the 3 repeats forever; 0.1(6) means the 1 happens once and the 6 repeats; 1.(09) means 09 repeats as a pair, giving 1.090909… Anything outside the brackets is taken as occurring only once. Without brackets the number is read literally, as a terminating decimal.

More General calculators
Fraction Calculator
Add, subtract, multiply and divide fractions, with the working shown.
💯
Percentage Calculator
X% of Y, X as a % of Y, or the % change between two values.
🔬
Scientific Calculator
Trig, logs, powers and roots, with a DEG/RAD toggle.
📐
Unit Converter
Length, weight, volume, temperature, area and speed.