Advanced maths

Fraction calculator

Add, subtract, multiply or divide two fractions with exact integer arithmetic.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Try it, understand it

Explore the result

Inspect the exact operation before comparing its decimal approximation.

Worked example comparison
ExampleOutputWhat to notice
Add the two default fractionsSimplified fraction5/6One half plus one third is exactly five sixths.
Multiply and reduceSimplified fraction3/52/3 × 9/10 reduces to 3/5.
Divide using a reciprocalSimplified fraction5/62/3 ÷ 4/5 reduces to 5/6.

Check your understanding

Is a zero numerator always invalid?

No. A zero denominator is invalid; a zero numerator is only invalid as the divisor fraction.

Does a rounded decimal preserve exact thirds?

No. The fraction is exact, while the printed decimal is an approximation.

Behind the numbers

How this calculation works

Integer arithmetic keeps the fraction exact within the input limits. After the selected operation, the numerator and denominator are reduced by their greatest common divisor and the denominator is made positive.

THE FORMULAa/b + c/d = (ad + bc)/(bd); simplify by the numerator-denominator GCD

A worked example

1/2 + 1/3 = (3 + 2)/6 = 5/6, approximately 0.833333.

Good to know

Exact integer fraction operations under the stated numerator/denominator bounds. Both denominators must be nonzero and the divisor fraction must also be nonzero for division. Signs are normalized, common factors are removed and only the decimal approximation is rounded.

Multiplication and division use different fraction rules

Multiply fractions by multiplying their numerators and denominators. For 2/3 × 9/10, the unreduced result is 18/30 and the reduced result is 3/5. A common factor can be removed before or after multiplication without changing the rational value.

Division by a nonzero fraction uses its reciprocal. For 2/3 ÷ 4/5, multiply 2/3 by 5/4 to get 10/12 = 5/6. The second numerator cannot be zero in division, even though a zero numerator is otherwise a valid fraction. The repeating decimal to fraction tool supplies an exact rational for a specified repeating decimal block.

The fraction simplifier reduces a single pair of integer terms without performing a second arithmetic operation. The fraction to decimal converter instead follows division remainders and marks a recurring block explicitly.

A zero denominator is different from a zero numerator

Zero divided by a nonzero denominator is zero. A fraction with zero as its denominator is undefined and is rejected before an operation. If a denominator is negative, the sign is moved to the numerator so that the displayed denominator remains positive.

The tool uses exact integer arithmetic for the fraction itself. Its decimal result is a separate approximation and should not be substituted back as though it were the same exact representation. Mixed numbers must first be written as integer numerator/denominator pairs; the numerator can be larger than the denominator.

A few questions, answered

Can I multiply by a zero fraction?

Yes, as long as its denominator is nonzero. The product then reduces to zero.

Can I divide by 0/5?

No. That fraction has value zero, so using its reciprocal would divide by zero.

Does simplifying change the value?

No. Dividing numerator and denominator by the same nonzero common factor preserves the rational value.

Find your calculator

Start typing to explore the library.