Understand the subject
What does matrix subtraction do?
Subtraction compares corresponding entries in the same ordered layout.
Use it to find an exact entry-by-entry change from B to A.
See the structure
What the calculation is doing
1234
same positions5678
(A−B)ᵢⱼ = aᵢⱼ − bᵢⱼWorked interpretation
Read the result in context
(A−B)ᵢⱼ = aᵢⱼ − bᵢⱼ
Interpret with care
Important boundary
Changing the order changes the sign of every difference.
Use the Matrix Calculator to experiment with small exact matrix operations before applying a more specialized route.
Quick guide
How to use this calculator
- Give A and B matching dimensions.
- Enter every matrix value.
- Read A − B in the original row and column order.
Calculation method
Subtract corresponding entries
For equally sized matrices, subtract each entry of B from the entry occupying the same position in A.
Worked example
Subtract two 2 × 2 matrices
Subtract [[1,2],[3,4]] from [[5,6],[7,8]].
[[5,6],[7,8]] − [[1,2],[3,4]] = [[4,4],[4,4]]
Supported inputs
Precision and limits
Matrix size
Each input matrix may contain 1–6 rows and 1–6 columns.
Entry precision
Each signed decimal may contain up to 30 digits and 15 decimal places.
Exactness
Finite decimals are converted to reduced fractions before calculation; matrix arithmetic is not rounded.