Last updated October 5, 2026 · Report an error
Raising a matrix to a power comes up in Markov chains, graph theory (counting paths of a given length), and systems that evolve step by step — but doing repeated matrix multiplication by hand is tedious and error-prone.
This calculator raises a 2×2 up to 6×6 matrix to an integer power by repeated matrix multiplication.
How it works
Choose a matrix size, enter the matrix elements, and choose a power n (1 to 6). The calculator multiplies the matrix by itself n times, using standard matrix multiplication at each step.
- Enter power (n).
- Click Calculate to see your results.
Examples
Squaring a 2×2 matrix
The matrix [[1, 2], [3, 4]] squared (power 2) gives [[7, 10], [15, 22]].
Who should use it
- Coursework involving Markov chains, graph theory, or linear recurrences.
- Quickly checking a hand-calculated matrix power.
Industry applications
- Linear algebra and mathematics education
- Computer science (graph algorithms, Markov models)
Advantages
- Shows the underlying repeated-multiplication process, not just the final answer.
- Supports both 2×2 and 3×3 matrices up to the 6th power.
Limitations
- Limited to integer powers from 1 to 6 for square matrices up to 6×6.
Common mistakes to avoid
- Confusing matrix power with squaring each individual element — matrix power uses full matrix multiplication, not element-wise exponentiation.
- Attempting to raise a non-square matrix to a power, which isn't defined.
Best practices
- For larger powers, consider whether you actually need the full matrix or just specific behavior (like long-run Markov chain probabilities), since higher powers grow the numbers quickly.
Tips
- If you're working with a Markov transition matrix, raising it to increasingly large powers shows how the system's state probabilities evolve and eventually stabilize.