Dividing Fractions Calculator
Divide two fractions with the keep-change-flip method shown step by step — the reciprocal, the product, and the simplified answer, all as real numbers.
Dividing Fractions Calculator
Background.
This dividing fractions calculator applies — and shows — the 'keep, change, flip' method every pre-algebra classroom teaches: keep the first fraction exactly as it is, change the division sign to multiplication, and flip the second fraction upside down (swap its numerator and denominator) before multiplying. Enter 2/3 ÷ 4/5 and the calculator does not just print '5/6' — it reports reciprocalNumerator = 5 and reciprocalDenominator = 4 (the literal flip of 4/5 into 5/4), the pre-simplified product numerator 10 and denominator 12, the gcd used to reduce (2), and finally the simplified answer 5/6.
Quanta's general-purpose fraction calculator (math/fraction) also divides fractions, but it computes the equivalent expression (n1×d2)/(d1×n2) in one internal step and returns only the final simplified quotient — the reciprocal of the second fraction, the actual 'flip' that gives the method its name, is never a declared, readable value anywhere in its output. This calculator exists specifically to make that flip visible: the second fraction's numerator and denominator, swapped, shown as their own numbers, followed by the multiplication and simplification steps.
Why does flipping and multiplying work for division? Dividing by a number is defined as multiplying by that number's reciprocal — its multiplicative inverse, the number that, when multiplied by the original, gives 1. For a fraction c/d (with c ≠ 0), the reciprocal is d/c, because (c/d) × (d/c) = (c×d)/(d×c) = 1. So dividing by c/d is mathematically identical to multiplying by d/c, and 'keep, change, flip' is simply that identity applied mechanically: keep the dividend, change ÷ to ×, flip the divisor to its reciprocal. This is exactly the same rule as 'invert and multiply,' the phrase used interchangeably in most algebra textbooks.
The method has three steps, and this calculator reports each one. First, flip the second fraction: its denominator becomes the new numerator, and its numerator becomes the new denominator. Second, multiply the first fraction by that flipped fraction, straight across — numerator times numerator, denominator times denominator. Third, normalise the sign so the denominator is positive, and simplify the result by dividing both terms by their greatest common divisor, found via the Euclidean algorithm.
This calculator also handles the details that complicate manual division: a negative dividend or divisor (sign is normalised after the flip-and-multiply step, so the denominator you see in the final answer is always positive), a zero numerator on the fraction being divided (the answer is always 0, correctly reduced to 0/1), and — critically — a zero numerator on the divisor, which this calculator explicitly rejects with a clear error, because dividing by 0/anything is dividing by zero itself, which is undefined. Whether you're checking homework on keep-change-flip, splitting a measured quantity into fractional portions, or want to see the reciprocal step made explicit for your own numbers, this page and the calculator above cover the single operation of fraction division completely.
What is dividing fractions calculator?
Dividing one fraction by another, n1/d1 ÷ n2/d2, means finding the value x such that x × (n2/d2) = n1/d1. Because every non-zero rational number c/d has a multiplicative inverse — its reciprocal d/c, satisfying (c/d) × (d/c) = 1 — division by a fraction is defined as multiplication by that fraction's reciprocal: n1/d1 ÷ n2/d2 = n1/d1 × d2/n2 = (n1 × d2)/(d1 × n2). This is the algebraic justification for the 'keep, change, flip' or 'invert and multiply' rule taught in every arithmetic course: keep the dividend unchanged, change the operation from division to multiplication, and flip the divisor into its reciprocal by swapping its numerator and denominator. The reciprocal is undefined when the original numerator is zero, because 0/d has no multiplicative inverse (there is no fraction that, multiplied by 0/d, gives 1) — which is exactly why dividing by a fraction whose numerator is zero is disallowed, mirroring ordinary division by zero. Once the reciprocal is taken and the multiplication is carried out, the result is reduced to lowest terms exactly as with any other fraction: divide both the numerator and denominator by their greatest common divisor, found via the Euclidean algorithm, and normalise the sign so the denominator is always reported as positive. When the resulting quotient's magnitude is 1 or greater, it can equivalently be expressed as a mixed number.
How to use this calculator.
- Enter the first fraction (the number being divided) as a numerator and denominator in the first pair of fields.
- Enter the second fraction (the number you are dividing by) as a numerator and denominator in the second pair of fields. Its numerator must be non-zero — dividing by zero is undefined.
- Read the reciprocal outputs to see the literal 'flip' of the second fraction: its denominator becomes the reciprocal numerator, and its numerator becomes the reciprocal denominator.
- Check the pre-simplified product numerator and denominator to see the result of multiplying the first fraction by that reciprocal, before any reduction.
- Read the gcd used to simplify, and the primary result — the simplified quotient's numerator and denominator.
- Check the decimal value for a quick sense of magnitude, and the mixed-number outputs (isMixed, wholePart, fractionalNumerator) whenever the quotient's magnitude is 1 or greater.
- If you enter a divisor with a numerator of zero, the calculator stops and explains why — that divisor equals zero, and division by zero is undefined for any dividend.
The formula.
The calculator implements keep-change-flip in three explicit, individually-reported steps, following OpenStax Prealgebra 2e §4.2. Step one — flip: the reciprocal of n2/d2 is d2/n2, valid whenever n2 ≠ 0, because (n2/d2) × (d2/n2) = (n2×d2)/(d2×n2) = 1 by definition of a multiplicative inverse. If n2 = 0, no reciprocal exists (there is no fraction that, multiplied by 0/d2, yields 1), so the calculator rejects that input explicitly rather than propagating an undefined result. Step two — keep, change: multiply the first fraction by the reciprocal found in step one, straight across: numerator times numerator over denominator times denominator, giving (n1 × d2) over (d1 × n2). This is the algebraic content of 'dividing by X equals multiplying by 1/X,' applied with X = n2/d2. Step three — simplify: normalise the sign of the raw product so its denominator is positive (if d1 × n2 came out negative, both the numerator and denominator are multiplied by −1, which does not change the fraction's value), then divide both terms by their greatest common divisor, found via the Euclidean algorithm (Euclid, Elements, Book VII, Proposition 2): repeatedly replace the larger of two numbers with the remainder of dividing it by the smaller, until the remainder is zero — the last non-zero remainder is the GCD. The resulting fraction is, by definition of the GCD, in lowest terms. If its magnitude is at least 1, the mixed-number form follows immediately: the whole part is the floor of the decimal value, and the remaining fractional numerator is the reduced numerator minus the whole part times the reduced denominator.
A worked example.
Take 2/3 ÷ 4/5. The calculator reads n1 = 2, d1 = 3, n2 = 4, d2 = 5; all four pass validation, and the divisor's numerator (4) is non-zero, so a reciprocal exists. Step one — flip: the reciprocal of 4/5 is 5/4, so reciprocalNumerator = 5 and reciprocalDenominator = 4. Step two — keep, change: multiply 2/3 by 5/4 straight across: numerator = 2 × 5 = 10, denominator = 3 × 4 = 12. Both are already sign-normalised (the denominator 12 is positive), so productNumerator = 10 and productDenominator = 12. Step three — simplify: gcd(10, 12) is found by the Euclidean algorithm — 12 = 1 × 10 + 2, so gcd(10, 12) reduces to gcd(10, 2); then 10 = 5 × 2 + 0, so gcd(10, 2) = 2. Dividing both terms by 2 gives resultNumerator = 5, resultDenominator = 6 — the answer is 5/6. The decimal value is 5 ÷ 6 ≈ 0.8333333333. Since |5| < 6, the quotient is proper: isMixed = 0, wholePart = 0, fractionalNumerator = 5. A second illustrative case: −3/4 ÷ 2/5. The reciprocal of 2/5 is 5/2, giving a raw product of (−3 × 5)/(4 × 2) = −15/8, already in lowest terms since gcd(15, 8) = 1; because |−15| ≥ 8 the quotient is improper, with wholePart = −2 (Math.floor(−1.875)) and fractionalNumerator = −15 − (−2 × 8) = 1 — the mixed number −(1 7/8).
Frequently asked questions.
What does "keep, change, flip" mean?
Why does flipping the second fraction and multiplying give the correct answer?
Why can't the second fraction's numerator be zero?
What if the first fraction (the one being divided) has a numerator of zero?
How do I divide by a whole number using this calculator?
Does dividing a fraction always make the answer smaller?
How is this different from Quanta's general fraction calculator?
References& sources.
- [1]OpenStax. Prealgebra 2e, §4.2 'Multiply and Divide Fractions'. Rice University, peer-reviewed open-access textbook — the reciprocal/keep-change-flip method this calculator implements.
- [2]Euclid. Elements, Book VII, Proposition 2 (c. 300 BCE). The Euclidean algorithm for the greatest common divisor, used for the final simplification step.
- [3]NIST Digital Library of Mathematical Functions, §27.1 ('Functions of Number Theory') — the greatest common divisor and its multiplicative properties.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 313 calculators remain free
- No billing is enabled