Partial fraction decomposition

Edit the example and calculate.

Break a quotient of polynomials into a polynomial part plus one simple fraction for each factor of the denominator. You enter the numerator and the factors, and the calculator returns each coefficient as an exact fraction and checks that the sum gives back your numerator.

Enter the values

Result

Exact where indicated

Complete the fields and select Calculate.

List coefficients from lowest to highest degree, separated by commas; use 1/2 for a rational coefficient. Put each denominator factor on its own line as “coefficients;multiplicity”. Linear and irreducible quadratic factors are supported, up to total degree 6. The tool does not factor automatically.

Decompose a rational expression using denominator factors you supply.

Example: Numerator: 1. Factors: “0,1;1” for x and “1,1;1” for x+1. Result: 1/x − 1/(x+1).

Worked example

Each denominator factor gives one partial fraction

Write A/x + B/(x+1) and match numerators: 1 = A(x+1) + Bx. Setting x = 0 gives A = 1; setting x = −1 gives B = −1.

1/(x(x+1)) = 1/x − 1/(x+1). Check: ((x+1) − x)/(x(x+1)) = 1/(x(x+1)).

How is this result checked?Report an errorHow we handle corrections

Key facts

What it returns
It returns a polynomial part and one simple fraction per factor, as in 1/(x(x + 1)) = 1/x − 1/(x + 1).
You supply the factors
The denominator is not factored for you, so each linear or irreducible quadratic factor goes on its own line, with its multiplicity.
Repeated factor
A factor raised to the power k gives k terms, one for each power from the first up to the k-th.
Quadratic factor
A quadratic with no rational roots, such as x² + 1, gets a numerator of the form Bx + D.
Large numerator
If the degree of the numerator reaches that of the denominator, you divide first and the quotient becomes the polynomial part.
Check
The terms are recombined with exact fractions, and the resulting numerator must match yours.

Formula

P/Q = C + A/(x − r) + (Bx + D)/(x^2 + px + q)

Example:1/(x(x + 1)) = 1/x − 1/(x + 1)

C is the quotient of P divided by Q. Each linear factor contributes a constant A, and each irreducible quadratic a numerator Bx + D.

Published · Updated


For (3x + 5)/((x + 1)(x + 2)), enter 5,3 as the numerator and the factors 1,1;1 and 2,1;1: you get 2/(x + 1) + 1/(x + 2), with x ≠ −1 and x ≠ −2. If what you need is to cancel common factors, use algebraic fractions.

Worked example: split into simple fractions

Split the quotient into simple fractions. Inputs: numerator `5,3`; factors `1,1;1` and `2,1;1`.

  1. Set up one term per factor. the quotient = A/(x + 1) + B/(x + 2).
  2. Equate the numerators. 3x + 5 = A(x + 2) + B(x + 1).
  3. Substitute two values of x. With x = −1 the second term vanishes: 3(−1) + 5 = 2 = A · 1, so A = 2. With x = −2 the first vanishes: 3(−2) + 5 = −1 = B · (−1), so B = 1.

Result: 2/(x + 1) + 1/(x + 2), with x ≠ −1 and x ≠ −2.

Check it with x = 1: the original fraction is 8/6 = 4/3, and 2/2 + 1/3 also gives 4/3. Also, 2(x + 2) + (x + 1) = 3x + 5.

How to enter the data

Coefficients go from lowest to highest degree, separated by commas: first the constant term, then the coefficient of x and, if there is one, that of x². Each factor takes one line in the form coefficients;multiplicity. Coefficients are integers or fractions such as 1/2, never decimals. The limit is total degree 6 in the denominator.

Expression Enter it as
x 0,1;1
x − 1 -1,1;1
x² + 1 1,0,1;1
(x + 1)² 1,1;2
numerator x² + 1 1,0,1

Note that the constant term comes first: x − 1 is -1,1, not 1,-1. If a factor appears twice, combine it on a single line with its multiplicity, because two identical lines are rejected.

What changes with the denominator

The method is the same in every case: one term for each factor and each power, equate the numerators and solve for the coefficients. What varies is the form of each term.

Three denominator shapes and their decompositions
CaseFractionDecomposition
Repeated factor(2x + 1)/(x(x + 1)²)1/x − 1/(x + 1) + 1/(x + 1)²
Quadratic factor(x + 2)/(x(x² + 1))2/x + (1 − 2x)/(x² + 1)
High-degree numeratorx³/((x + 1)(x + 2))x − 3 − 1/(x + 1) + 8/(x + 2)

Read each row from left to right: the shape of the denominator decides how many terms appear and of what kind. If the denominator shares a factor with the numerator, simplify first with algebraic fractions and decompose afterward. To find the factors of a denominator of degree 3 or higher, the guide on the domain and factoring of algebraic fractions explains how to look for its zeros.

Where to go next

If you need to cancel common factors or work with expressions containing x, use algebraic fractions, which also keeps the restrictions. When there is an equals sign and you are solving for x, go to fraction equations. For a purely numerical expression, with no x, use fraction expressions.

English Wikipedia describes partial fraction decomposition and requires the numerator over an irreducible factor to have degree lower than that factor, so a quadratic factor gets a linear numerator, as in the table above (accessed October 17, 2026).

Frequently asked questions

How do I factor the denominator before using the calculator?

For a quadratic such as x² + 7x + 12, look for two numbers that add to 7 and multiply to 12: they are 3 and 4, so it becomes (x + 3)(x + 4). With degree 3 or higher, try rational roots: divisors of the constant term over divisors of the leading coefficient. Then enter 3,1;1 and 4,1;1.

Does it help with preparing an integral or a Laplace transform?

Yes, it is the step before. With 1/((x − 1)(x + 2)) = (1/3)/(x − 1) − (1/3)/(x + 2), each term is integrated separately and gives (1/3)ln|x − 1| − (1/3)ln|x + 2| + C. This page only decomposes; the integral or the inverse transform is computed separately.

How do I enter a factor whose leading coefficient is not 1, such as 2x + 1?

With its two coefficients, from lowest to highest degree: 1,2;1. For 1/(x(2x + 1)) the result is 1/x − 2/(2x + 1), and 1·(2x + 1) − 2x = 1 gives back the numerator. The factor is shown exactly as you type it, without dividing by 2.

What if the denominator has a factor of degree 3?

The calculator accepts only linear or quadratic factors, so the cubic has to be split first. If it has a rational root, as x³ − 8 does with root 2, it becomes (x − 2)(x² + 2x + 4) and you can enter it. If it has no rational root, it does not fit in the tool.

Next step

Simplify and operate on algebraic fractions Reduce a rational expression in x and see which values are excluded: (x² − 1)/(x − 1) = x + 1, with x ≠ 1.

YOUR CALCULATOR, CLOSE AT HAND

Save your calculator

Open your browser menu and choose “Install app” or “Add to Home Screen”. You can also bookmark this page.