Fractions
Accepted: improper fractions (7/3), mixed numbers (2 3/4), decimals (0.75) and whole numbers. A negative mixed number is written -2 3/4.
Formula
a/b ± c/d = (a·d ± c·b) ÷ (b·d) · a/b ÷ c/d = (a·d) ÷ (b·c)
reduce with gcd(numerator, denominator), keep the denominator positive
Result
Enter two fractions and pick an operation. You will get the exact answer as a fraction, as a mixed number and as a decimal, plus every step of the working.
Why this uses exact fractions, not decimals
a/b ± c/d = (a·d ± c·b)/(b·d) · a/b ÷ c/d = (a·d)/(b·c) · reduce by gcd(n, d) with b > 0
Numerators and denominators are held as BigInt integers, so 1/3 + 1/6 is exactly 1/2 rather than 0.49999999999999994, and a fraction such as 1/3 never drifts after repeated additions. Every step is shown as integer arithmetic: the cross-multiplication for addition and subtraction, numerator and denominator products for multiplication and division, and the greatest common divisor that brings the answer back to lowest terms. Decimals appear only for display, and a repeating expansion is marked with an ellipsis.
Inputs are limited to 30 digits so the working stays readable. Everything runs in this tab — nothing is uploaded or stored.