Partial Fraction Generator Calculator + Step-by-Step Guide

Partial Fraction Generator Calculator (Step-by-Step)

By Dr. Irfan Mansuri
July 20, 2026
9 min read
Algebra & Calculus
Grade 10 – College
Partial fraction generator calculator showing step-by-step decomposition of a rational expression into simpler fractions
Partial fraction generator: decompose a rational expression into simpler fractions with full step-by-step working

In my experience teaching this topic, the single biggest obstacle is not the algebra itself but the setup: students do not know which form to write before they start solving. This guide fixes that first, then gives you a working calculator to check every problem you attempt.

  • Use the calculator to decompose any rational expression with two distinct linear factors instantly.
  • Understand the cover-up method and why it works.
  • See three fully worked examples that mirror the calculator’s output exactly.
  • Avoid the five mistakes that cost students marks on every exam.

My POV

I have watched students spend 20 minutes on a single partial fractions problem because they tried to memorize the method instead of understanding the one underlying principle: you are just finding the values of unknown numerators that make both sides of an equation identical. Once that clicks, the whole technique becomes a two-minute exercise. The calculator below is a check, not a crutch β€” use it to verify your hand work, not replace it.

Quick Answer

A partial fraction generator decomposes a rational expression β€” a polynomial fraction β€” into a sum of simpler fractions. For example, (3x + 5) / ((x + 1)(x + 2)) becomes A/(x + 1) + B/(x + 2). You find A and B by multiplying both sides by the full denominator and substituting strategic x values. This technique is essential for calculus integration and algebraic simplification.

TL;DR – Quick Summary

  • Partial fraction decomposition splits one rational expression into simpler fractions.
  • It only works when the numerator degree is less than the denominator degree.
  • For two distinct linear factors, write A/(factor 1) + B/(factor 2) and solve for A and B.
  • The cover-up method finds each constant in one step by substituting a root.
  • Always verify by recombining your answer over a common denominator.
  • Use this calculator to check your hand-worked solutions instantly.

Partial Fraction Generator

Decomposes: (px + q) / ((x – r₁)(x – r₂)) into A/(x – r₁) + B/(x – r₂)



In (px + q), this is the number in front of x. Enter 0 if there is no x term.


The standalone number in the numerator (can be negative).


If your factor is (x + 1), enter r₁ = -1. If it is (x – 3), enter r₁ = 3.


Must be different from r₁. If your factor is (x + 2), enter r₂ = -2.


Decomposition Result

Step-by-Step Solution

    How to Use This Partial Fraction Generator

    The calculator handles rational expressions of the form (px + q) / ((x – r₁)(x – r₂)) with two distinct linear factors. Follow these steps:

    1. Choose your mode. Select “Linear Numerator” if your numerator contains an x term (e.g. 3x + 5). Select “Constant Numerator” if it is just a number (e.g. 7).
    2. Enter the numerator. Type the coefficient of x (p) and the constant (q) separately. If your numerator is just 5, set p = 0 and q = 5.
    3. Enter the denominator roots. For a factor (x + 1), enter r = -1. For (x – 3), enter r = 3. The roots must be different.
    4. Click Calculate. The result card shows the decomposed form and a numbered solution using the cover-up method.
    5. Verify. The last step in the solution tells you how to check by recombining the fractions.

    What Is Partial Fraction Decomposition?

    Partial fraction decomposition is the process of rewriting a rational expression as a sum of simpler fractions whose denominators are the factors of the original denominator. It is the algebraic reverse of adding fractions over a common denominator.

    For example, if you add 2/(x+1) and 1/(x+2) by hand, you get (3x+5)/((x+1)(x+2)). Partial fraction decomposition runs that process in reverse: you start with (3x+5)/((x+1)(x+2)) and recover 2/(x+1) + 1/(x+2).

    The technique is used in two main contexts:

    • Calculus integration: Integrating 1/(x+1) is trivial (it is ln|x+1| + C). Integrating (3x+5)/((x+1)(x+2)) directly is not. Decompose first, then integrate each simple fraction.
    • Algebra simplification: Splitting a complex fraction into parts makes it easier to analyze, graph, or manipulate.

    The Partial Fraction Formula Explained

    General Form (Distinct Linear Factors)

    (px + q) / ((x - r1)(x - r2))  =  A / (x - r1)  +  B / (x - r2)
    
    Cover-up method:
      A  =  [pΒ·r1 + q] / (r1 - r2)
      B  =  [pΒ·r2 + q] / (r2 - r1)
    Symbol Meaning Notes
    p Coefficient of x in numerator Can be 0 if numerator is a constant
    q Constant term in numerator Can be negative
    r₁, r₂ Roots of the denominator factors Must be distinct (r₁ ≠ r₂)
    A, B Unknown partial fraction constants Found by cover-up or substitution
    deg(N) < deg(D) Proper fraction condition Required before decomposing; do long division first if not met

    SI / dimensional note: Partial fractions are a pure algebraic technique. The variable x is dimensionless in the abstract form. In applied problems (physics, engineering), x carries units and A, B inherit whatever units make the equation dimensionally consistent.

    Worked Examples (Matching the Calculator’s Output)

    Example 1 β€” Classic textbook problem

    Decompose (3x + 5) / ((x + 1)(x + 2))

    1. Write the form: (3x+5)/((x+1)(x+2)) = A/(x+1) + B/(x+2)
    2. Multiply both sides by (x+1)(x+2): 3x+5 = A(x+2) + B(x+1)
    3. Cover-up for A: set x = -1 β†’ 3(-1)+5 = 2; denominator factor (-1-(-2)) = 1 β†’ A = 2/1 = 2
    4. Cover-up for B: set x = -2 β†’ 3(-2)+5 = -1; denominator factor (-2-(-1)) = -1 β†’ B = -1/-1 = 1
    5. Result: 2/(x+1) + 1/(x+2)
    6. Verify: 2(x+2)/(x+1)(x+2) + 1(x+1)/(x+1)(x+2) = (2x+4+x+1)/((x+1)(x+2)) = (3x+5)/((x+1)(x+2)) βœ“
    Example 2 β€” Negative roots

    Decompose 7 / ((x - 1)(x - 4)) (constant numerator mode)

    1. Write the form: 7/((x-1)(x-4)) = A/(x-1) + B/(x-4)
    2. Multiply both sides: 7 = A(x-4) + B(x-1)
    3. Cover-up for A: set x = 1 β†’ numerator = 7; factor (1-4) = -3 β†’ A = 7/(-3) = -7/3
    4. Cover-up for B: set x = 4 β†’ numerator = 7; factor (4-1) = 3 β†’ B = 7/3 = 7/3
    5. Result: -7/3 / (x-1) + 7/3 / (x-4)
    Example 3 β€” Fraction constants

    Decompose (x + 3) / ((x)(x + 5)) β€” enter p=1, q=3, r₁=0, r₂=-5

    1. Write the form: (x+3)/(x(x+5)) = A/x + B/(x+5)
    2. Cover-up for A: set x = 0 β†’ numerator = 3; factor (0-(-5)) = 5 β†’ A = 3/5 = 0.6
    3. Cover-up for B: set x = -5 β†’ numerator = -2; factor (-5-0) = -5 β†’ B = -2/-5 = 0.4
    4. Result: 0.6/x + 0.4/(x+5)
    PARTIAL FRACTION DECOMPOSITION β€” VISUAL FLOW
    
      (3x + 5)
     ─────────────────  ← one complex fraction
     (x + 1)(x + 2)
    
             |
             | STEP 1: Write the target form
             v
    
        A         B
     ───────  +  ───────   ← two simple fractions
      (x+1)       (x+2)
    
             |
             | STEP 2: Multiply both sides by (x+1)(x+2)
             v
    
      3x + 5  =  A(x+2) + B(x+1)
    
             |
             | STEP 3: Cover-up method
             v
    
      x = -1:  3(-1)+5 = 2  β†’  A = 2/(βˆ’1+2) = 2/1 = 2
      x = -2:  3(-2)+5 = -1 β†’  B = -1/(βˆ’2+1) = -1/(-1) = 1
    
             |
             | STEP 4: Write the answer
             v
    
        2         1
     ───────  +  ───────
      (x+1)       (x+2)
    

    Common Mistakes in Partial Fraction Decomposition

    Mistake 1 β€” Skipping the proper-fraction check. If the numerator degree is equal to or greater than the denominator degree, you must do polynomial long division first. Jumping straight to decomposition gives a wrong answer every time.
    Mistake 2 β€” Wrong form for repeated roots. If your denominator has (x + 2)², the correct form is A/(x+2) + B/(x+2)², not A/(x+2) + B/(x+2). Using the same factor twice is a setup error.
    Mistake 3 β€” Wrong form for irreducible quadratics. A factor like (x² + 4) that cannot be factored over the reals needs a numerator of the form (Ax + B), not just A.
    Mistake 4 β€” Sign errors in the roots. Students write r = 1 for the factor (x + 1). The root of (x + 1) is x = -1, not +1. This is the most common arithmetic slip I see.
    Mistake 5 β€” Not verifying. Recombining takes 60 seconds and catches every error. Students who skip verification lose marks they could have recovered.

    My POV

    Mistake 4 above β€” confusing the sign of the root β€” accounts for roughly half of all wrong answers I see on partial fractions tests. The factor (x + k) has root x = -k, full stop. I now tell every student to write the root directly under the factor the moment they set up the problem, before touching any algebra. That one habit eliminates the error entirely.

    Explore the Complete Geometry Formula Sheet

    Unique Insight β€” What Most Guides Get Wrong

    Almost every partial fractions tutorial presents the cover-up method as a “shortcut” separate from the main method. That framing misleads students into thinking there are two different techniques to learn. There is only one principle: you are solving a system of equations. The cover-up method is simply the fastest way to solve that system when the factors are linear and distinct β€” it substitutes the root of each factor to make all terms except one vanish. Understanding this means you can derive the method yourself on any exam, even if you forget the formula. You never need to memorize it; you just need to understand why substituting x = r₁ eliminates the B term.

    Quick Quiz β€” Test Yourself

    Q1. What is the correct partial fraction form for 5 / ((x – 2)(x + 3))?

    Incorrect. You need two different constants: A and B.


    Correct! Two distinct linear factors always get two separate constants A and B.


    Sources & References

    Written and fact-checked by Dr Irfan Mansuri. External links open in a new tab and are provided for further reading and verification.

    Leave a Comment

    Your email address will not be published. Required fields are marked *

    Scroll to Top