Partial Fraction Calculator
Free, with steps: factor the denominator, choose the right form, find every coefficient and check the result. Exact fractions, no rounding.
Partial Fraction Calculator
Type a fraction of two polynomials in s or x
The four cases
- Different linear factors: one constant per factor, A/(s + a) + B/(s + b). The cover-up method gives each constant directly.
- Repeated linear factor (s + a)n: n terms, A₁/(s + a) + A₂/(s + a)² + … + Aₙ/(s + a)n. Leaving out a power is the most common mistake.
- Irreducible quadratic s² + ps + q with no real roots: a linear numerator, (Bs + C)/(s² + ps + q). For Laplace work, complete the square to match the shifted sine and cosine pairs.
- Improper fraction (numerator degree not lower): divide the polynomials first and split only the remainder.
Worked examples
Copy any input into the calculator above to see every step.
| Input | Case | Partial fractions |
|---|---|---|
| (2*s+3)/((s+1)*(s+4)) | Two linear factors | 1/(3(s + 1)) + 5/(3(s + 4)) |
| 1/(s^2*(s+1)) | Repeated factor s² | 1/(s + 1) − 1/s + 1/s² |
| (3*s^2+2*s+1)/(s+1)^3 | Factor repeated three times | 3/(s + 1) − 4/(s + 1)² + 2/(s + 1)³ |
| (s^2+1)/(s*(s^2+4)) | Irreducible quadratic | 1/(4s) + 3s/(4(s² + 4)) |
| (4*s^2+3)/((s+1)*(s^2+1)) | Linear and quadratic | 7/(2(s + 1)) + (s − 1)/(2(s² + 1)) |
| (6*s+2)/(3*s^2+5*s-2) | Leading coefficient 3 | 12/(7(3s − 1)) + 10/(7(s + 2)) |
| 1/(s^4-1) | Difference of squares twice | 1/(4(s − 1)) − 1/(4(s + 1)) − 1/(2(s² + 1)) |
| (x^3+1)/(x^2-1) | Improper, common factor | x + 1/(x − 1) |
Common questions
What is partial fraction decomposition?
It rewrites a fraction of two polynomials as a sum of simpler fractions, one for each factor of the denominator. For example (2s + 3)/((s + 1)(s + 4)) = 1/(3(s + 1)) + 5/(3(s + 4)).
Why do engineers need partial fractions?
Inverse Laplace transforms. Once F(s) is split into partial fractions, every term is a standard table pair such as A/(s + a) → A·e^(−at), so f(t) can be read off term by term.
What is the cover-up method?
For a linear factor (s − a) that appears once, cover that factor up in the original fraction and put s = a in what is left. The number you get is the coefficient over (s − a).
What form do I use for a repeated or quadratic factor?
A repeated factor (s + a)^n needs n terms, A₁/(s + a) up to Aₙ/(s + a)^n. An irreducible quadratic needs a linear numerator, (Bs + C)/(s² + ps + q).
Is the partial fraction calculator free?
Yes. The decomposition and every step are free, with no account needed.
Learn more
Laplace Transform Calculator · Inverse Laplace Transform Calculator · Step & Piecewise Calculator