Loading…

Fraction to Decimal and Vice Versa

Math Algebra • Fractions and Decimals

View all topics

Convert fractions to decimals and decimals to fractions, including terminating decimals and recurring decimals. Repeating parts are shown with parentheses in plain text and with a bar in the MathJax result.

Fraction → decimal: divide numerator by denominator Terminating: remainder becomes 0 Recurring: a remainder repeats Decimal → fraction: use powers of 10

Conversion setup

Fraction input

Enter \(p/q\), where \(q\ne0\). Examples: 5/8, 1/3, 22/7, -7/12.

Quick examples

Ready
Enter a fraction or decimal, then click “Convert”.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

How do you convert a fraction to a decimal?

Divide the numerator by the denominator. The decimal terminates if the remainder becomes zero, and it recurs if a remainder repeats.

How do you convert 5/8 to a decimal?

Divide 5 by 8. The result is 0.625, which terminates.

Why does 1/3 become a repeating decimal?

In long division, the remainder repeats, so the same digit pattern repeats forever. Therefore 1/3 = 0.(3), or 0 with a bar over 3.

How do you write a recurring decimal in this calculator?

Use parentheses around the repeating part. For example, 0.(3) means 0.333..., and 1.2(34) means 1.2343434...

How do you convert a terminating decimal to a fraction?

Write the decimal digits over a power of 10, then simplify. For example, 0.625 = 625/1000 = 5/8.

How do you convert a recurring decimal to a fraction?

Let the decimal equal x, multiply by powers of 10 so the repeating parts line up, subtract the equations, and solve for x.

What is the repeating block?

The repeating block is the group of digits that repeats forever. In 3.(142857), the repeating block is 142857.

What is the repeat period?

The repeat period is the length of the repeating block. For 3.(142857), the period is 6.

Does the calculator simplify fractions automatically?

Yes. It divides numerator and denominator by their greatest common divisor to give the final fraction in lowest terms.

Can the denominator be zero?

No. A fraction with denominator zero is undefined, so the calculator rejects denominator 0.