Skip to content
Everyday Utilities Free • No signup • Instant results

Fraction Calculator

Add, subtract, multiply and divide fractions with steps.

About the Fraction Calculator

The fraction calculator performs addition, subtraction, multiplication, and division on two fractions and returns the result in fully simplified form. Unlike decimal arithmetic, fraction arithmetic requires you to find common denominators, multiply across, or invert-and-multiply depending on the operation — and then simplify the result by dividing out the greatest common divisor. This tool automates every step while exposing the intermediate values so you can verify the work.

Fractions remain useful even in an era of cheap decimal computation because they express exact ratios. One-third is exactly 1/3 in fraction form but repeats forever as 0.3333... in decimal form. Financial ratios, musical intervals, cooking measurements, and engineering tolerances all benefit from exact fractional representation. When you need an exact answer rather than a rounded approximation, fractions are the right tool.

The calculator accepts any integers for the numerators and denominators, including negative values. It rejects zero denominators up front and handles division by zero fractions with a clear error message. The result is always shown in lowest terms, with any negative sign moved to the numerator by convention.

How It Works

Each operation uses a different formula. For addition and subtraction, the fractions are brought to a common denominator by cross-multiplying:

a/b + c/d = (a*d + c*b) / (b*d)
a/b - c/d = (a*d - c*b) / (b*d)

For multiplication, the numerators and denominators are multiplied directly:

(a/b) * (c/d) = (a*c) / (b*d)

For division, the second fraction is inverted and then multiplied:

(a/b) / (c/d) = (a*d) / (b*c)

After the arithmetic is complete, the result is simplified by computing the greatest common divisor (GCD) of the numerator and denominator using the Euclidean algorithm, then dividing both by that GCD. If the denominator is negative after simplification, the sign is moved to the numerator so the fraction reads naturally. The GCD is computed iteratively: gcd(a,b) = gcd(b, a mod b) until the remainder is zero, with the last non-zero remainder being the GCD.

Worked Examples

Using the default values 3/4 + 2/5, the calculator cross-multiplies to find a common denominator of 20. The first fraction becomes 15/20 (multiply top and bottom by 5) and the second becomes 8/20 (multiply by 4). Adding the numerators gives 23/20, which is already in lowest terms since 23 is prime. The decimal equivalent is 1.15.

For multiplication, consider 3/4 * 2/5. The numerators multiply to 6 and the denominators multiply to 20, giving 6/20. The GCD of 6 and 20 is 2, so dividing both by 2 yields the simplified result 3/10, equal to 0.3 in decimal form.

For division, 3/4 / 2/5 inverts the second fraction to give 3/4 * 5/2 = 15/8. Since 15 and 8 share no common factors (8 is a power of 2, 15 is 3 times 5), the fraction is already in simplest form. The decimal value is 1.875, an exact representation that a decimal calculator would also produce.

When to Use This Tool

Use the fraction calculator whenever exact ratios matter:

  • Adding or subtracting cooking measurements expressed in cups, teaspoons, or fractions of an inch.
  • Working with musical intervals, which are defined as exact frequency ratios.
  • Combining fractional probabilities in statistics or game theory.
  • Teaching children fraction arithmetic with verifiable intermediate steps.
  • Engineering and construction work where measurements use fractional inches.
  • Financial ratio analysis where exact figures are preferred over rounded decimals.
  • Simplifying the result of a longer pencil-and-paper fraction calculation.

Limitations & Disclaimer

This calculator operates on two fractions at a time and does not accept mixed numbers, decimal inputs, or chained expressions. Numerators and denominators must be integers. Very large integers may exceed JavaScript's safe integer range and lose precision. The GCD simplification uses the Euclidean algorithm, which is exact for integers but does not apply to non-integer inputs. See our disclaimer for full details.

Frequently Asked Questions

Why does the calculator simplify the result?

Because a fraction and its simplified form represent the same rational number. 6/20 and 3/10 are equal, but 3/10 is easier to read and compare. Simplifying also makes it obvious when a fraction reduces to a whole number, such as 8/4 becoming 2/1.

What is the greatest common divisor?

The GCD of two integers is the largest integer that divides both without remainder. The calculator finds it using the Euclidean algorithm, which repeatedly replaces the larger number with the remainder of the division until the remainder is zero. The last non-zero remainder is the GCD.

Can I use negative fractions?

Yes. The calculator accepts negative numerators or denominators. By convention, the final result is normalised so that any negative sign appears in the numerator, which matches the standard mathematical convention for writing fractions.

Why not just convert to decimals?

Decimals introduce rounding for any fraction whose denominator has prime factors other than 2 and 5. One-third cannot be represented exactly as a decimal, but it can be represented exactly as 1/3. Fractions preserve precision across many operations.

Does the calculator handle mixed numbers?

Not directly. Convert a mixed number such as 1 and 3/4 to the improper fraction 7/4 before entering it. The numerator becomes (whole part times denominator) plus the original numerator, and the denominator stays the same.

What happens with division by zero?

If either denominator is zero, or if you attempt to divide by a fraction whose numerator is zero, the calculator reports an error before performing any arithmetic. This prevents a misleading Infinity or NaN result.

Last updated: July 21, 2026  ·  Author: HT99 Tools Editorial Team  ·  Reviewed by: HT99 Tools Editorial Team