Rational Expression Calculator: Simplify, Add, Divide and Solve With Restrictions

A rational expression is a fraction with polynomials on the top and bottom. Type one in and the solver factors both parts, cancels what is common, lists the excluded values and tells you whether each one is a hole or a vertical asymptote.

Simplify Any Rational Expression With the Mathvelo Solver

⚡ Instant🧠 AI explains📷 Scan

How to Simplify a Rational Expression

Simplifying is the same idea as reducing 6/8 to 3/4: factor the top and bottom, then cancel factors that appear on both. The word that matters is factors. You can cancel (x + 2) from top and bottom, but you can never cancel the 2 inside it.

Simplify (x² − 4) ÷ (x² − x − 6)Try it in the solver ↑

(x² − 4)/(x² − x − 6)

  1. Factor the top as a difference of squares: x² − 4 = (x − 2)(x + 2).
  2. Factor the bottom: x² − x − 6 = (x − 3)(x + 2).
  3. Write the fraction as (x − 2)(x + 2) ÷ (x − 3)(x + 2).
  4. Cancel the common factor (x + 2).
  5. Simplified: (x − 2) ÷ (x − 3), with x ≠ 3 and x ≠ −2.

Answer: (x − 2)/(x − 3), x ≠ 3, −2

Excluded Values: Holes or Vertical Asymptotes?

Excluded values are the x-values that make a denominator zero, found before cancelling. After cancelling, a factor that vanished leaves a hole in the graph, and a factor that stayed in the denominator leaves a vertical asymptote.

In the example above, x = −2 cancelled, so there is a hole there. Plug −2 into the simplified form: (−2 − 2) ÷ (−2 − 3) = −4 ÷ −5 = 0.8, so the hole sits at (−2, 0.8). The factor x − 3 stayed, so x = 3 is a vertical asymptote.

Multiplying and Dividing Rational Expressions

Multiply tops, multiply bottoms, and cancel before you expand because it keeps the algebra small. To divide, flip the second fraction and multiply.

Multiply (x + 3)/(x² − 4) · (x − 2)/(x² − 9)Try it in the solver ↑

(x+3)/(x²−4) · (x−2)/(x²−9)

  1. Factor every piece: x² − 4 = (x − 2)(x + 2) and x² − 9 = (x − 3)(x + 3).
  2. Write one fraction: (x + 3)(x − 2) ÷ (x − 2)(x + 2)(x − 3)(x + 3).
  3. Cancel (x + 3) and (x − 2).
  4. What is left on the bottom is (x + 2)(x − 3).

Answer: 1/((x + 2)(x − 3)), x ≠ ±2, ±3

Adding and Subtracting: Find the Common Denominator

Different denominators mean you need a common one before you add, exactly as with numeric fractions. Multiply each fraction by whatever the other denominator has that it lacks.

Add 1/x + 1/(x + 1)Try it in the solver ↑

1/x + 1/(x+1)

  1. The denominators x and x + 1 share no factor, so the common denominator is x(x + 1).
  2. Rewrite: 1/x = (x + 1)/(x(x + 1)) and 1/(x + 1) = x/(x(x + 1)).
  3. Add the numerators: (x + 1) + x = 2x + 1.

Answer: (2x + 1)/(x(x + 1)), x ≠ 0, −1

Solving Rational Equations and Spotting Extraneous Solutions

Multiply every term by the common denominator to clear the fractions, solve the resulting equation, then substitute back. Any answer that makes an original denominator zero is extraneous and has to go.

Solve x/(x − 3) = 3/(x − 3) + 3Try it in the solver ↑

x/(x−3) = 3/(x−3) + 3

  1. Multiply every term by x − 3: x = 3 + 3(x − 3).
  2. Expand the right side: x = 3 + 3x − 9 = 3x − 6.
  3. Move terms: −2x = −6, so x = 3.
  4. Check: x = 3 makes the denominator x − 3 equal to zero.
  5. So x = 3 is extraneous and the equation has no solution.

Answer: No solution

A Worked Example: Hole or Asymptote?

Simplify (x² − 4) ÷ (x² − x − 2). Factor: (x − 2)(x + 2) ÷ [(x − 2)(x + 1)]. Cancel (x − 2) to get (x + 2) ÷ (x + 1). Two restrictions remain from the original: x ≠ 2 and x ≠ −1. At x = −1 the denominator of the simplified form is also zero, giving a vertical asymptote. At x = 2 the factor cancelled, giving a hole at (2, 4/3).

Our Take: What Is Overrated, Underrated and Plain Wrong

Overrated: cancelling as soon as possible. Without factoring first you will cancel terms, not factors.

Underrated: writing the restrictions before simplifying. They come from the original denominator and survive the cancellation.

Plain wrong: the claim that a cancelled factor “disappears”. It leaves a hole in the graph, and the function is still undefined there.

Horizontal Asymptotes and Mistakes to Avoid

Degree of top vs bottomHorizontal asymptoteExample
Top smallery = 01/(x + 2)
Equaly = ratio of leading coefficients(3x + 1)/(x − 5) → y = 3
Top biggernone (slant if exactly one bigger)x²/(x − 1)
  • Cancelling terms instead of factors, such as (x + 3) ÷ 3.
  • Finding excluded values after cancelling, which hides the holes.
  • Skipping the final check when solving a rational equation.

Why Students Get Stuck on Rational Expressions, and What a Good Calculator Should Do

Searching for help with rational expressions usually starts late at night with one problem that will not work out. Factoring and cancelling are easy to misapply, and restrictions are easy to forget. A good calculator fixes that by showing each step, checking its own answer and explaining the idea in plain words. This section covers what students struggle with, what they want, and how this page responds.

In short: students need to factor first, cancel factors and note the restrictions, not just see a final number, and a calculator earns trust only when its steps can be checked.

Understand the frustrations and desires

What they feel, and what they want

Each frustration points to a wish: a clearer step, a built-in check, an explanation in plain words.

  • Wants the factoring shown first
  • Wants restrictions listed
  • Wants addition and division shown

Build the page around their intent

Each intent has a place on this page

The page follows intent, not features, so each need has a clear starting point.

  • I need an answer now: type the problem into the calculator at the top of this page.Simplify (x^2 - 9)/(x - 3)
  • I need to understand: the sections below explain the idea in plain words and list the common mistakes.
  • I need to check my work: every step is shown, so the first line that differs from yours is the one to study.
  • I need practice: open the solver, tap + and choose Create Practice Test.
  • I need it explained aloud: in the solver, tap + and choose Create Video.

Rational Expression: Questions People Ask

What is a rational expression?

A fraction whose numerator and denominator are polynomials, such as (x² − 4)/(x + 2).

How do you simplify a rational expression?

Factor the numerator and denominator completely, cancel the shared factors and state any excluded values.

What is an excluded value?

An x-value that makes the original denominator zero. The expression is undefined there.

What is the difference between a hole and a vertical asymptote?

A factor that cancels leaves a hole. A factor that remains in the denominator leaves a vertical asymptote.

Why do rational equations have extraneous solutions?

Multiplying by an expression that can be zero can introduce a root that does not belong to the original equation. Always substitute back.

Can I cancel terms instead of factors?

No. You may only cancel factors that multiply the whole numerator and denominator, never terms that are added.

How do I simplify a rational expression?

Factor the numerator and denominator completely, cancel common factors, then state the values that make the original denominator zero.

How do I add rational expressions with different denominators?

Find the least common denominator, rewrite each fraction over it, add the numerators and simplify.

What is the difference between a hole and a vertical asymptote?

A factor that cancels leaves a hole. A factor that stays in the denominator after simplifying gives a vertical asymptote.

How do I solve a rational equation?

Multiply every term by the common denominator, solve, then reject any answer that makes an original denominator zero.

↑