Math & StatisticsFormula-based · Runs in your browser

Matrix Calculator

Perform addition, subtraction, and multiplication on 2x2 and 3x3 matrices.

Loading calculator…

Saved locally, explained clearly

Drafts, calculations, scenarios, and workflow progress stay in this browser unless you export them.

Opening local database…

Calculation steps

Follow what happened from the selected formula to the displayed answer.

Show substituted values and intermediate working
Calculate current inputs to see the working.
  1. 1

    Formula selected

    The calculator uses the following formula or method.

    Matrix addition, subtraction, multiplication, or determinant follows the selected linear-algebra operation.

  2. 2

    Values entered

    Your values are placed into the calculation.

    Enter values to see what is used in this step.

  3. 3

    Result calculated

    The formula or method produces the following result values.

    Results will appear after a successful calculation.

  4. 4

    Answer formatted

    Displayed values are rounded and formatted using each output’s configured precision.

Scenario comparison

Save working scenarios, then select two or three to compare. Formula versions and inputs remain visible.

No scenarios saved for this calculator yet.

Recent calculations

Successful calculations are retained locally according to your privacy settings.

No local history for this calculator yet.

Data and privacy

How it works

Perform addition, subtraction, and multiplication on 2x2 and 3x3 matrices.

Input query strings and outputs

Use an input name in this page’s URL as ?name=value, and join additional inputs with &. Portable shared links may instead use the compact ?ac= state parameter.

Input query strings

3
  • ?val= Val

    Number · Optional

  • ?size= Matrix size

    Choice · Optional · Default: 2

  • ?operation= Operation

    Choice · Optional · Default: +

Outputs

1
  • result Result

    Text · Primary output

result contains the calculator’s complete rendered result area, including its visible result cards, tables, charts, and messages.

Perform 2x2 and 3x3 matrix arithmetic

Description

The Matrix Calculator is a visual tool for linear algebra. It allows you to define two matrices (A and B) and perform fundamental arithmetic operations between them. With support for both 2x2 and 3x3 dimensions, it is an ideal companion for students and engineers working on systems of equations or geometric transformations.

Inputs

  • Size Selection: Switch between 2x2 or 3x3 matrix formats.
  • Matrix A & B: Interactive grids where you can input individual cell values.
  • Operations:
    • + (Addition)
    • - (Subtraction)
    • × (Multiplication)

Outputs

  • Result Matrix: A visual grid displaying the calculated values resulting from the operation.

Chart

  • N/A: This tool features an interactive 2D data grid.

“Good to Know”

  • Matrix Multiplication: Unlike regular numbers, matrix multiplication is not commutative ($A \times B$ is usually not the same as $B \times A$). It involves multiplying rows by columns.
  • Identity Matrix: Multiplying any matrix by the Identity matrix (1s on the diagonal, 0s elsewhere) will result in the original matrix.
  • Subtraction: Subtracting Matrix B from Matrix A is equivalent to $A + (-1 \times B)$.

Examples

Example 1: Simple 2x2 Addition

  • Input:
    • A: [[1, 2], [3, 4]]
    • B: [[5, 6], [7, 8]]
    • Op: +
  • Output: [[6, 8], [10, 12]]

Example 2: 2x2 Multiplication

  • Input:
    • A: [[1, 2], [3, 4]]
    • B: [[2, 0], [1, 2]]
    • Op: ×
  • Output: [[4, 4], [10, 8]]

Example 3: 3x3 Identity Check

  • Input:
    • A: any 3x3 matrix
    • B: [[1, 0, 0], [0, 1, 0], [0, 0, 1]]
    • Op: ×
  • Output: Exactly the same as Matrix A.
Sources
  • No external reference is listed for this calculator. Its formula and variable definitions are shown above.
Limitations
  • Results depend on the selected method and input assumptions. Displayed decimals may be rounded; retain appropriate precision for later calculations.