Matrix Power Calculator
Raise a square matrix to any whole power, exactly, up to 8×8. See how repeated squaring saves work, and where applying a matrix again and again leads.
Matrix and power
Enter a square matrix and a whole-number exponent, or start from an example.
Up to 8 rows and 8 columns.
Use integers, decimals, or fractions such as 1/3. Paste rows from a spreadsheet or a Python list into any cell.
Input
Power
Updates as you type.
Repeated squaring
The current power of two
The running product
In binary, 13 is 1101, so splits into . Keep squaring, and multiply in each square whose digit is 1.
What a matrix power means
For a square matrix and a whole number , means multiplying by itself times:
Only a square matrix has powers, because the sizes have to match at every product. You can check any single product with the Matrix Multiplication Calculator. By convention, . A negative power means a power of the inverse, , so it exists only when is invertible. The Matrix Inverse Calculator shows that inverse being built.
Repeated squaring
Multiplying one at a time takes products. Squaring gets there much faster, because , , , and so on each take just one product. Any exponent is a sum of powers of two, which its binary digits spell out. For example, 13 is 1101 in binary, so:
That's 5 products rather than 12. At , it's 15 rather than 999.
Why powers are useful
Applying a matrix over and over models anything that updates in fixed steps. Three classic cases:
- Fibonacci numbers. The entries of are Fibonacci numbers, so squaring finds a far-off one in a few products.
- Markov chains. If a matrix holds the probabilities of moving between states, its th power holds the probabilities after steps, and they often settle to a steady pattern.
- Long-run behavior. The eigenvalues decide what happens. Powers shrink to zero if every eigenvalue is smaller than 1 in size, and grow if any is larger. The Linear Transformation Visualizer shows the directions those eigenvalues belong to.
Related calculators
Keep working with matrices.
Matrix Diagonalization Calculator
Write a square matrix as PDP⁻¹, exactly when you can, or see which eigenvalue is short of eigenvectors. Watch it change basis, scale along axes, and change back.
Eigenvalue and Eigenvector Calculator
Find eigenvalues and eigenvectors with exact fractions, square roots, and complex values, plus each multiplicity. Spin a vector until the matrix only stretches it.
Matrix Multiplication Calculator
Multiply two to four matrices with exact fractions, entry-by-entry explanations, and Python list import and export.
Matrix Inverse Calculator
Invert a square matrix with exact fractions, step through [A | I] to [I | A⁻¹], and see the inverse undo the transformation.
Linear Transformation Visualizer
Drag basis vectors to see a 2×2 or 3×3 matrix move the plane or space, with live determinant, rank, and eigen-directions, and a match-the-target game.