Skip to main content
Calculator Fractions

Continued Fraction Calculator

Evaluate continued fractions.

Sequences & Series

Use the Continued Fraction Calculator

Result
—

How Continued Fraction Calculator Works?

The Continued Fraction Calculator works in 5 steps: it reads a fraction, divides the numerator by the denominator, returns the decimal, and repeats on the reciprocal of each remainder to expose every continued fraction term. Each pass shows the decimal value and the percentage.

  1. Enter the fraction

    Type a numerator and a non-zero denominator, for example 61/27. The calculator accepts improper fractions, which are the usual starting point for a continued fraction.

  2. Read the decimal value

    The calculator divides 61 by 27 and returns 2.259259 with a percentage of 225.93%. The whole-number part, 2, is the first term a0.

  3. Invert the remainder

    Subtract the whole part: 61/27 - 2 = 7/27. Enter the reciprocal 27/7. The calculator returns 3.857143, so the second term a1 is 3.

  4. Repeat until the remainder is zero

    The remainder of 27/7 is 6/7, so the next input is 7/6 = 1.166667 (a2 = 1). The remainder 1/6 gives 6/1 = 6 (a3 = 6), and the process stops at a whole number.

  5. Write the continued fraction

    Collect the whole parts in order. 61/27 equals [2; 3, 1, 6], which reads as 2 + 1/(3 + 1/(1 + 1/6)).

Continued Fraction Calculator Formula

The continued fraction formula is x = a0 + 1/(a1 + 1/(a2 + 1/(a3 + ...))), written in short form as [a0; a1, a2, a3, ...]. Each term a comes from the Euclidean algorithm.

Simple continued fraction

x = a0 + 1/(a1 + 1/(a2 + ... + 1/an))

a0 is any integer and a1 to an are positive integers. A rational number always has a finite simple continued fraction.

Term extraction

ak = floor(xk), x(k+1) = 1/(xk - ak)

Take the whole part of the current value, subtract it, and flip the leftover. The loop ends when the leftover equals 0.

Euclidean algorithm form

p = a0·q + r0, q = a1·r0 + r1, r0 = a2·r1 + r2, ...

For a fraction p/q, the quotients of the repeated divisions are the terms a0, a1, a2, and so on. The last non-zero remainder is the greatest common factor (GCF) of p and q.

Worked example: 64/27

  1. Divide 64 by 27: 64 = 2 × 27 + 10, so a0 = 2.
  2. Divide 27 by 10: 27 = 2 × 10 + 7, so a1 = 2.
  3. Divide 10 by 7: 10 = 1 × 7 + 3, so a2 = 1.
  4. Divide 7 by 3: 7 = 2 × 3 + 1, so a3 = 2. Divide 3 by 1: 3 = 3 × 1 + 0, so a4 = 3.
  5. Write the result: 64/27 = [2; 2, 1, 2, 3] = 2.3704.

Continued Fraction Calculator Conversion Table

The continued fraction conversion table lists 12 fractions with their continued fraction notation, decimal value, and number of terms.

FractionContinued FractionDecimalNumber of Terms
7/5[1; 2, 2]1.43
9/4[2; 4]2.252
13/8[1; 1, 1, 1, 2]1.6255
17/12[1; 2, 2, 2]1.41674
22/7[3; 7]3.14292
25/7[3; 1, 1, 3]3.57144
29/12[2; 2, 2, 2]2.41674
31/13[2; 2, 1, 1, 2]2.38465
43/19[2; 3, 1, 4]2.26324
45/16[2; 1, 4, 3]2.81254
64/27[2; 2, 1, 2, 3]2.37045
103/33[3; 8, 4]3.12123

What is Continued Fraction Calculator?

A Continued Fraction Calculator is a tool that rewrites a fraction as a whole number plus a chain of nested unit reciprocals, and returns the decimal value of each stage. The output notation [a0; a1, a2, ...] lists the whole parts in order.

A simple continued fraction has 2 kinds of terms. The first term a0 is any integer, including 0 for fractions below 1. Every later term is a positive integer. Rational numbers end after a finite number of terms, and irrational numbers such as the square root of 2 continue forever.

The continued fraction form shows the structure of a number. Large terms signal that a short fraction approximates the value well: 103/33 = [3; 8, 4] stays close to 3 + 1/8. Number theory courses, gear design, and calendar calculations use this property to find small fractions that match a target value.

What are the uses of Continued Fraction Calculator?

The Continued Fraction Calculator has 6 main uses, including number theory study, rational approximation, and GCF checks.

  • Studying number theory

    University students expand fractions into [a0; a1, ...] form and connect each term to one step of the Euclidean algorithm.

  • Finding rational approximations

    Engineers stop the expansion early to get a short fraction close to a long one, for example 3 + 1/7 = 22/7 for 3.1429.

  • Checking the GCF

    Teachers show that the last non-zero remainder of the expansion equals the GCF of the numerator and the denominator.

  • Designing gear ratios

    Mechanics pick tooth counts whose ratio matches a target speed ratio within a set tolerance.

  • Solving Diophantine equations

    Algebra students use the expansion of a/b to find whole-number solutions of ax + by = 1.

  • Preparing competition problems

    Math club coaches build nested-fraction puzzles and verify the answers against the decimal output.

Related Sequences & Series Tools

View all 270 tools →