Decimal ↔ Fraction

Math

Turns a decimal into a simplified fraction and a fraction into a decimal, and shows whether the decimal terminates or repeats, and how long the repeating block is.

A simplified fraction has a terminating decimal only if its denominator has no prime factors other than 2 and 5. Any other prime factor makes it repeat.

FractionDecimalType
3/80.375Terminating
1/30.333...Repeating (1 digit)
1/70.142857...Repeating (6 digits)

0.45 = 45/100 = 9/20
0.1666... = 1/6

Results are for information only. For tax, salary, loan or health decisions, check official sources or ask a professional.

All Math tools