How it works
A fraction is just a numerator over a denominator, and every operation comes down to integer arithmetic followed by reducing the answer. Enter two fractions, pick an operation, and the calculator returns the reduced fraction, the mixed number (when the result is improper), and the decimal value.
Adding and subtracting
Addition and subtraction need a common denominator. The direct formulas are:
- Addition: a/b + c/d = (ad + cb) / (bd)
- Subtraction: a/b − c/d = (ad − cb) / (bd)
For 1/2 + 1/4, that is (1×4 + 1×2) / (2×4) = 6/8, which reduces to 3/4. Using the product of the two denominators (bd) always gives a valid common denominator, and reducing at the end cleans up any extra factors.
Multiplying
Multiplication is the simplest case: multiply the tops together and the bottoms together.
- Multiplication: a/b × c/d = ac / bd
So 2/3 × 3/4 = 6/12, which reduces to 1/2.
Dividing
To divide, multiply by the reciprocal of the second fraction (keep, change, flip):
- Division: a/b ÷ c/d = ad / bc
For 1/2 ÷ 3/4 you get (1×4) / (2×3) = 4/6, which reduces to 2/3. If the second numerator is zero, the division is undefined, and the calculator shows a friendly message instead of an error value.
Reducing the result
Once the raw numerator and denominator are known, the calculator reduces the fraction using the greatest common divisor (GCD). It finds the largest number that divides both, then divides each by it. It also keeps the denominator positive, moving any negative sign to the numerator, so 1/-2 displays as -1/2.
Reading the output
- Reduced fraction: the answer in lowest terms, such as
3/4. - Mixed number: shown when the result is improper, such as
1 1/4for5/4. - Decimal value: the same result as a decimal, rounded to about six significant digits with trailing zeros trimmed, so
1/3shows as0.333333.
A denominator of zero is never allowed, so entering 0 on the bottom prompts you to fix it rather than returning a broken result.