What This Calculator Does
The Simplify Fractions Calculator reduces any fraction to its lowest terms. You enter a numerator and a denominator, and the tool returns the most reduced equivalent fraction — or a whole number when the fraction simplifies to one. It works with positive and negative integers, and it gracefully handles edge cases like a zero denominator.
The Inputs
- Numerator — the top number of your fraction (defaults to 4 if left blank).
- Denominator — the bottom number of your fraction (defaults to 12 if left blank).
Both fields accept whole numbers, including negatives. If the denominator is 0, the calculator returns "Undefined (division by zero)" because division by zero has no result.
The Formula
Simplifying a fraction means dividing both the numerator and denominator by their greatest common divisor (GCD):
Numerator / Denominator = (Numerator ÷ GCD) / (Denominator ÷ GCD)
The calculator finds the GCD using the Euclidean algorithm — repeatedly replacing the larger number with the remainder of dividing the two values until the remainder is zero. It then divides both parts by that GCD. The tool also tidies up signs: if the simplified denominator is negative, it flips the sign of both so the negative stays on top. When the simplified denominator equals 1, it shows just the whole number.
Worked Example
Take the default values: numerator 4, denominator 12.
- The GCD of 4 and 12 is 4.
- Numerator: 4 ÷ 4 = 1
- Denominator: 12 ÷ 4 = 3
- Result: 1/3
Another example: 8/2 has a GCD of 2, giving 4/1, which the calculator displays simply as 4.
How to Simplify a Fraction by Hand
Simplifying (or reducing) a fraction means rewriting it as an equivalent fraction whose numerator and denominator share no common factor other than 1. The value never changes — only the way it is written. The reliable method works for any pair of integers, no matter how large:
- Note the sign, then work with absolute values. Set the minus sign aside if either number is negative, and reduce \(|\text{numerator}|\) and \(|\text{denominator}|\) as positive whole numbers. (A denominator of 0 is undefined — the fraction has no value.)
- Find the greatest common divisor (GCD) using the Euclidean algorithm. Divide the larger number by the smaller one and keep the remainder; replace the larger number with that remainder; repeat until the remainder is 0. The last non-zero remainder is the GCD.
- Divide both parts by the GCD. $$\frac{a}{b}=\frac{a \div \gcd(a,b)}{b \div \gcd(a,b)}$$ Dividing top and bottom by the same number produces an equivalent fraction.
- Put any negative sign on the numerator. The standard written form is \(-\tfrac{3}{4}\) or \(\tfrac{-3}{4}\), not \(\tfrac{3}{-4}\). If both numerator and denominator were negative, the result is positive.
- If the denominator becomes 1, write the whole number. For example \(\tfrac{18}{6}=\tfrac{3}{1}=3\).
Full trace: simplify 84/36
Step 2 — Euclidean algorithm on 84 and 36:
- \(84 = 2 \times 36 + 12\) (remainder 12)
- \(36 = 3 \times 12 + 0\) (remainder 0 — stop)
The last non-zero remainder is 12, so \(\gcd(84,36)=12\). Step 3 — divide both parts by 12:
$$\frac{84}{36}=\frac{84 \div 12}{36 \div 12}=\frac{7}{3}$$
So 84/36 in lowest terms is 7/3. Because 7 > 3 the result stays an improper fraction; if a mixed number is wanted, \(7 \div 3 = 2\) remainder \(1\), so \(\tfrac{7}{3}=2\tfrac{1}{3}\).
Alternative for small numbers: prime factorization
For numbers you can factor in your head, write each part as a product of primes and cancel the factors they share: \(84 = 2 \times 2 \times 3 \times 7\) and \(36 = 2 \times 2 \times 3 \times 3\). The shared factors are \(2 \times 2 \times 3 = 12\); cancelling them leaves \(\tfrac{7}{3}\) — the same answer. Prime factorization is intuitive but slows down quickly for large numbers, which is exactly where the Euclidean algorithm shines: it needs only a handful of divisions even for six-digit inputs.
FAQ
What happens if the fraction is already in lowest terms?
The calculator returns it unchanged and flags that no simplification was needed — for example, 3/5 stays 3/5.
Can I use negative numbers?
Yes. A fraction like -6/9 simplifies to -2/3. If the negative sign ends up on the denominator, the tool moves it to the numerator for a cleaner, standard format.
Why does it say "Undefined"?
A denominator of 0 means dividing by zero, which is mathematically undefined, so the calculator reports that instead of a fraction.