Summary
Add, subtract, multiply, or divide two integer fractions and simplify the result.
Calculation details
The greatest common divisor reduces the result and the denominator is normalized positive. Calculations retain raw JavaScript number precision; display values are rounded to at most six decimal places.
Formula
Addition uses (a×d + c×b)/(b×d); the other operations use their standard common-denominator or reciprocal rules.
Worked example
Fraction Calculator example
1/2 + 1/3 = 5/6.
How it works
Enter two integer numerators and denominators and pick an operation. The result is reduced with the GCD and the denominator is kept positive.
Frequently asked questions
How accurate is the Fraction Calculator?
The calculation keeps raw numeric precision and rounds only the displayed result to at most six decimal places.
What should I do with an invalid result?
Check that every visible value is finite and that no required divisor is zero.