Skip to main content
Calculator Fractions

Continued Fraction Convergents Calculator

Calculate rational approximations.

Sequences & Series

Use the Continued Fraction Convergents Calculator

Result
—

How Continued Fraction Convergents Calculator Works?

The Continued Fraction Convergents Calculator works in 5 steps: it reads a decimal, returns the exact reduced fraction, and that fraction is expanded into terms that generate each convergent in order. Every convergent is a fraction closer to the target than any smaller-denominator fraction.

  1. Enter the target decimal

    Type the value to approximate, for example 0.3183. The calculator converts the decimal to 3183/10000 and shows the fraction in lowest terms.

  2. Expand the fraction into terms

    Repeated division of 3183/10000 gives the terms [0; 3, 7, 17, 2, 1, 8].

  3. Set the starting values

    Use h(-2) = 0, h(-1) = 1 for numerators and k(-2) = 1, k(-1) = 0 for denominators.

  4. Build each convergent

    Apply hk = ak·h(k-1) + h(k-2) and the same rule for kk. The convergents are 0, 1/3, 7/22, 120/377, 247/776, ending at 3183/10000.

  5. Pick the convergent that fits

    Choose the first convergent inside the required tolerance. 7/22 = 0.318182 is within 0.00012 of the target, and 120/377 is within 0.0000024.

Continued Fraction Convergents Calculator Formula

The continued fraction convergents formula is hk/kk with hk = ak·h(k-1) + h(k-2) and kk = ak·k(k-1) + k(k-2). Each convergent is the value of the continued fraction cut after term ak.

Convergent recurrence

hk = ak·h(k-1) + h(k-2), kk = ak·k(k-1) + k(k-2)

Seed the recurrence with h(-1) = 1, h(-2) = 0, k(-1) = 0, k(-2) = 1. The k-th convergent is Ck = hk/kk.

Neighbor identity

h(k)·k(k-1) - h(k-1)·k(k) = (-1)^(k+1)

Consecutive convergents differ by exactly 1/(kk·k(k-1)), so every convergent is already in lowest terms.

Error bound

|x - hk/kk| < 1/(kk·k(k+1))

The gap between the target x and a convergent is smaller than 1 over the product of 2 consecutive denominators. Convergents alternate above and below x.

Worked example: convergents of 0.4142

  1. Convert: 0.4142 = 4142/10000 = 2071/5000.
  2. Expand: 2071/5000 = [0; 2, 2, 2, 2, 2, 1, 1, 29].
  3. Apply the recurrence to the first terms: C0 = 0/1, C1 = 1/2, C2 = (2·1 + 0)/(2·2 + 1) = 2/5.
  4. Continue: C3 = (2·2 + 1)/(2·5 + 2) = 5/12, C4 = (2·5 + 2)/(2·12 + 5) = 12/29, C5 = 29/70.
  5. Check the error: 29/70 = 0.414286, which is within 0.0001 of 0.4142.

Continued Fraction Convergents Calculator Conversion Table

The continued fraction convergents conversion table lists 10 decimals of well-known constants with the exact fraction, the leading terms, and the first 5 convergents.

DecimalExact FractionLeading TermsConvergents C0 to C4
0.57721443/2500[0; 1, 1, 2, 1, ...]0, 1, 1/2, 3/5, 4/7
0.69316931/10000[0; 1, 2, 3, 1, ...]0, 1, 2/3, 7/10, 9/13
1.09865493/5000[1; 10, 7, 23, 3]1, 11/10, 78/71, 1805/1643, 5493/5000
1.41421141421/100000[1; 2, 2, 2, 2, ...]1, 3/2, 7/5, 17/12, 41/29
1.61803161803/100000[1; 1, 1, 1, 1, ...]1, 2, 3/2, 5/3, 8/5
1.732433/250[1; 1, 2, 1, 2, ...]1, 2, 5/3, 7/4, 19/11
2.236559/250[2; 4, 4, 4, 1, 2]2, 9/4, 38/17, 161/72, 199/89
2.7182867957/25000[2; 1, 2, 1, 1, ...]2, 3, 8/3, 11/4, 19/7
3.14159314159/100000[3; 7, 15, 1, 25, ...]3, 22/7, 333/106, 355/113, 9208/2931
3.316616583/5000[3; 3, 6, 3, 3, ...]3, 10/3, 63/19, 199/60, 660/199

What is Continued Fraction Convergents Calculator?

A Continued Fraction Convergents Calculator is a tool that lists the sequence of fractions obtained by cutting a continued fraction after each term, from the roughest approximation to the exact value. These fractions are called convergents.

Convergents are best rational approximations. No fraction with a denominator smaller than kk is closer to the target than the convergent hk/kk. The value 3.14159 shows the effect: 22/7 has error 0.0013, and 355/113 has error 0.0000029 with a denominator of only 113.

Convergents alternate around the target value. C0, C2, and C4 sit below the target, and C1, C3, and C5 sit above the target, if the target is positive and the expansion is simple. The gap between neighbors shrinks with each step, so the list closes in on the decimal from both sides.

What are the uses of Continued Fraction Convergents Calculator?

The Continued Fraction Convergents Calculator has 6 main uses, including gear ratio selection, calendar design, and fixed-point programming.

  • Selecting gear ratios

    Machinists pick 2 tooth counts whose ratio is a convergent of the required speed ratio, which keeps the gear sizes small.

  • Designing calendars

    Calendar makers use convergents of 0.2422 days per year to choose leap-year cycles such as 1 in 4 and 8 in 33.

  • Writing fixed-point code

    Programmers replace a decimal constant with a convergent fraction to compute with integers only.

  • Tuning musical scales

    Music theorists compare convergents of log2(3/2) = 0.585 to explain why 12-note scales work: 7/12 is a convergent.

  • Approximating irrational numbers

    Students list convergents of the square root of 2 and see the pattern 3/2, 7/5, 17/12, 41/29.

  • Checking approximation error

    Analysts confirm that a chosen fraction meets a tolerance with the bound 1/(kk·k(k+1)).

Related Sequences & Series Tools

View all 270 tools →