Adding rational expressions is much like adding ordinary fractions: the denominators must match before you combine the numerators. With variable denominators, there is one extra rule. Keep track of excluded variable values from the original fractions, even when simplification removes a factor.

What is a rational expression?

A rational expression is a quotient of two polynomials, for example x + 1x − 2. The denominator cannot equal zero, so that expression excludes x = 2.

Adding or subtracting rational expressions means combining these variable fractions while preserving their values and original domain restrictions.

Add or subtract fractions with a common denominator

When denominators match, combine only the numerators. Keep the common denominator unchanged.

3x + 1 + 5x + 1 = 8x + 1   (x ≠ −1)

Subtract the entire second numerator, including all its terms. A minus sign outside parentheses changes the sign of every term inside.

Pause and check: What is 4x + 3x − 2 − x + 1x − 2?

3x + 2x − 2, with x ≠ 2.

Find the least common denominator

Factor every denominator. The least common denominator, or LCD, contains each distinct factor raised to the greatest power that appears in any denominator.

1x + 2x + 3

The LCD is x(x + 3). Multiply each numerator and denominator by the factor it is missing, then combine the numerators.

x + 3x(x + 3) + 2xx(x + 3) = 3x + 3x(x + 3)

Retain x ≠ 0 and x ≠ −3. The numerator 3x + 3 can be factored as 3(x + 1), but no denominator factor cancels.

Factor, simplify and retain restrictions

If one denominator is x² − 4, factor it as (x − 2)(x + 2). If another is x − 2, the larger factored denominator already contains both factors. It is the LCD.

After combining, factor the complete numerator and cancel common nonzero factors. Never cancel across addition unless a common factor has first been factored from the entire numerator. The original excluded values stay excluded.

Examples

Example 1: Matching denominators

Simplify 5x − 1x + 4 + 2x + 6x + 4. Keep x + 4 unchanged.

5x − 1 + 2x + 6x + 4 = 7x + 5x + 4

Exclude x = −4.

Example 2: Distinct denominators

Simplify 2x − 1 + 3x + 2. The LCD is (x − 1)(x + 2).

2(x + 2) + 3(x − 1)(x − 1)(x + 2) = 5x + 1(x − 1)(x + 2)

Exclude x = 1 and x = −2.

Example 3: Subtract a whole numerator

Simplify 3x + 2x − x − 4x. Distribute the minus sign to both terms.

3x + 2 − (x − 4)x = 2x + 6x

The original domain excludes x = 0.

Example 4: A shared factor cancels

Simplify 1x − 2 − 4x² − 4. Factor x² − 4 and use its factored form as the LCD.

x + 2 − 4(x − 2)(x + 2) = x − 2(x − 2)(x + 2) = 1x + 2

Both x = 2 and x = −2 remain excluded, even after cancellation.

Video lessons

Rational expression addition and subtraction calculator

Enter nonzero integer numerators a and c and integer denominator constants b and d from −100 to 100. Choose addition or subtraction for a divided by (x + b) and c divided by (x + d). The tool finds the LCD, combines numerators, and preserves original exclusions.

Exercises (10 questions)

Try these ten questions without the calculator first. Choose an answer, submit it, and read the explanation. Review any question that gives you trouble.

Interactive practiceQuestion 1 of 10
Simplify (5 divided by (x + 2)) + (3 divided by (x + 2)).
0 of 10 answered

For extra paper practice, download the free adding and subtracting rational expressions worksheet (PDF), with each answer showing the original excluded values.

Frequently asked questions

Why do I need a common denominator?

The fractions must count equal-sized parts before their numerators can combine.

Should I factor first?

Yes. Factoring reveals shared denominator factors and helps find the LCD.

When do original restrictions disappear?

They do not disappear even if a common factor cancels.

Can the result be zero?

Yes, when numerators cancel after matching denominators; the original denominator restrictions still apply.

Related topics