Rational Expressions Calculator

Free rational expressions calculator with step-by-step solutions. Simplify, add, subtract, multiply, and divide rational expressions. Shows domain restrictions and factored forms.

Try an example

Use ^ for exponents: x^2 means x². Supports polynomials in x with integer coefficients.

Simplified Expression
x + 2
x − 2

Domain Restrictions

Values of x where the original expression is undefined

x ≠ 2

Step-by-Step Solution

7 steps to reach the result

1

Original expression

(x² − 4) / (x² − 4x + 4)

2

Factor numerator

(x − 2)(x + 2)

3

Factor denominator

(x − 2)²

4

Common factor (GCD)

x − 2

5

Cancel common factors

(x + 2) / (x − 2)

Result

(x + 2) / (x − 2)

7

Domain restrictions

x ≠ 2

What Are Rational Expressions?

The building blocks of algebraic fractions

A rational expression is a fraction where both the numerator and denominator are polynomials. Just as rational numbers are ratios of integers (like 3/4), rational expressions are ratios of polynomials (like (x² − 4)/(x − 2)).

P(x)/Q(x)

Ratio of polynomials

Q(x) ≠ 0

Denominator not zero

Factor & cancel

Simplification method

Key idea: Simplifying rational expressions works exactly like simplifying numeric fractions — factor both parts, then cancel common factors. The difference is that you factor polynomials instead of numbers.

How to Simplify Rational Expressions

The 3-step factoring method

Step 1.Factor the numerator and denominator

Break each polynomial into its irreducible factors. Use techniques like GCF extraction, difference of squares (a² − b² = (a−b)(a+b)), perfect square trinomials, and the AC method for quadratics.

Step 2.Cancel common factors

Any factor that appears in both numerator and denominator can be divided out. Each cancelled factor creates a domain restriction (a "hole" in the graph).

Step 3.State the domain restrictions

The simplified expression equals the original for all x except where the original denominator was zero. Always list these excluded values.

Worked Example

Simplify (x² − 4) / (x² − 4x + 4)

= (x − 2)(x + 2) / (x − 2)²

= (x + 2) / (x − 2), x ≠ 2

Operations on Rational Expressions

Adding, subtracting, multiplying, and dividing

OperationFormula
Additiona/b + c/d = (ad + bc) / bd
Subtractiona/b − c/d = (ad − bc) / bd
Multiplication(a/b) × (c/d) = ac / bd
Division(a/b) ÷ (c/d) = ad / bc

Add / Subtract

Find LCD, rewrite each fraction, combine numerators, simplify

Multiply / Divide

Cross-cancel first, then multiply straight across (flip for division)

Domain Restrictions Explained

Understanding holes and vertical asymptotes

A rational expression is undefined wherever its denominator equals zero. These excluded values form the domain restrictions and come in two types:

Removable (Hole)

Factor cancels from numerator and denominator. The graph has a "hole" at that x-value.

(x−2)(x+1) / (x−2)

= x + 1, hole at x = 2

Non-removable (Asymptote)

Factor remains in the denominator after simplification. The graph has a vertical asymptote.

(x+1) / (x−3)

= asymptote at x = 3

Important: When you simplify a rational expression, the cancelled factors still restrict the domain. Always state domain restrictions based on the original denominator, not the simplified one.

Key Factoring Techniques

Essential methods for working with rational expressions

GCF (Greatest Common Factor)

6x² + 9x = 3x(2x + 3)

Difference of Squares

x² − 9 = (x − 3)(x + 3)

Perfect Square Trinomial

x² + 6x + 9 = (x + 3)²

Trinomial (AC Method)

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

Sum/Difference of Cubes

x³ − 8 = (x − 2)(x² + 2x + 4)

Finding the LCD (Least Common Denominator)

Essential for adding and subtracting rational expressions

To add or subtract rational expressions, you need a common denominator — specifically, the least common denominator (LCD). The LCD is the LCM (least common multiple) of the denominators.

Step 1.Factor each denominator completely

x² − 1 = (x−1)(x+1), x − 1 = (x−1)

Step 2.Include each factor at its highest power

LCD = (x−1)(x+1)

Step 3.Multiply each fraction by the missing factors

Second fraction gets multiplied by (x+1)/(x+1)

Common Mistakes to Avoid

Frequent errors when working with rational expressions

Do This

  • Factor completely before cancelling any terms
  • Cancel only factors, never individual terms
  • State domain restrictions from the original expression
  • Find the LCD before adding or subtracting
  • Flip the second fraction when dividing, then multiply

Avoid This

  • Cancelling terms instead of factors: (x+3)/x ≠ 3
  • Forgetting domain restrictions after simplifying
  • Adding fractions without a common denominator
  • Distributing the denominator: (a+b)/c ≠ a/(c) + b
  • Confusing (x²−4)/(x−2) with x²−4/(x−2)

Where Rational Expressions Are Used

Practical applications beyond algebra class

Physics & Engineering

Ohm's law for parallel resistors (1/R = 1/R₁ + 1/R₂), lens equations, and transfer functions in control systems all involve adding and simplifying rational expressions.

Rate & Work Problems

When two workers complete a job at different rates, their combined rate is the sum of rational expressions: 1/t₁ + 1/t₂ = 1/t_total.

Chemistry & Medicine

Dilution formulas (C₁V₁/V₂), drug concentration models over time, and reaction rate equations frequently use rational expressions.

Economics & Finance

Average cost functions, supply-demand equilibrium models, and elasticity calculations are expressed as ratios of polynomials.

Frequently Asked Questions

Common questions about simplifying and operating on rational expressions

Embed Rational Expressions Calculator

Add this calculator to your website or blog for free.

Last updated Apr 15, 2026