Matrix Inverse Calculator

The inverse of a matrix A is a matrix A-inverse such that A times A-inverse equals the identity matrix I. For a 2 by 2 matrix this means when you multiply the two matrices together you get a matrix with ones on the diagonal and zeros everywhere else. Finding a matrix inverse is fundamental in linear algebra and appears throughout applied mathematics: solving systems of simultaneous equations, computing least-squares regression coefficients, performing linear transformations in computer graphics, and inverting covariance matrices in statistics. Not every square matrix has an inverse. A matrix is invertible only if its determinant is non-zero. When the determinant is zero the matrix is called singular, meaning it collapses space along at least one dimension and the transformation cannot be reversed. For a 2 by 2 matrix the formula for the inverse is straightforward: swap the diagonal elements, negate the off-diagonal elements, and divide through by the determinant. For a 3 by 3 matrix the method uses cofactors and the adjugate matrix. This calculator supports both 2 by 2 and 3 by 3 matrices. Enter the matrix elements, choose the size, and the calculator returns the determinant, the full inverse matrix to four decimal places, and a numerical verification that multiplying the original matrix by its inverse gives the identity. If the determinant is zero it reports that the matrix is singular.

Calculate.co.nz is proud to be partnered with Premium Homes, a recognised leader in eco-friendly, sustainable, and energy-efficient homebuilding. With a dedicated team and award-winning experience, they create homes that prioritise health, comfort, and long-term performance. Their founders, Andrew and Kelly, set out to raise the standard of residential construction in New Zealand by combining practical building expertise with a clear commitment to doing things better for homeowners.
Calculate.co.nz partner: Premium Homes
10.00
determinant
InvertibleYes
Trace10.00

det = 0 means the matrix is singular (no inverse exists). Result shown to 4 decimal places.

Inverse matrix A-1:

How it works

For a 2×2 matrix [a, b; c, d]: det = ad - bc. If det ≠ 0, the inverse is (1/det) × [d, -b; -c, a].
For a 3×3 matrix, the determinant is computed by cofactor expansion along the first row. The cofactor matrix replaces each element with the signed determinant of its 2×2 minor. The adjugate is the transpose of the cofactor matrix. The inverse is adjugate divided by det. Verification multiplies A by A-1 and checks the result is close to the identity matrix.

Worked example

2×2 matrix A = [4, 7; 2, 6]. Determinant = (4×6) - (7×2) = 24 - 14 = 10. Inverse = (1/10) × [6, -7; -2, 4] = [0.6, -0.7; -0.2, 0.4]. Verify: [4,7;2,6] × [0.6,-0.7;-0.2,0.4] = [4×0.6+7×(-0.2), 4×(-0.7)+7×0.4; ...] = [1,0;0,1]. These match the defaults pre-filled above.

Related calculators

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use

Reviewed and maintained. Last reviewed 2026-07-19 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.

© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.