User Rating 0.0 โ˜…โ˜…โ˜…โ˜…โ˜…
Total Usage 0 times
Fraction 1
vs
Fraction 2
Quick presets:
Enter two fractions and click Compare
Is this tool helpful?

Your feedback helps us improve.

โ˜… โ˜… โ˜… โ˜… โ˜…

About

Comparing fractions with unlike denominators is a non-trivial arithmetic operation that accounts for a significant share of errors in standardized math assessments. The naive approach of converting to decimals introduces floating-point rounding artifacts. This tool uses cross-multiplication: given fractions ab and cd, it compares a ร— d against c ร— b, yielding exact integer comparisons with zero rounding error. It also computes the least common denominator via the Euclidean GCD algorithm and returns both fractions in simplified form.

Limitation: this tool operates on proper and improper fractions with integer components. It does not handle continued fractions or irrational numerators. Denominators of zero are algebraically undefined and are rejected. For mixed numbers, convert to improper fractions first: multiply the whole number by the denominator, add the numerator.

compare fractions fraction calculator cross multiply common denominator fraction comparison math calculator

Formulas

The comparison of two fractions ab and cd (where b, d > 0) is performed via cross-multiplication:

ab ? cd โ‡” a ร— d ? c ร— b

When a denominator is negative, the tool normalizes by multiplying both numerator and denominator by โˆ’1 so that the denominator is always positive before cross-multiplying.

The Greatest Common Divisor is computed using the Euclidean algorithm:

GCD(a, b) =
{
a if b = 0GCD(b, a mod b) otherwise

The Least Common Multiple for finding a common denominator:

LCM(b, d) = |b ร— d|GCD(b, d)

Where a = numerator of the first fraction, b = denominator of the first fraction, c = numerator of the second fraction, d = denominator of the second fraction.

Reference Data

Fraction PairCross ProductsResultCommon Denominator FormDecimal Approx.
12 vs 133 vs 212 > 1336 vs 260.5 vs 0.333
34 vs 5618 vs 2034 < 56912 vs 10120.75 vs 0.833
25 vs 41020 vs 2025 = 410410 vs 4100.4 vs 0.4
78 vs 111284 vs 8878 < 11122124 vs 22240.875 vs 0.917
59 vs 3735 vs 2759 > 373563 vs 27630.556 vs 0.429
โˆ’34 vs โˆ’23โˆ’9 vs โˆ’8โˆ’34 < โˆ’23โˆ’912 vs โˆ’812โˆ’0.75 vs โˆ’0.667
17 vs 21313 vs 1417 < 2131391 vs 14910.143 vs 0.154
911 vs 7981 vs 77911 > 798199 vs 77990.818 vs 0.778
1317 vs 1519247 vs 2551317 < 1519247323 vs 2553230.765 vs 0.789
615 vs 820120 vs 120615 = 82025 vs 250.4 vs 0.4
05 vs 110000 vs 505 < 1100001000 vs 110000 vs 0.001
โˆ’12 vs 12โˆ’2 vs 2โˆ’12 < 12โˆ’12 vs 12โˆ’0.5 vs 0.5

Frequently Asked Questions

Cross-multiplication transforms the comparison into an integer problem. Instead of dividing (which produces repeating decimals like 0.333... for 13), the tool computes a ร— d and c ร— b, both of which are exact integers. The comparison between integers is always exact in JavaScript for values up to 253 โˆ’ 1.
A negative denominator changes the sign of the fraction. The tool normalizes fractions before comparison by ensuring the denominator is always positive. If b < 0, both a and b are multiplied by โˆ’1. This is critical because cross-multiplication assumes positive denominators. Without normalization, 1โˆ’3 would compare incorrectly.
Yes. Improper fractions (where the numerator exceeds the denominator, e.g. 73) are handled identically since cross-multiplication works on any integers. A fraction with a zero numerator equals 0 regardless of denominator. The tool correctly identifies 05 = 099.
The LCD converts both fractions to equivalent forms with identical denominators, making visual comparison intuitive. For 34 vs 56, the LCD is 12, yielding 912 vs 1012. This is calculated via LCM(b, d) = |b ร— d| รท GCD(b, d).
JavaScript integers are exact up to 9,007,199,254,740,991 (253 โˆ’ 1). Since the tool cross-multiplies, the effective safe limit for individual numerators and denominators is approximately 94,906,265 (the square root of 253). Beyond this, the cross products may lose integer precision. The tool accepts inputs in the range โˆ’999,999,999 to 999,999,999.
The visual bars represent the absolute decimal value of each fraction as a percentage of the larger absolute value. The larger fraction always fills 100% of the bar width. The smaller fraction's bar width is computed as (|smaller| รท |larger|) ร— 100%. When fractions are equal, both bars fill to 100%. Negative fractions show bars extending leftward.