Rational Expressions Calculator — Simplify, Add, Multiply, Divide

Simplify, add, subtract, multiply, or divide rational expressions with full factoring steps — domain restrictions are always shown, even when they cancel out.

Expression

x² +x +
x +
Result
x + 2
factored: (x + 2)
Excluded Values (Domain Restrictions)
  • x ≠ 2 — no longer visible in the simplified result, but still excluded because it made an original denominator (or, for division, the divisor) zero

Steps

  1. Factor the numerator: (x + 2)(x - 2)
  2. Factor the denominator: (x - 2)
  3. Cancel the common factor(s) tied to x = 2.

This calculator handles linear and quadratic numerators/denominators entered as coefficients (ax² + bx + c), factoring over the rationals to simplify, combine, multiply, or divide rational expressions. Excluded values are always the zeros of the ORIGINAL denominator(s) — they stay excluded even when a factor cancels during simplification. For differentiating composite expressions instead, see the Chain Rule Calculator.

90% found this helpful

Reference Values

Last verified:
Category Range What It Means Status
Simplify Factor numerator & denominator, cancel common factors Factor both polynomials completely, then cancel any factor that appears in both the numerator and the denominator. What's left is the reduced expression — but every zero of the ORIGINAL denominator stays excluded from the domain, even the ones that cancel out. ★ Best
Add / Subtract Factor each denominator, build the LCD, combine numerators Factor each denominator, form the least common denominator (LCD) from the union of all distinct factors, rewrite each fraction over that LCD, then add or subtract the numerators. Domain restrictions come from BOTH original denominators, not just the final one. Good
Multiply Multiply numerators together and denominators together, then simplify Multiply straight across — numerator × numerator over denominator × denominator — then cancel any common factors in the result. Domain restrictions come from both original denominators (never from the numerators). Good
Divide Multiply by the reciprocal of the second expression Flip the second fraction (swap its numerator and denominator) and multiply. Domain restrictions come from three places: the first denominator, the second numerator, and the second denominator — because the second expression's numerator becomes a new denominator once you flip it. Okay
Excluded values (domain restrictions) Every zero of an ORIGINAL denominator, always shown Worked example: (x²-4)/(x-2) simplifies to (x+2) after canceling the shared (x-2) factor. But x=2 made the ORIGINAL denominator zero, so x=2 stays excluded from the domain even though the simplified expression x+2 is perfectly defined at x=2. The excluded value describes the original expression's domain, not the simplified one's. Poor

Source: Domain-restriction convention per CK-12 Flexbook "Excluded Values for Rational Expressions" and Varsity Tutors "Rational Expressions and Domain Restrictions"; operation methods reflect standard Algebra II / College Algebra rational-expression rules.

Worked Examples

Simplify — Common Factor Cancels But Stays Excluded

Operation
Simplify
Expression
(x² - 4) / (x - 2)
x + 2, with x ≠ 2 still excluded

Factor the numerator: x²-4 = (x-2)(x+2). Cancel the shared (x-2) factor with the denominator, leaving x+2. But x=2 made the ORIGINAL denominator zero, so x=2 remains excluded from the domain even though x+2 is defined everywhere, including at x=2.

Add Two Rational Expressions With Different Denominators

Operation
Add
Expression A
(x² - 4) / (x - 2)
Expression B
(x + 1) / (x - 3)
(x² - 5) / (x - 3), with x ≠ 2 and x ≠ 3 excluded

LCD = (x-2)(x-3). Rewriting and adding gives [x³-2x²-5x+10] / [(x-2)(x-3)], which reduces to (x²-5)/(x-3) because (x-2) happens to divide out of the combined numerator too. x=2 is still excluded — it was a zero of Expression A's original denominator — even though the final (x²-5)/(x-3) no longer shows an (x-2) factor.

Subtract Two Rational Expressions

Operation
Subtract
Expression A
x / (x - 1)
Expression B
1 / (x + 1)
(x² + 1) / (x² - 1), with x ≠ 1 and x ≠ -1 excluded

LCD = (x-1)(x+1) = x²-1. New numerators: x(x+1) = x²+x and 1(x-1) = x-1. Subtracting: (x²+x) - (x-1) = x²+1. Nothing cancels here, so the result stays over the full LCD, and both original denominator zeros remain excluded.

Multiply — Denominator Factor Cancels But Stays Excluded

Operation
Multiply
Expression A
(x + 2) / (x - 3)
Expression B
(x - 3) / (x + 5)
(x + 2) / (x + 5), with x ≠ 3 and x ≠ -5 excluded

Multiply straight across: numerator (x+2)(x-3), denominator (x-3)(x+5). The (x-3) factors cancel, leaving (x+2)/(x+5). x=3 is still excluded — it zeroed Expression A's original denominator — even though (x-3) no longer appears anywhere in the simplified result.

Divide Two Rational Expressions

Operation
Divide
Expression A
(x + 1) / (x - 2)
Expression B
(x + 1) / (x + 3)
(x + 3) / (x - 2), with x ≠ 2, x ≠ -1, and x ≠ -3 excluded

Dividing flips Expression B and multiplies: (x+1)/(x-2) × (x+3)/(x+1). The (x+1) factors cancel, leaving (x+3)/(x-2). Three values stay excluded: x=2 (Expression A's denominator), x=-1 (Expression B's numerator, which becomes the new denominator after flipping), and x=-3 (Expression B's denominator) — even though x=-1 and x=-3 don't appear in the final simplified expression at all.

How to Use This Calculator

  1. 1

    Pick an operation

    Choose Simplify, Add, Subtract, Multiply, or Divide. Simplify works on one expression; the other four compare two expressions, Expression A and Expression B.

  2. 2

    Enter Expression A's numerator and denominator

    Toggle "quadratic" on if you need an x² term, then fill in the a, b, and c coefficients for both the numerator and denominator.

  3. 3

    Enter Expression B (if the operation needs it)

    Add/Subtract/Multiply/Divide need a second expression. Fill in its numerator and denominator coefficients the same way.

  4. 4

    Read the result and excluded values

    The result box shows the combined/simplified expression in both expanded and factored form. The Excluded Values box below it always lists every x-value that made an original denominator zero — including ones that disappeared during simplification.

  5. 5

    Check the step-by-step work

    The Steps panel shows how each denominator was factored, how the LCD (for add/subtract) or product (for multiply/divide) was built, and which factors canceled.

What Each Value Means

Excluded Value / Domain Restriction (x-value)
An x-value that makes an ORIGINAL denominator (or, for division, the divisor) equal zero. Excluded values must be declared even when the factor that caused them cancels out during simplification, because the simplified expression and the original are only equivalent away from those values.
LCD (Least Common Denominator) (polynomial)
The smallest polynomial that both denominators divide into evenly, built by factoring each denominator and taking every distinct factor at its highest multiplicity across the two. Used to rewrite fractions with a common denominator before adding or subtracting.
Factored Form (expression)
An expression written as a product of its irreducible factors, e.g. (x-2)(x+2) instead of x²-4. Factored form is what makes common-factor cancellation and domain-restriction identification possible.

Frequently Asked Questions

What are excluded values in a rational expression?
Excluded values (also called domain restrictions) are the x-values that make the ORIGINAL denominator equal zero. Since dividing by zero is undefined, those values can never be plugged into the expression, no matter what the expression simplifies to afterward. For (x+3)/(x-5), x=5 is excluded because it makes the denominator zero; every other real number is allowed.
Why does x = 2 stay excluded from (x² - 4)/(x - 2) even after it simplifies to x + 2?
Because excluded values describe the domain of the ORIGINAL expression, not the simplified one. (x²-4)/(x-2) factors to (x-2)(x+2)/(x-2), and canceling the shared (x-2) factor leaves x+2 — which is defined everywhere, including at x=2. But the simplified form x+2 and the original fraction (x²-4)/(x-2) are only equal for x≠2; at x=2 the original is 0/0 (undefined), not 4. So x=2 must stay marked as excluded, even though the algebra makes it disappear. This is the single most commonly missed rule in rational-expression problems, per CK-12's Flexbook on excluded values, and this calculator always keeps it visible.
How do you find the LCD when adding or subtracting rational expressions?
Factor each denominator completely, then build the least common denominator (LCD) by taking every distinct factor that appears in either denominator, using the highest power (multiplicity) it appears with in any single denominator. For example, denominators (x-2) and (x-2)(x+3) share the factor (x-2), so the LCD is (x-2)(x+3) — you don't repeat the shared factor. Once you have the LCD, multiply each fraction's numerator by whatever factor is missing from its original denominator, then add or subtract the rewritten numerators over that common LCD.
Why does dividing rational expressions create three excluded values instead of two?
Dividing A/B by C/D is defined as A/B × D/C — you flip the second fraction and multiply. That flip means C (the second expression's numerator) becomes part of the new denominator, so C=0 is now also excluded, on top of the original B=0 and D=0. In total: B≠0 (first denominator must be defined), D≠0 (second denominator must be defined), and C≠0 (you can't divide by a zero-valued fraction). Only the first numerator, A, has no restriction attached to it.
What kinds of rational expressions does this calculator handle?
This tool is scoped to linear and quadratic numerators and denominators — anything you can enter as ax² + bx + c (with a=0 for a linear term). That covers the vast majority of Algebra II and College Algebra rational-expression problems. It factors using exact rational-root methods, so quadratics without rational roots are treated as already irreducible rather than approximated. It does not parse free-text expressions of arbitrary degree; use the structured coefficient fields for reliable, exact results.