Matrix Power Calculator

Raise a square matrix to an integer power. Calculate matrix squares, cubes, higher positive powers, the identity matrix for power zero, and negative powers for invertible matrices.

Calculate a Matrix Power

Enter a square matrix and an integer exponent. Use one row per line, separating entries with spaces or commas.

Example: enter 1 2 on the first line and 3 4 on the second line to form a 2 × 2 matrix.

Supported exponents: -20 through 20. Negative exponents require an invertible matrix.

What Is a Matrix Power?

A matrix power is the product of a square matrix multiplied by itself repeatedly. If A is a square matrix, then:

A² = A × A A³ = A × A × A Aⁿ = A multiplied by itself n times

Matrix powers are defined for square matrices because matrix multiplication requires compatible dimensions, and repeated multiplication of a square matrix preserves its dimensions.

Special Matrix Exponents

Example: Squaring a 2 × 2 Matrix

For the matrix below:

A = 1 2 3 4

Its square is:

A² = 1×1 + 2×3 1×2 + 2×4 3×1 + 4×3 3×2 + 4×4 = 7 10 15 22

Enter this example in the calculator with exponent 2 to verify the result.

Related Matrix Calculators

Frequently Asked Questions

Can I raise a rectangular matrix to a power?

Ordinary integer matrix powers require a square matrix, because the matrix must be multiplied by itself repeatedly.

What happens when the exponent is zero?

For a square matrix, the zeroth power is the identity matrix of the same dimensions.

Can I use a negative exponent?

Yes, if the matrix is invertible. The calculator finds the inverse and raises that inverse to the corresponding positive power.

Why can a negative power fail?

A singular matrix has no inverse. Therefore, its negative integer powers are undefined.

Why are there limits on the exponent and matrix size?

The limits help keep calculations responsive on shared hosting and reduce the risk of numerical overflow. Large powers can produce very large values even for small matrices.