Generate Unit Matrix
Create an identity (unit) matrix of any size with 1s on the diagonal and 0s elsewhere.
What Is a Unit (Identity) Matrix?
Type a size, hit generate, and you get Iₙ — 1s down the diagonal, 0s everywhere else. Works up to 100×100, with space, comma, or tab separators for pasting into code, spreadsheets, or LaTeX. And everything runs in your browser. Nothing gets uploaded.
FAQ
What is the difference between a unit matrix and identity matrix?
They are the same thing. "Unit matrix" and "identity matrix" are interchangeable terms for a square matrix with 1s on the diagonal and 0s elsewhere.
What is the determinant of an identity matrix?
The determinant of any identity matrix is always 1.
What happens when you multiply by the identity matrix?
Multiplying any matrix A by the identity matrix returns A unchanged: AI = IA = A.
What is the maximum size?
You can generate identity matrices up to 100×100 in this tool.