Continued Fraction Calculator — Expand a Number and See Its Convergents
Our Continued Fraction Calculator takes any non-negative decimal number or fraction (p/q) and expands it into its continued fraction terms [a₀; a₁, a₂, ...] using the Euclidean algorithm, then shows every convergent — the best rational approximations you get by truncating the expansion early — as both an exact fraction and a decimal, computed with BigInt precision throughout.
Quick Answer
Enter a decimal number or fraction below to instantly see its continued fraction expansion [a₀; a₁, a₂, ...] and a table of every convergent — its best rational approximations.
Enter a non-negative decimal (e.g. 3.14159) or a fraction in the form p/q (e.g. 355/113).
How to Use the Continued Fraction Calculator — Expand & Evaluate Online
- 1
Enter a non-negative decimal number (like 3.14159) or a fraction in the form p/q (like 355/113).
- 2
Click 'Expand' to compute the continued fraction terms.
- 3
Review the convergents table showing each successively better rational approximation.
Why Use Continued Fraction Calculator — Expand & Evaluate Online?
Every rational number has a finite continued fraction expansion, found the same way the Euclidean algorithm finds a gcd — by repeatedly taking the integer part and inverting the remainder. Truncating that expansion at any point gives a 'convergent,' the best possible rational approximation with a denominator that small — the same principle behind why 22/7 and 355/113 are famous approximations of π. This calculator performs the exact expansion with BigInt precision and lists every convergent along the way, letting you see exactly how the approximation improves at each step.
Frequently Asked Questions
Related Tools
Golden Ratio Calculator — Phi Proportions Online
Calculate golden ratio proportions from any number. Generate phi-based sequences, find complementary segments, and golden rectangle dimensions with step-by-step explanations.
Scientific Notation Calculator — Convert & Calculate Online
Convert numbers to scientific notation and perform arithmetic (+, -, ×, ÷) between values in scientific notation. Free calculator with step-by-step explanations.
Extended Euclidean Algorithm Calculator — gcd + Bézout Coefficients
Compute gcd(a, b) and the Bézout coefficients x, y satisfying ax + by = gcd(a, b) using the extended Euclidean algorithm. Free calculator with BigInt precision.