Back to home

Fraction Calculator

Add, subtract, multiply, and divide fractions with automatic simplification.

Calculate Fractions
Enter two fractions and choose an operation
/
/

About Fraction Calculator

This fraction calculator performs addition, subtraction, multiplication, and division operations on fractions. It automatically simplifies the result to its lowest terms using the greatest common divisor (GCD).

Fraction Operations

  • Addition: Find common denominator, add numerators
  • Subtraction: Find common denominator, subtract numerators
  • Multiplication: Multiply numerators and denominators
  • Division: Multiply by the reciprocal of the second fraction

Add, subtract, multiply or divide two fractions and reduce the answer. Students and anyone working with exact ratios can compare the exact fraction with an approximate decimal.

How it works

Addition and subtraction use (ad ± bc)/(bd). Multiplication uses ac/bd; division uses ad/bc and requires a nonzero second fraction. Divide numerator and denominator by their greatest common divisor, found using Euclid's remainder algorithm. The sign is kept in the numerator and the denominator is positive.

Worked examples

1/2 + 1/3 = (1×3 + 1×2)/(2×3) = 5/6. The gcd of 5 and 6 is 1, so no further reduction is needed; the decimal rounds to 0.8333.

Convert 1 1/2 to (1×2+1)/2 = 3/2 before entering it. Then 3/2 ÷ 3/4 = (3×4)/(2×3) = 12/6 = 2. For a negative mixed number, −1 1/2 means −3/2.

Building a common denominator

To add 2/3 and 5/8, find a denominator divisible by both 3 and 8. Their least common multiple is 24. Multiply the first fraction by 8/8 to obtain 16/24, and the second by 3/3 to obtain 15/24. Now the pieces are the same size, so add the numerators: 16/24 + 15/24 = 31/24.

The answer is improper because 31 exceeds 24. Divide 31 by 24: the quotient is 1 and the remainder is 7, giving the mixed form 1 7/24. Both forms represent exactly the same value. Adding the original numerators and denominators directly would give 7/11, which is not the sum; denominators describe the size of the pieces, not a quantity to add.

Mixed numbers, signs, and reduction

For 2 3/5, two wholes contain ten fifths. Add the remaining three fifths to get 13/5, then enter numerator 13 and denominator 5. There is no separate whole-number input. For −2 3/5, negate the entire quantity: enter −13/5, not −7/5. The latter would mean −2 + 3/5, a different number.

To simplify 42/56, use Euclid's algorithm: 56 = 1 × 42 + 14, then 42 = 3 × 14 + 0. The last nonzero remainder is 14, so divide both parts by 14 to obtain 3/4. Cancelling requires a shared factor of the entire numerator and denominator; you cannot cancel a term across an addition sign.

A negative denominator is valid and is moved into the numerator after calculation. Thus 1/−2 becomes −1/2, while −1/−2 becomes 1/2. Zero is allowed in a numerator but never in a denominator. Keep the exact simplified fraction for later calculations instead of copying its four-place decimal approximation, especially for recurring values such as one third.

How to read your result

Enter integer numerators and denominators, up to 100 digits each, without decimal points or exponent notation. Exact integer arithmetic preserves the fraction even beyond JavaScript's ordinary safe-integer limit. The decimal is approximate and displayed to four decimal places. Improper results also show a mixed-number equivalent when there is a remainder. A zero denominator or division by a zero fraction is undefined and clears the previous result.

For related calculations, try percentage calculator, ratio calculator, gcf calculator.

Frequently asked questions

How do I enter mixed numbers?

Convert each mixed number to an improper fraction first: multiply the whole part by the denominator and add the numerator. A negative mixed number applies the minus sign to the entire value.

Why is the denominator positive?

Moving a denominator's minus sign to the numerator preserves the value and gives a consistent simplified representation. Two negative signs cancel.

Can a numerator be zero?

Yes. Zero over a nonzero denominator simplifies to zero. However, you cannot divide by a fraction whose numerator is zero.

Why does the decimal differ from the exact fraction?

A fraction such as 1/3 has a repeating decimal. The four-decimal display is an approximation; use the simplified fraction when exactness matters.

How large can the integers be?

Each numerator and denominator accepts up to 100 digits. Fraction operations and simplification use exact integer arithmetic; the decimal output does not have that precision.

Why can’t I add the denominators?

Fractions must refer to equal-sized pieces before their numerators can be added. For example, 1/2 + 1/3 is 3/6 + 2/6 = 5/6, not 2/5.

Sources: Standard rational-number arithmetic; Euclid's algorithm for the greatest common divisor.

Last reviewed: November 3, 2026

Related Calculators

Explore more free online calculators to help with your calculations

Take this calculation further

Browse the math calculators collection for more tools in this subject.

For a related calculation, use Rounding Calculator to round numbers using 6 modes: half up, half down, banker's rounding, truncate, ceiling, and floor. Alternatively, use GCF Calculator to calculate the Greatest Common Factor of up to 10 numbers using the Euclidean algorithm.