Skip to main content

Matematika

Lánctört Kalkulátor

🌐

Detailed Guide Coming Soon

We're working on a comprehensive educational guide for the Continued Fraction Calculator in your language. The content below is shown in English.

What is Continued Fraction Calculator?

Continued fractions express a number as an integer plus a chain of reciprocals, usually written in compact form as [a0; a1, a2, a3, ...]. This representation is one of the most elegant links between exact arithmetic and approximation. Instead of describing a number with decimal digits that can feel passive, a continued fraction exposes structural information about the number itself. Rational numbers terminate, quadratic irrationals such as square roots often show repeating patterns, and many irrational constants reveal convergents that provide excellent fraction approximations with relatively small denominators. That is why continued fractions show up in number theory, Diophantine approximation, Pell-type equations, and the study of best rational approximations. They are also useful in teaching because they help students see why some fractions approximate a decimal much better than others. For example, 22/7 and 355/113 are not random approximations to pi; they come directly from its continued fraction convergents. In practical work, continued fractions can help when decimals are inconvenient, when exact fractions are preferred, or when you want to control approximation quality by limiting denominator size. This calculator and explanation are especially useful for students in algebra, precalculus, and introductory number theory, but the idea scales far beyond school math. Once you understand how the expansion is generated and how convergents are read, continued fractions become a powerful way to move between decimals, exact fractions, and deeper mathematical patterns that ordinary rounding tends to hide.

PrimeCalcPro provides professional-grade tools trusted by businesses and academics.

Képlet

f(x)x = [a0; a1, a2, ...] = a0 + 1 / (a1 + 1 / (a2 + ...)). Convergents are built from truncated forms and can be computed with pn = an p(n-1) + p(n-2) and qn = an q(n-1) + q(n-2). Worked example: [3; 4] = 3 + 1/4 = 13/4 = 3.25.

Variable Legend

SzimbólumNévEgységLeírás
nNumber of periodsNumber of periods or compounding intervals, which is a key parameter in the continued fraction calculation that directly influences the final computed result
qQuantity or flowQuantity or flow rate, which is a key parameter in the continued fraction calculation that directly influences the final computed result
xInput variableInput variable or unknown to solve for, which is a key parameter in the continued fraction calculation that directly influences the final computed result

How to Continued Fraction Calculator

  1. 1Start with a number and record its integer part as the first continued fraction term.
  2. 2Subtract the integer part to isolate the fractional remainder that still needs to be represented.
  3. 3Invert that remainder so the next stage becomes a larger number whose integer part can be extracted again.
  4. 4Repeat the same integer-part and reciprocal process to build the full sequence of partial quotients.
  5. 5Use a finite number of terms to form convergents, which are rational approximations obtained by truncating the expansion.
  6. 6Interpret the pattern: terminating expansions indicate rationals, while repeating or long nonterminating patterns usually indicate irrational structure.

Worked Examples

Example 1Exact finite rational
Given:13/4 or 3.25
Eredmény:Continued fraction is [3; 4], which evaluates exactly to 13/4.

A finite expansion means the original number is rational.

The number 3.25 has integer part 3 and remainder 0.25. Inverting 0.25 gives 4, so the process stops with the exact representation [3; 4].

Example 2Sqrt(2) repeating pattern
Given:1.41421356...
Eredmény:Continued fraction begins [1; 2, 2, 2, 2, ...].

Repeating continued fractions often signal quadratic irrationals.

The square root of 2 has the classic repeating pattern [1; 2, 2, 2, ...]. Its convergents such as 3/2, 7/5, and 17/12 become steadily more accurate.

Example 3Golden ratio structure
Given:1.61803398...
Eredmény:Continued fraction begins [1; 1, 1, 1, 1, ...].

The golden ratio has the simplest nonterminating simple continued fraction.

Because every term after the first is 1, the convergents are consecutive Fibonacci ratios such as 2/1, 3/2, 5/3, and 8/5.

Example 4Pi and strong approximations
Given:3.14159265...
Eredmény:Continued fraction begins [3; 7, 15, 1, 292, ...], with convergent 355/113.

A few terms can already give a remarkably accurate fraction.

The convergent 355/113 is famous because it matches pi to six decimal places. Continued fractions explain why this fraction is so strong compared with many nearby alternatives.

Real-World Applications

🏗️

Teaching best rational approximation in algebra and number theory.. This application is commonly used by professionals who need precise quantitative analysis to support decision-making, budgeting, and strategic planning in their respective fields

🔬

Building compact fraction approximations for irrational constants. — Industry practitioners rely on this calculation to benchmark performance, compare alternatives, and ensure compliance with established standards and regulatory requirements, helping analysts produce accurate results that support strategic planning, resource allocation, and performance benchmarking across organizations

📊

Studying periodic patterns in quadratic irrationals such as square roots.. Academic researchers and students use this computation to validate theoretical models, complete coursework assignments, and develop deeper understanding of the underlying mathematical principles

🏥

Explaining why certain famous approximations, like 355/113 for pi, work so well.. Financial analysts and planners incorporate this calculation into their workflow to produce accurate forecasts, evaluate risk scenarios, and present data-driven recommendations to stakeholders

Special Cases

Equivalent rational endings

{'title': 'Equivalent rational endings', 'body': 'A rational number can have two finite simple continued fraction forms if the final term is adjusted, so calculators often choose the canonical version ending with a term greater than 1.'} When encountering this scenario in continued fraction calculations, users should verify that their input values fall within the expected range for the formula to produce meaningful results. Out-of-range inputs can lead to mathematically valid but practically meaningless outputs that do not reflect real-world conditions.

Rounded irrational input

{'title': 'Rounded irrational input', 'body': 'When an irrational number is entered as a finite decimal, the calculator only expands that rounded decimal, not the exact infinite number behind it.'} This edge case frequently arises in professional applications of continued fraction where boundary conditions or extreme values are involved. Practitioners should document when this situation occurs and consider whether alternative calculation methods or adjustment factors are more appropriate for their specific use case.

Periodic square roots

{'title': 'Periodic square roots', 'body': 'Square roots of non-square integers have eventually periodic continued fractions, which is a special and important number-theory case.'} In the context of continued fraction, this special case requires careful interpretation because standard assumptions may not hold. Users should cross-reference results with domain expertise and consider consulting additional references or tools to validate the output under these atypical conditions.

Classic Continued Fraction Examples

NumberExpansionSample ConvergentType
13/4[3; 4]13/4Rational
sqrt(2)[1; 2, 2, 2, ...]17/12Quadratic irrational
golden ratio[1; 1, 1, 1, ...]13/8Irrational
pi[3; 7, 15, 1, 292, ...]355/113Transcendental

Frequently Asked Questions

Q

Why do mathematicians use continued fractions?

A

They provide a systematic way to find excellent rational approximations to real numbers. They also reveal structural patterns that are invisible in ordinary decimal notation. This matters because accurate continued fraction calculations directly affect decision-making in professional and personal contexts. Without proper computation, users risk making decisions based on incomplete or incorrect quantitative analysis. Industry standards and best practices emphasize the importance of precise calculations to avoid costly errors.

Q

What is a simple continued fraction?

A

A simple continued fraction is one where all partial numerators are 1. That is the version most students encounter first and the version used for many classic approximation results. In practice, this concept is central to continued fraction because it determines the core relationship between the input variables. Understanding this helps users interpret results more accurately and apply them to real-world scenarios in their specific context.

Q

How do you calculate a continued fraction by hand?

A

Take the integer part, subtract it, invert the remaining fraction, and repeat. Each new integer part becomes the next term in the expansion. The process involves applying the underlying formula systematically to the given inputs. Each variable in the calculation contributes to the final result, and understanding their individual roles helps ensure accurate application. Most professionals in the field follow a step-by-step approach, verifying intermediate results before arriving at the final answer.

Q

What is a good convergent?

A

A good convergent is a truncated continued fraction that approximates the target number very closely relative to the size of its denominator. Continued fraction convergents are often the best approximations available within a denominator limit. In practice, this concept is central to continued fraction because it determines the core relationship between the input variables. Understanding this helps users interpret results more accurately and apply them to real-world scenarios in their specific context.

Q

Do all irrational numbers have infinite continued fractions?

A

Yes. If the expansion terminated, the number would be rational, so irrational numbers necessarily continue forever. This is an important consideration when working with continued fraction calculations in practical applications. The answer depends on the specific input values and the context in which the calculation is being applied. For best results, users should consider their specific requirements and validate the output against known benchmarks or professional standards.

Q

Who developed continued fractions?

A

Ideas related to continued fractions go back centuries, with important work by mathematicians such as Euclid, Wallis, Euler, Lagrange, and others. Different forms were studied for approximation, algebra, and number-theory purposes. This is an important consideration when working with continued fraction calculations in practical applications. The answer depends on the specific input values and the context in which the calculation is being applied.

Q

When should I recalculate or extend the expansion?

A

Extend it when you need a more accurate convergent, want to inspect repeating structure, or need a fraction with a denominator below a practical limit. More terms generally mean better approximation, provided your starting decimal is accurate enough. This applies across multiple contexts where continued fraction values need to be determined with precision. Common scenarios include professional analysis, academic study, and personal planning where quantitative accuracy is essential.

Common Mistakes to Avoid

  • !Mistaking a rounded decimal for the exact irrational number behind it.
  • !Stopping too early and assuming the first convergent is always accurate enough.
  • !Confusing the continued fraction term list with the fraction value of a convergent.
  • !Ignoring that different decimal precision can change later terms in the expansion.
💡

Pro Tip

Always verify your input values before calculating. For continued fraction, small input errors can compound and significantly affect the final result.

Did you know?

The mathematical principles behind continued fraction have practical applications across multiple industries and have been refined through decades of real-world use.

Regional Guides

🇺🇸 US
Uses US customary units and standards
🇬🇧 UK
May use metric or British standards
🇪🇺 EU
Follows EU/SI conventions where applicable
📖Difficulty:Advanced
Ask a Question

Have a question about this calculator? Get a detailed answer.

Deep Dive

Read the full guide on how to use this calculator effectively

Tovább
Mathematically verified
Reviewed June 2026
Our methodology

Szerezzen heti matematikai tippeket

Csatlakozzon 12 000+ feliratkozóhoz, akik minden héten kapnak tippeket a számológéphez.

🔒
Ingyenes
Minden eszköz örökre ingyenes
Pontos
Szakemberek által ellenőrzött számítások
Azonnali
Valós idejű eredmények gépelés közben
📱
Mobilbarát
Minden eszközön tökéletesen működik

Beállítások

AdatvédelemFeltételekRólunk© 2026 PrimeCalcPro