Fraction, Mixed Number, GCF, LCM & Prime Factorization Calculator

Perform exact rational fraction arithmetic and compute GCF, LCM, long division remainder, and prime factors.

Exact Simplified Fraction & Mixed Number 19/12 (1.583333) Mixed: 1 7/12 • LCD of denominators (4, 6) = 12
Quotient & Remainder Q = 1, R = 7
GCF & LCM of (4, 6) GCF = 2, LCM = 12
Prime Factors of 24 2 × 2 × 2 × 3
Inputs
Try:
Top integer of first fraction (a/b).
Bottom integer of first fraction (also used for GCF/LCM).
Operation applied between (a/b) and (c/d).
Top integer of second fraction (c/d).
Bottom integer of second fraction (also used for GCF/LCM).
Results & Graph
Exact Simplified Fraction & Mixed Number
19/12 (1.583333)
Mixed: 1 7/12 • LCD of denominators (4, 6) = 12
Quotient & Remainder
Q = 1, R = 7
GCF & LCM of (4, 6)
GCF = 2, LCM = 12
Prime Factors of 24
2 × 2 × 2 × 3
Decimal Equivalent
1.583333

Decimal Magnitude Comparison

First Fraction vs. Second Fraction vs. Result
Graph 1 • Partitioned Fraction Grid Bars Shaded numerator cells out of denominator partitions
Fraction 1 (3/4)0.7500 Fraction 2 (5/6)0.8333 Result (1.583)1.5833
Graph 2 • Exact Coordinate Placement on the Real Number Line Plots Fraction 1, Fraction 2, and Combined Result
3/4 (0.75) 5/6 (0.83) Result = 1.5833 0 1.0 2
Graph 3 • Fraction Magnitudes & Common Denominator Scale Reduced via Euclidean Greatest Common Divisor (GCD)
First (3/4) 0.75 Second (5/6) 0.833 Result (19/12) 1.583
Summary: Simplified fraction is 19/12 (1.5833), GCF is 2, and LCM is 12.
Summary: Evaluating (3/4) and (5/6) yields 38/24, which reduces via GCF (2) to 19/12 (decimal 1.583333). For the denominators 4 and 6, the Greatest Common Factor is 2 and Least Common Multiple (LCD) is 12.
Interactive chart & math engine powered by CalculatorGraph

Formula: Rational Arithmetic & Euclidean GCD / LCM Identities

ab ± cd = ad ± bcbd,   lcm(b, d) = |b · d|gcd(b, d)
a/b ± c/d = (ad ± bc) / bd; gcd(x, y) via Euclid; lcm(b, d) = |b × d| / gcd(b, d)
  • gcd(x, y): Greatest Common Divisor (Factor) of integers x and y
  • lcm(b, d): Least Common Multiple (Least Common Denominator)

Rounding: Exact integer rational reduction; decimal readout rounded to 6 places.

Worked example: Add 3/4 + 5/6 and Find GCF & LCM of 4 and 6

Compute 3/4 + 5/6 in simplest improper and mixed-number form.

  1. GCF(4, 6) = 2; Least Common Denominator LCM(4, 6) = (4 × 6) ÷ 2 = 12.
  2. 3/4 + 5/6 = 9/12 + 10/12 = 19/12.
  3. Long division: 19 ÷ 12 = Quotient 1, Remainder 7 → Mixed number 1 7/12 (1.583333).
Result: 19/12 = 1 7/12 (1.583333); GCF(4,6) = 2, LCM(4,6) = 12.

Frequently Asked Questions

How are GCF and LCM mathematically connected?

For any two positive integers a and b, the product of their Greatest Common Factor and Least Common Multiple equals the product of the numbers themselves: GCF(a, b) × LCM(a, b) = a × b.

Why does the working show 38/24 when the LCD is 12?

The engine adds by cross multiplying, so the first denominator is the plain product of 4 and 6, which is 24. It reduces afterwards, dividing 38 and 24 by their greatest common divisor of 2 to get 19/12. Using the LCD of 12 from the start, as many textbooks do, gives the same reduced answer. The only cost of the longer route is bigger intermediate numbers.

Are the GCF and LCM lines about my answer?

No, they always describe the two denominators you typed. On the default they report GCF 2 and LCM 12 for denominators 4 and 6, and they stay the same if you switch to multiplication or division. The GCF used to reduce the answer appears separately in the written interpretation. Those two divisors match on the default but differ for 2/4 plus 5/6.

How do I find the GCF of two numbers that are not denominators?

Type them into the two denominator boxes. The numerators and the operation have no effect on the GCF and LCM lines. For instance, 8 and 12 give GCF 4 and LCM 24. Keep both numbers at 1 or above, since a zero denominator stops the calculation.

Why does the prime factor line show 24 instead of my numbers?

It factors the product of the two denominators, which on the default is 4 times 6, or 24. To factor one number, put it in the first denominator and 1 in the second. With 84 the line then reads 2 × 2 × 3 × 7, and a prime such as 97 is shown on its own. Setting the second box to 1 adds nothing to the product.

What happens if I type a decimal?

It is truncated to a whole number before anything is calculated. So 2.7 becomes 2 and 4.9 becomes 4, giving the same answer as 2/4. Convert decimals to fractions yourself first: 0.75 is 3 over 4 and 1.5 is 3 over 2. Nothing warns you that truncation happened.

How does it show a negative mixed number?

With a negative whole part and a positive fractional part. For -7/4 the quotient is -1 and the remainder 3, so the mixed form is -1 3/4, which means negative one and three quarters. A negative proper fraction such as -1/12 keeps its fraction form, with a quotient of 0.

Why does 1/2 plus 1/2 show 1/1?

The answer is reduced correctly to one, but the page prints whole numbers as a fraction over 1 rather than as a bare integer. The quotient and remainder line confirms it with Q = 1 and R = 0. Read 1/1 as 1, and any n/1 result as the whole number n. Multiplying 5/3 by 3/5 shows the same thing.

Can I divide by a fraction with a zero numerator?

No. Dividing by 0/6 means dividing by zero, so the page returns an error instead of a result. The message mentions denominators and divisor numerators and is shown against the first denominator box, so check the second numerator when you see it in division mode. A zero first numerator is fine.

Is the decimal exact?

The fraction is exact; the decimal is rounded to six places. That is why 19/12 shows 1.583333 and 1/12 shows 0.083333. For repeating decimals the last digit shown is rounded, so copy the fraction rather than the decimal into any later step that needs full precision. The six place rounding is for display only.

Does the order of the fractions matter?

For addition and multiplication, no: swapping them gives the same answer. For subtraction and division it does. On the default, 3/4 minus 5/6 is -1/12, and 3/4 divided by 5/6 is 9/10; reversing either swaps the sign or flips the result. The GCF and LCM lines are unaffected.

How do I enter a mixed number like 2 1/3?

Convert it to an improper fraction first: multiply the whole part by the denominator and add the numerator, so 2 1/3 becomes 7/3. Type 7 as the numerator and 3 as the denominator. For a negative mixed number such as -2 1/3, enter -7 over 3. The result will be shown as a mixed number again where it has a whole part.

Five boxes, four operations, five answers at once

This tool looks like a fraction calculator, and it is one, but every run also gives four extra results. You type two fractions, a over b and c over d, and pick one of four operations: addition, subtraction, multiplication or division. The page then shows the answer in lowest terms with its decimal, a quotient and remainder, the greatest common factor and least common multiple of the two denominators, and the prime factors of the denominators multiplied together.

The preset is 3/4 plus 5/6. The answer reads 19/12 (1.583333), with Mixed: 1 7/12 and the LCD of 4 and 6 given as 12. Underneath sit Q = 1, R = 7; GCF = 2, LCM = 12; prime factors of 24 as 2 × 2 × 2 × 3; and the decimal again.

Some of those lines describe the answer and some describe the inputs. The fraction, mixed number, quotient, remainder and decimal belong to the result. The GCF, LCM and prime factors are always about the two denominators you typed, whatever operation you choose. Keeping that split in mind avoids most of the confusion people have with this page.

Addition: where 38/24 comes from

The written interpretation on the default says the calculation yields 38/24 before it reduces to 19/12. That intermediate step shows how the engine adds. It does not look for the smallest common denominator first. It cross multiplies: 3 times 6 plus 5 times 4 gives 38 on top, and 4 times 6 gives 24 underneath.

Only then does it simplify. The greatest common divisor of 38 and 24 is 2, so dividing both by 2 gives 19/12. The result is identical to the classroom method of rewriting both fractions over 12 (9/12 plus 10/12), just reached by a different path.

The two GCF figures are worth separating. The interpretation's GCF (2) here is the one used to reduce 38/24. The supporting line GCF = 2 is for the denominators 4 and 6. They happen to match on the default, but often do not. Change the first numerator to 2, for 2/4 plus 5/6, and the sum is 32/24, reduced by a GCF of 8 to 4/3, while the denominators' GCF is still 2.

For a homework check, this is useful: if your hand working used the LCD of 12 and the calculator shows 24, both are fine as long as the reduced answer agrees.

Subtraction, and what a negative answer looks like

Switch the operation to subtraction with the same fractions and the answer is -1/12, or -0.083333. The engine computed 3 times 6 minus 5 times 4, which is -2 over 24, and reduced it by 2.

The quotient and remainder line reads Q = 0, R = 1. For a negative proper fraction the quotient is zero, and the remainder is reported as a positive number. The mixed number is simply the fraction itself, since there is no whole part.

A more useful test is 7/8 minus 5/12. The answer is 11/24 (0.458333). The denominators are 8 and 12, so the supporting lines change to GCF = 4 and LCM = 24, and the prime factors of 96 appear as five 2s and a 3. The 24 in the answer matches the LCM, which is a quick sign the reduction has gone as far as it can.

Subtracting a fraction from itself, 3/4 minus 3/4, gives 0/1 with a decimal of 0. The zero is written over 1 because the reduction divides 0 and 16 by their greatest divisor, 16.

Multiplication and division modes

Multiplication is straightforward: tops times tops and bottoms times bottoms. With the default fractions, 3/4 times 5/6 gives 15/24, which reduces by 3 to 5/8 (0.625). Another check: 3/8 times 4/9 gives 12/72, which reduces by 12 to 1/6.

Division multiplies by the reciprocal of the second fraction. The default 3/4 divided by 5/6 becomes 3 times 6 over 4 times 5, which is 18/20 and reduces to 9/10 (0.9). For 2/3 divided by 4/9 the engine gets 18/12, reduces by 6, and shows 3/2 with a decimal of 1.5. Its mixed form is 1 1/2, and the quotient line reads Q = 1, R = 1.

In both modes the GCF, LCM and LCD lines still describe the denominators, even though no common denominator is needed to multiply or divide. They are not wrong, just not part of the working. For 3/8 times 4/9 they report GCF = 1 and LCM = 72, which tells you 8 and 9 share no factor.

Division by a zero fraction is blocked. If the second numerator is 0 in division mode, the page shows an error saying a denominator or divisor numerator cannot be zero. The message is attached to the first denominator box, so look at the second numerator if you see it and the denominators look fine.

Reading the mixed number and the remainder

For an improper fraction the engine divides the numerator by the denominator. On the default 19 divided by 12 gives a quotient of 1 and a remainder of 7, so the mixed number is 1 7/12. With 5/4 plus 5/6, the answer is 25/12, the quotient 2 and the remainder 1, so it reads 2 1/12.

Negative improper fractions follow the usual written convention. Enter -7/4 plus 0/1 and the answer is -7/4 (-1.75), with Q = -1 and R = 3. The mixed number is -1 3/4, meaning negative one and three quarters, not negative one plus three quarters.

Whole number results have one quirk. Adding 1/2 and 1/2, or multiplying 5/3 by 3/5, produces 1/1 with Q = 1 and R = 0. The page leaves the answer as 1/1 rather than writing 1. It is the right value, just not tidied into a whole number.

Using it as a GCF, LCM or prime factor tool

Because the number theory lines always use the denominators, you can use the tool for two plain integers. Put the first integer in the first denominator and the second in the second denominator. The numerators and operation do not affect those lines.

For example, denominators of 8 and 12 give GCF = 4 and LCM = 24. Denominators of 4 and 6 give GCF = 2 and LCM = 12, and the identity on the page holds: 2 times 12 equals 4 times 6, both 24.

Prime factorisation needs one extra step, because the line factors the product of the two denominators, not each one separately. To factor a single number, put it in the first denominator and set the second to 1. With 84 and 1 the line reads 2 × 2 × 3 × 7. With 97 and 1 it simply reads 97, which tells you 97 is prime.

If you leave both denominators in place, as on the default, you get the factors of their product. The 2 × 2 × 2 × 3 shown is for 24, which is 4 times 6, combining the factors of each.

Checking a worksheet answer step by step

The most common use for this page is checking work done by hand, and the interpretation line is built for that. It shows the unreduced result, the divisor used to reduce it and the final fraction, so you can see which step a hand calculation went wrong at.

Suppose a worksheet answer to 7/8 minus 5/12 was 22/48. The calculator shows 11/24, and its working shows 44/96 reduced by 4. Dividing 22/48 by 2 also gives 11/24, so the answer was right but not fully simplified. If the hand answer had been 2/4, the gap would point to subtracting the tops and bottoms separately, a classic slip.

For mixed numbers, convert them to improper fractions before entering them. Two and a half becomes 5/2, and one and three quarters becomes 7/4. The calculator has no separate box for a whole part, so 1 3/4 cannot be typed directly.

The chart under the result compares the sizes of the two input fractions and the answer as decimals. It is a quick visual check that, for example, a sum of two positive fractions is bigger than either one, or that dividing by a fraction less than one makes the answer grow. It plots magnitudes, so a negative answer appears with its sign dropped.

Inputs the engine changes before it calculates

All five number boxes are truncated to whole numbers. Typing 2.7 over 4.9 is treated as 2 over 4, which is why the result then matches the 2/4 plus 5/6 case: 4/3, or 1.333333. The fractional part is dropped, not rounded, so 4.9 becomes 4, not 5.

If you need a decimal in a fraction, convert it first. A value of 0.75 should be entered as 3 over 4, and 2.5 as 5 over 2.

A zero denominator in either fraction gives an error instead of a result. The sliders keep denominators at 1 or more, so a negative sign belongs in the numerator. If you do type a negative denominator, the engine moves the sign to the top when it simplifies, but the GCF and LCM label will show the negative number as typed.

The decimal readout is rounded to six places, so 1/12 shows as 0.083333. The fraction is exact; use it rather than the decimal when you need a precise value.