Fraction Calculator

Add, subtract, multiply and divide two fractions, with simplification, mixed number and decimal value.

Enter the values to see the result here.

Formula

For ab\dfrac{a}{b} and cd\dfrac{c}{d} with b,d≠0b, d \ne 0:

ab+cd=ad+bcbd,ab−cd=ad−bcbd,ab×cd=acbd,ab÷cd=adbc\frac{a}{b} + \frac{c}{d} = \frac{ad + bc}{bd},\quad \frac{a}{b} - \frac{c}{d} = \frac{ad - bc}{bd},\quad \frac{a}{b} \times \frac{c}{d} = \frac{ac}{bd},\quad \frac{a}{b} \div \frac{c}{d} = \frac{ad}{bc}

The result is divided through by gcd⁡(numerator,denominator)\gcd(\text{numerator}, \text{denominator}) and the sign is moved to the numerator. A mixed number is the whole part plus the remainder over the denominator.

Worked example

Compute 34+56\dfrac{3}{4} + \dfrac{5}{6}.

  • ad+bc=3×6+4×5=38ad + bc = 3 \times 6 + 4 \times 5 = 38, and bd=24bd = 24.
  • 38/2438/24 has gcd⁡=2\gcd = 2, so it simplifies to 19/1219/12.
  • As a mixed number: 1 7/121\ 7/12. As a decimal: 1.58331.5833.

Dividing instead: 34÷56=3×64×5=1820=910\dfrac{3}{4} \div \dfrac{5}{6} = \dfrac{3 \times 6}{4 \times 5} = \dfrac{18}{20} = \dfrac{9}{10}.

Common mistakes

  • Adding numerators and denominators separately: 1/2+1/31/2 + 1/3 is not 2/52/5.
  • Forgetting to flip the second fraction when dividing.
  • Leaving a negative sign in the denominator. 1/(−2)1/(-2) should be written −1/2-1/2.
  • Entering a mixed number as a single numerator. Convert 2 1/32\ 1/3 to 7/37/3 first.

Frequently asked questions

Why do I need a common denominator to add fractions?

You can only add pieces of the same size. 1/2 and 1/3 are different sized pieces, so both are rewritten in sixths (3/6 and 2/6) before the numerators are added.

How is the answer simplified?

The numerator and denominator are both divided by their greatest common divisor, found with Euclid's algorithm. 6/8 has a GCD of 2, so it becomes 3/4.

Why does dividing flip the second fraction?

Dividing by 1/4 asks how many quarters fit, which is the same as multiplying by 4. So a/b ÷ c/d = a/b × d/c.

Are large numbers exact?

Yes. Calculations use arbitrary-precision integers, so results are exact even when numerators and denominators have dozens of digits. The decimal shown is a floating-point approximation.

Related calculators