We use cookies.This website uses essential cookies to operate core features. With your consent, we also use analytics cookies to understand traffic and improve the service. For more details, see our .
If this tool helped you, you can buy us a coffee ☕
Free online continued fraction calculator. Expand any real number or fraction into a continued fraction, or convert a sequence back into a rational number. Instantly calculate convergents and best rational approximations.
Limit: 30. Decimal inputs have limited precision, so too many terms might not be accurate.
Continued Fraction Representation
x = a₀ + 1 / (a₁ + 1 / (a₂ + 1 / (a₃ + ...)))
Standard notation: [a₀; a₁, a₂, a₃, ...], representing the integer quotients at each step.
Tip: A common approximation for π is [3; 7, 15, 1, 292], which corresponds to the fraction 355/113.
* Max terms reached, continued fraction truncated. Increase max terms for higher precision.
| n | p / q | Decimal |
|---|---|---|
| 0 | 3 / 1 | 3 |
| 1 | 22 / 7 | 3.1428571429 |
| 2 | 333 / 106 | 3.141509434 |
| 3 | 355 / 113 | 3.1415929204 |
| 4 | 103993 / 33102 | 3.141592653 |
| 5 | 104348 / 33215 | 3.1415926539 |
| 6 | 208341 / 66317 | 3.1415926535 |
| 7 | 312689 / 99532 | 3.1415926536 |
| 8 | 833719 / 265381 | 3.1415926536 |
| 9 | 1146408 / 364913 | 3.1415926536 |
| 10 | 4272943 / 1360120 | 3.1415926536 |
| 11 | 5419351 / 1725033 | 3.1415926536 |
When you need to represent a complex decimal, irrational number, or rational fraction as an elegantly structured continued fraction, expanding it manually is both time-consuming and prone to errors. This tool automatically converts any real number input (decimals, fractions, or radical expressions) into a standard continued fraction. It can also work in reverse, converting a sequence of integers back into a simplified fraction, while providing the convergents at each step to help you visualize the best rational approximations.
When entering a continued fraction sequence, ensure all values are integers separated by standard commas. Irrational numbers or infinite decimals can only be expanded to a finite number of terms, so the result is always an approximation of the original number; more terms yield higher precision. This tool operates entirely locally in your browser and does not collect any input data, ensuring your privacy. If the input value is too large or the number of expansion terms is too high, it may cause calculation delays or increased memory usage. We recommend keeping the number of terms under 500.
Continued fractions are widely used in number theory, computer science, cryptography, and engineering approximations. Classic examples: The golden ratio φ = (1+√5)/2 expands to [1; 1, 1, 1, ...], which is the simplest infinite periodic continued fraction. Pi π ≈ [3; 7, 15, 1, 292, 1, 1, 1, 2, ...], and the base of the natural logarithm e = [2; 1, 2, 1, 1, 4, 1, 1, 6, ...]. When dealing with rational function integration, Diophantine approximations, or constructing musical temperaments, using a continued fraction tool can quickly generate a rapidly converging sequence of fractions. We recommend using the convergent table to select the approximation that best balances precision and denominator size.

Prime and Composite Number Calculator
Instantly identify prime, composite, or special numbers. Supports batch checking and mathematical property analysis.

Least Common Multiple (LCM) Calculator
Quickly calculate the least common multiple (LCM) of two or more integers. Supports space-separated number list input.

Inverse Trigonometric Function Calculator
Accurately calculate radian values for inverse trig functions like arcsin and arccos. Supports 6 function types and custom decimal precision.

Circle Area Calculator
Quickly calculate the area of a circle by entering the radius, diameter, or circumference. Supports custom units and precision settings.

Prime and Composite Number Calculator
Instantly identify prime, composite, or special numbers. Supports batch checking and mathematical property analysis.

Least Common Multiple (LCM) Calculator
Quickly calculate the least common multiple (LCM) of two or more integers. Supports space-separated number list input.

Inverse Trigonometric Function Calculator
Accurately calculate radian values for inverse trig functions like arcsin and arccos. Supports 6 function types and custom decimal precision.

Circle Area Calculator
Quickly calculate the area of a circle by entering the radius, diameter, or circumference. Supports custom units and precision settings.

Trigonometry Calculator
Calculate six trigonometric functions from radian values with custom decimal precision.