calculator.onl
Categories50

Matrix calculator

Add, multiply or transpose matrices, find determinants and inverses, or solve Ax=b.

A worked example

Change b₂ to move the second line. The intersection solves both equations.

x₁1x₂2
Operation: A + B / A × B / Aᵀ / det(A) / A⁻¹ / Ax = b

A: Paste up to 6 × 6 numbers: spaces between columns, new lines or semicolons between rows, decimal point only. For Ax=b, enter b as one column. Numerical elimination uses partial pivoting; rank and singularity depend on a scale-based tolerance. A small residual alone does not guarantee an accurate solution. No symbolic algebra.

B / b: Ax=b → b: n × 1; A+B → B: m × n; A×B → B: n × p. Paste up to 6 × 6 numbers: spaces between columns, new lines or semicolons between rows, decimal point only. For Ax=b, enter b as one column. Numerical elimination uses partial pivoting; rank and singularity depend on a scale-based tolerance. A small residual alone does not guarantee an accurate solution. No symbolic algebra.

Updates as you type

Use a dot or comma for decimals. No thousands separators.

YOUR RESULT

Result

1 2

Calculated from your inputs

Rank2
det(A)-2
κ∞(A)21
‖r‖∞0
StatusCalculated
The numbers, at a glance

Calculations run in your browser.
UNDERSTAND THE RESULT

A little context. A clearer answer.

↑ Back to calculator

When this calculator is useful

Both cases solve the same pair of simultaneous equations with a different right-hand side, so the coefficients stay fixed while the solution moves. Change “B / b” from [5] [11] to [5] [13] and keep the other inputs from the worked example. The value for “Result” goes from [1] [2] to [3] [1]. For a related calculation, try Linear interpolation calculator.

What to enter

InputWhat it meansExample value
OperationOperation: A + B / A × B / Aᵀ / det(A) / A⁻¹ / Ax = bAx = b
AA: Paste up to 6 × 6 numbers: spaces between columns, new lines or semicolons between rows, decimal point only. For Ax=b, enter b as one column. Numerical elimination uses partial pivoting; rank and singularity depend on a scale-based tolerance. A small residual alone does not guarantee an accurate solution. No symbolic algebra.1 2 3 4
B / bB / b: Ax=b → b: n × 1; A+B → B: m × n; A×B → B: n × p. Paste up to 6 × 6 numbers: spaces between columns, new lines or semicolons between rows, decimal point only. For Ax=b, enter b as one column. Numerical elimination uses partial pivoting; rank and singularity depend on a scale-based tolerance. A small residual alone does not guarantee an accurate solution. No symbolic algebra.5 11

How the calculation works

  1. Add, multiply or transpose matrices, find determinants and inverses, or solve Ax=b.
  2. Paste up to 6 × 6 numbers: spaces between columns, new lines or semicolons between rows, decimal point only. For Ax=b, enter b as one column. Numerical elimination uses partial pivoting; rank and singularity depend on a scale-based tolerance. A small residual alone does not guarantee an accurate solution. No symbolic algebra.
  3. Read the result and compare it with the diagram.
The formulaCᵢⱼ = ΣₖAᵢₖBₖⱼ; Ax = b; r = ‖Ax−b‖∞

A worked example

Matrix calculator: A = [1 2; 3 4], b = [5; 11] → x = [1; 2]; det(A) = −2.

Example you can load

What to enter
Result for this example · Result1 2

This is a fixed example; changing the form above does not change these numbers.

Assumptions & limits

Paste up to 6 × 6 numbers: spaces between columns, new lines or semicolons between rows, decimal point only. For Ax=b, enter b as one column. Numerical elimination uses partial pivoting; rank and singularity depend on a scale-based tolerance. A small residual alone does not guarantee an accurate solution. No symbolic algebra.

Reference ·

Frequently asked questions

How is the result calculated?

Add, multiply or transpose matrices, find determinants and inverses, or solve Ax=b. Cᵢⱼ = ΣₖAᵢₖBₖⱼ; Ax = b; r = ‖Ax−b‖∞

How should I enter the values?

Operation, A, B / b. A = [1 2; 3 4], b = [5; 11] → x = [1; 2]; det(A) = −2.

What are the limits?

Paste up to 6 × 6 numbers: spaces between columns, new lines or semicolons between rows, decimal point only. For Ax=b, enter b as one column. Numerical elimination uses partial pivoting; rank and singularity depend on a scale-based tolerance. A small residual alone does not guarantee an accurate solution. No symbolic algebra.