A fraction calculator that does the fiddly parts for you — finding common
denominators, flipping divisors, keeping signs tidy and reducing to lowest terms —
and then shows its working so you can learn the method, not just copy the
answer. Enter ordinary fractions like 3/4, mixed numbers like 2 1/3, whole
numbers like 5, or decimals like 0.75, mix them in a single calculation, and
chain up to six operands with their own operators. Every result is returned as a
reduced fraction, a decimal, and (when it is an improper fraction) a mixed number.
How it works
The tool uses exact integer arithmetic, so there is no floating-point drift. Each
operand is parsed into a numerator and denominator: a mixed number W N/D becomes
(W×D + N)/D, a whole number n becomes n/1, and a terminating decimal like
0.75 becomes 75/100, which reduces to 3/4. The four operations follow the
standard rules:
- Add / subtract:
a/b ± c/d = (a·d ± c·b) / (b·d)— a common denominator via cross-multiplication. - Multiply:
a/b × c/d = (a·c) / (b·d)— numerators times numerators, denominators times denominators. - Divide:
a/b ÷ c/d = a/b × d/c = (a·d) / (b·c)— invert the divisor and multiply.
After each step the result is reduced to lowest terms by dividing the numerator and denominator by their greatest common divisor (GCD), computed with the Euclidean algorithm. The sign is always carried on the numerator so the denominator stays positive. When you chain several operands, the calculator evaluates left to right and carries the exact, un-reduced fraction forward between steps — only the final answer (and each step’s display) is simplified — which guarantees the result is exact.
Worked example
Compute 1/2 + 1/3 − 1/6, left to right.
1/2 + 1/3 = (1×3 + 1×2) / (2×3) = 5/6.5/6 − 1/6 = (5×6 − 1×6) / (6×6) = 24/36, which reduces to2/3.
So the answer is 2/3, or about 0.6667 as a decimal. For a multiply-and-divide
example, 2 1/3 ÷ 1/2 first converts the mixed number to 7/3, then divides:
7/3 ÷ 1/2 = 7/3 × 2/1 = 14/3, which is the mixed number 4 2/3 and the decimal
4.6667.
| Operation | Example | Result | Decimal |
|---|---|---|---|
| Add | 1/2 + 1/3 | 5/6 | 0.8333… |
| Subtract | 3/4 − 1/4 | 1/2 | 0.5 |
| Multiply | 2/3 × 3/4 | 1/2 | 0.5 |
| Divide | 1/2 ÷ 1/4 | 2 | 2 |
| Mixed | 2 1/3 + 1 1/6 | 7/2 (3 1/2) | 3.5 |
Reference: a fraction is in lowest terms when
gcd(numerator, denominator) = 1. Two fractions are equal when their cross-products match:a/b = c/dexactly whena·d = b·c.
Enter your operands, choose the operations, and the result and full working update instantly — all in your browser, with nothing uploaded or stored.