Z-Transform Calculator
Forward and inverse Z-transforms with every step: table pairs, partial fractions of X(z)/z, poles and region of convergence. Free.
Z-Transform Calculator
One-sided Z-transform (n ≥ 0), forward and inverse
Z-transform pairs
| x[n], n ≥ 0 | X(z) | ROC |
|---|---|---|
| δ[n] | 1 | all z |
| u[n] | z/(z − 1) | |z| > 1 |
| aⁿ | z/(z − a) | |z| > |a| |
| n·aⁿ | a·z/(z − a)² | |z| > |a| |
| n²·aⁿ | a·z(z + a)/(z − a)³ | |z| > |a| |
| cos(ωn) | z(z − cos ω)/(z² − 2z·cos ω + 1) | |z| > 1 |
| sin(ωn) | z·sin ω/(z² − 2z·cos ω + 1) | |z| > 1 |
| aⁿ·cos(ωn) | z(z − a·cos ω)/(z² − 2a·cos ω·z + a²) | |z| > |a| |
Worked inverse examples
Pick any of these in the calculator to see every step. All checked against a series expansion in SymPy.
| X(z) | x[n] | First values |
|---|---|---|
| z/((z − 1)(z − 1/2)) | 2 − 2·(1/2)ⁿ | 0, 1, 3/2, 7/4, … |
| (z + 1)/(z² − 1/4) | 3·(1/2)ⁿ + (−1/2)ⁿ − 4·δ[n] | 0, 1, 1, 1/4, … |
| z/(z − 1)³ | n(n − 1)/2 | 0, 0, 1, 3, 6, … |
| z/(z² − z − 1) | Fibonacci numbers: (φⁿ − ψⁿ)/√5 | 0, 1, 1, 2, 3, 5, 8, … |
Common questions
What is the Z-transform?
The one-sided Z-transform of a sequence x[n], n ≥ 0, is X(z) = Σ x[n]·z^(−n). It does for discrete-time signals what the Laplace transform does for continuous ones: difference equations become algebra, and the poles of X(z) tell you how x[n] behaves.
How do you find the inverse Z-transform?
Divide X(z) by z and split X(z)/z into partial fractions. Each term then gives a table pair after multiplying back by z: z/(z − p) ↔ pⁿ, z/(z − p)² ↔ n·p^(n−1), and a constant ↔ δ[n]. Complex poles r·e^(±jθ) give rⁿ·(B·cos nθ + C·sin nθ).
What is the region of convergence?
For a sequence that starts at n = 0, X(z) converges outside a circle: |z| > the largest pole magnitude. The system is stable when that circle lies inside the unit circle |z| = 1.
How does LapCalc check the answer?
Forward results are checked by adding up Σ x[n]·z^(−n) numerically at three values of z. Inverse results are checked exactly: LapCalc divides X(z) out in powers of z^(−1) and compares the first 20 values with the formula.
Is it free?
Yes. Both directions, every step and the checks are free.
Laplace Transform Calculator · Partial Fraction Calculator · Transfer Function Workbench