Matrix Calculator

Perform basic matrix operations such as addition, subtraction, and scalar multiplication using custom dimensions.

Addition and subtraction require both matrices to have the same size. Scalar multiplication uses only Matrix A.

Matrix A

Matrix B

Result will appear here.
Metric Value

Privacy: calculations run locally in your browser. No matrix values are stored or transmitted.

How it works

Use the same matrix size for A and B, choose an operation, then compute the result. Scalar multiplication applies a number k to every value in Matrix A.

Examples

  • Addition: two 2×2 matrices added entry by entry
  • Subtraction: A − B with matching dimensions
  • Scalar multiplication: k × A multiplies each entry by the same number

FAQ

  • What can this matrix calculator do?

    This tool supports matrix addition, subtraction, and scalar multiplication for custom matrix sizes.

  • Do both matrices need the same size?

    For addition and subtraction, yes. For scalar multiplication, only Matrix A is required.

  • Can I use decimals and negative numbers?

    Yes. The calculator accepts integers, decimals, and negative values.

  • Are my calculations stored?

    No. Everything runs locally in your browser.

Related tools