Fraction Calculator

Work out any two-fraction sum, difference, product or quotient exactly, with the common denominator and simplification steps written out.

Whole numbers, fractions (3/4), mixed numbers (1 2/3) or decimals (0.25).

Result

1 2/3 + 3/4 =
2 5/12
  • Simplified fraction29/12
  • Mixed number2 5/12
  • Decimal≈ 2.416666666667
  • Write as improper fractions: 5/3 + 3/4
  • Common denominator (LCD of 3 and 4) = 12: 20/12 + 9/12
  • Add the numerators: 29/12
  • 29/12 is already in lowest terms.

How to use the fraction calculator

Type the first fraction, choose an operation, then type the second fraction. Each box accepts:

  • a proper or improper fraction, such as 3/4 or 11/4
  • a mixed number, such as 1 2/3
  • a whole number, such as 5 or -2
  • a decimal, such as 0.25

The answer updates as you type. You get the simplified fraction, the mixed number and the decimal. Below them, the steps show how the answer was reached. All arithmetic is done with exact whole numbers, so even very long numerators and denominators come out without rounding errors.

The four fraction rules

Operation Rule
Add a/b + c/d = (a·d′ + c·b′) / LCD, where each fraction is first rewritten over the least common denominator
Subtract The same as adding, but subtract the rewritten numerators
Multiply a/b × c/d = (a × c) / (b × d)
Divide a/b ÷ c/d = a/b × d/c (multiply by the reciprocal)

After any of these, the result is simplified by dividing the top and bottom by their greatest common divisor (GCD).

Worked example: 1 2/3 + 3/4

This is the example loaded when the page opens.

  1. Convert to improper fractions. 1 2/3 = (1 × 3 + 2)/3 = 5/3.
  2. Find the least common denominator. The LCD of 3 and 4 is 12.
  3. Rewrite both fractions. 5/3 = 20/12 and 3/4 = 9/12.
  4. Add the numerators. 20 + 9 = 29, so the sum is 29/12.
  5. Simplify. GCD(29, 12) = 1, so 29/12 is already in lowest terms.
  6. Convert. 29 ÷ 12 = 2 remainder 5, so the mixed number is 2 5/12. As a decimal that is 2.41666…, which repeats forever.

The calculator marks a repeating decimal with ”≈” and rounds it to 12 places. When the decimal ends, such as 3/8 = 0.375, it is shown exactly.

Reading the result

The simplified fraction is the most precise form. Use it when you keep working with the number. The mixed number is easier to picture, so it suits recipes, measurements and woodworking: 2 5/12 cups is just over two and a third cups. The decimal is the one to type into a spreadsheet or into another calculator, such as the percentage calculator.

A negative answer shows its sign on the whole mixed number. For example, −1 1/2 means −(1 + 1/2), not −1 + 1/2.

Simplifying by the GCD

To reduce a fraction to lowest terms, divide the numerator and denominator by their greatest common divisor. For 18/12, the GCD is 6, so 18/12 = 3/2. The calculator finds the GCD with Euclid’s algorithm. It repeatedly replaces the larger number with the remainder of dividing the two, and stops when the remainder is zero. Dividing by the GCD always gives the fully reduced form in one step, so you never need to reduce in stages.

Limitations

  • The calculator works on two fractions at a time. For a longer expression, take the answer and use it as the first fraction of the next step.
  • Dividing by zero, and any fraction with a zero denominator, has no answer, so you will see a message instead.
  • Repeating decimals such as 0.333… cannot be typed exactly. Enter 1/3 instead of 0.333 if you want exactly one third.
  • Inputs are limited to 200 digits, which is far beyond any practical use.

Frequently asked questions

How do I enter a mixed number?

Type the whole number, a space, then the fraction, such as 2 3/8. For a negative mixed number put the minus sign in front, as in -2 3/8, which means minus two and three eighths.

Why does the calculator use the least common denominator?

Any common denominator works for adding or subtracting, but the least one keeps the numbers small, so there is less to simplify at the end. The result is the same either way.

Can I type decimals?

Yes. A decimal such as 0.35 is converted to the exact fraction 7/20 before the calculation, so 0.1 + 0.2 gives exactly 3/10 rather than a rounding artifact.

What does "already in lowest terms" mean?

The numerator and denominator share no factor other than 1, so the fraction cannot be reduced any further. 29/12 is an example, because 29 is prime and does not divide 12.

Last reviewed: