Fraction Calculator
Add, subtract, multiply and divide fractions and mixed numbers exactly, with step-by-step working and repeating-decimal conversion.
Open toolTurn a decimal or constant such as π into the best fraction for a maximum denominator or tolerance, with its continued fraction.
Enter a decimal like 0.4142 or an expression like pi, e or sqrt(2) and choose either a maximum denominator or a tolerance. You get the closest fraction with a denominator no larger than your limit (π → 355/113 for 1,000), or the fraction with the smallest denominator inside ± the tolerance (π ± 0.002 → 22/7), with its decimal value and error.
The continued fraction [a₀; a₁, a₂, …] and the table of convergents show how each better approximation arises. Decimal input is treated exactly (0.333 is exactly 333/1000); expressions are evaluated in double precision and the page notes that later convergents then describe the rounded value. All fraction arithmetic is exact. Everything is calculated in your browser; nothing you enter is uploaded.
Your details
Decimals, Expressions such as pi or sqrt(2)
Processed in this browser
Instant, in-browser. Nothing is uploaded.
Your result
Shown instantly, ready to copy or export
Type a decimal or an expression such as pi.
Choose Maximum denominator or Tolerance and set the limit.
Read the best fraction, its error and the convergents table.
Zero-upload architecture
Free, with no sign-up or watermark · Your details stay on your device
Launch the app. There is nothing to install and no account to create.
Choose Maximum denominator or Tolerance and set the limit.
Read the best fraction, its error and the convergents table.
Add, subtract, multiply and divide fractions and mixed numbers exactly, with step-by-step working and repeating-decimal conversion.
Open toolConvert whole numbers and fractions between any bases from 2 to 36, with repeating digits and two’s-complement views.
Open toolSimplify ratios (even with decimals), solve a:b = c:x, scale recipe or plan quantities and split a total by a ratio.
Open toolFind the prime factors of a whole number up to 40 digits, plus all divisors, the divisor count and sum, and Euler’s totient.
Open tool