Skip to content
AgileLogics

Fraction Calculator

Performs arithmetic on two fractions and returns the simplified result, as both a fraction and a decimal.

How it works

Enter both fractions and choose an operator.

What is a fraction calculator?

A fraction calculator does arithmetic on fractions without converting them to decimals first, so the answer stays exact. Enter two fractions as numerator and denominator, pick add, subtract, multiply or divide, and this calculator returns the result reduced to lowest terms, plus the same value as a decimal rounded to six places.

How to use it

  1. Enter the numerator (top number) and denominator (bottom number) of the first fraction.
  2. Choose an operator: +, −, × or ÷.
  3. Enter the second fraction.
  4. Click Calculate to see the simplified fraction and the decimal.

Whole numbers can be entered as fractions over 1: 3 is 3/1. A denominator of 0 is rejected, and so is dividing by a fraction equal to zero.

The rules for each operation

For two fractions a/b and c/d, the calculator applies these formulas, then simplifies:

Operation Formula Example Result
Add (a × d + c × b) / (b × d) 1/2 + 1/3 5/6
Subtract (a × d − c × b) / (b × d) 3/4 − 5/6 -1/12
Multiply (a × c) / (b × d) 2/3 × 9/4 3/2
Divide (a × d) / (b × c) 5/8 ÷ 3/4 5/6

Division is multiplication by the reciprocal: flip the second fraction and multiply. That's why 5/8 ÷ 3/4 becomes 5/8 × 4/3 = 20/24.

The calculator always multiplies the two denominators together rather than hunting for the lowest common denominator. The intermediate numbers are bigger, but the final answer is the same once it's simplified.

How simplifying works

To reduce a fraction to lowest terms, divide the top and bottom by their greatest common divisor (GCD), the largest whole number that divides both evenly. The calculator finds it with Euclid's algorithm: divide the larger number by the smaller, replace the larger with the remainder, and repeat until the remainder is 0. The last non-zero divisor is the GCD.

For 20/24: 24 ÷ 20 leaves 4, then 20 ÷ 4 leaves 0, so the GCD is 4, and 20/24 = 5/6.

Worked examples

Subtracting with unlike denominators: 3/4 − 5/6

  1. Cross-multiply the numerators: 3 × 6 = 18 and 5 × 4 = 20.
  2. Subtract: 18 − 20 = −2.
  3. Multiply the denominators: 4 × 6 = 24, giving −2/24.
  4. The GCD of 2 and 24 is 2, so the answer is −1/12, or −0.083333 as a decimal.

Adding into an improper fraction: 7/4 + 5/6

  1. 7 × 6 + 5 × 4 = 42 + 20 = 62.
  2. 4 × 6 = 24, giving 62/24.
  3. The GCD is 2, so the result is 31/12 (2.583333).
  4. As a mixed number, 31 ÷ 12 = 2 remainder 7, so 2 7/12.

Dividing to a whole number: 3/4 ÷ 1/8

3/4 × 8/1 = 24/4, which simplifies to 6/1, displayed as 6/1. Read it as 6.

Reading the output

  • Result (Fraction) is always in lowest terms with a positive denominator. A whole-number answer is shown over 1, and zero is shown as 0/1.
  • Result (Decimal) is rounded to six decimal places with trailing zeros removed. Repeating decimals are cut off, so 2/3 shows as 0.666667. Use the fraction when you need the exact value.
  • Mixed numbers aren't produced. Convert improper fractions yourself as shown above.

Where fractions come up

Recipes, measurements in inches (5/8 in, 3/16 in), and probabilities all use fractions, and adding them by hand is where most mistakes happen. If your fractions represent parts of a whole that you'd rather compare as percentages, the percentage calculator is the better fit. For proportions such as 3:4 = 9:?, try the ratio calculator.

Related calculators

Last updated

Frequently asked questions

How do I add fractions with different denominators?
Cross-multiply to a common denominator, add the numerators, then simplify. For 1/2 + 1/3, that's (1 × 3 + 1 × 2) / (2 × 3) = 5/6. The calculator does this for you and always reduces the answer to lowest terms.
How do I enter a mixed number like 2 1/3?
Convert it to an improper fraction first. Multiply the whole number by the denominator and add the numerator, keeping the same denominator, so 2 1/3 becomes (2 × 3 + 1) / 3 = 7/3.
Why is my answer an improper fraction like 31/12?
The calculator returns results as a single simplified fraction and doesn't convert them to mixed numbers. To convert, divide the numerator by the denominator. 31 ÷ 12 is 2 remainder 7, so 31/12 = 2 7/12. The decimal result, 2.583333, is shown alongside.
Can I enter decimals in a fraction?
No. Numerators and denominators must be whole numbers, and a decimal entry is cut down to its whole-number part, so 1.5 is read as 1. Scale a decimal fraction up first, for example 1.5/2 is the same as 3/4.
How do I enter a negative fraction?
Put the minus sign on the numerator, as in -3 over 4. A negative denominator also works; the calculator moves the sign to the numerator in the answer.