# Fraction calculator

## To add, subtract, multiply or divide fractions, follow these steps:

**Adding and subtracting fractions:**

- Find the least common multiple (LCM) of the denominators of the fractions.
- Convert each fraction to an equivalent fraction with the LCM as the denominator.
- Add or subtract the numerators of the equivalent fractions.
- Simplify the resulting fraction by dividing both the numerator and denominator by their greatest common factor (GCF), if possible.
- If necessary, convert the resulting fraction to a mixed number or improper fraction.

**Example: Add 1/3 and 2/5.**

- LCM of 3 and 5 is 15.
- 1/3 is equivalent to 5/15, and 2/5 is equivalent to 6/15.
- 5/15 + 6/15 = 11/15
- 11/15 cannot be simplified further.
- The answer is 11/15.

### Multiplying fractions:

- Multiply the numerators of the fractions.
- Multiply the denominators of the fractions.
- Simplify the resulting fraction by dividing both the numerator and denominator by their greatest common factor (GCF), if possible.
- If necessary, convert the resulting fraction to a mixed number or improper fraction.

**Example: Multiply 2/3 by 4/5.**

- 2 x 4 = 8
- 3 x 5 = 15
- 8/15 cannot be simplified further.
- The answer is 8/15.

### Dividing fractions:

- Flip the second fraction (the divisor) upside down.
- Multiply the first fraction (the dividend) by the flipped second fraction (the divisor).
- Simplify the resulting fraction by dividing both the numerator and denominator by their greatest common factor (GCF), if possible.
- If necessary, convert the resulting fraction to a mixed number or improper fraction.

**Example: Divide 2/3 by 4/5.**

- Flip 4/5 upside down to get 5/4.
- Multiply 2/3 by 5/4: (2/3) x (5/4) = 10/12
- 10/12 can be simplified by dividing both the numerator and denominator by 2: 10/12 = 5/6.
- The answer is 5/6.