Matrix Scalar Multiplication Calculator
Multiply a 2 × 2 or 3 × 3 matrix by a scalar (constant). Enter the scalar k and the entries of matrix A to get the resulting matrix kA instantly.
Multiply a Matrix by a Scalar (Constant)
Matrix Scalar Multiplication Formula
Where:
- \(k\) — the scalar (any real constant)
- \(A\) — the original \(n \times n\) matrix
- \(a_{ij}\) — the entry in row \(i\), column \(j\) of \(A\)
- \(kA\) — the resulting matrix, where every entry is \(k\) times the corresponding entry of \(A\)
Scalar multiplication simply scales every entry of the matrix by the same constant. The size and shape of the matrix never change — only the values do.
Matrix Scalar Multiplication – Calculation Example
Example: multiply the 3 × 3 matrix \(A\) below by the scalar \(k = 3\).
\[ A = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix} \]
Each entry is multiplied by 3:
\[ 3A = \begin{bmatrix} 3 \cdot 1 & 3 \cdot 2 & 3 \cdot 3 \\ 3 \cdot 4 & 3 \cdot 5 & 3 \cdot 6 \\ 3 \cdot 7 & 3 \cdot 8 & 3 \cdot 9 \end{bmatrix} = \begin{bmatrix} 3 & 6 & 9 \\ 12 & 15 & 18 \\ 21 & 24 & 27 \end{bmatrix} \]
Result: the resulting matrix is \(\begin{bmatrix} 3 & 6 & 9 \\ 12 & 15 & 18 \\ 21 & 24 & 27 \end{bmatrix}\).
How to use the calculator
- Choose the Matrix size — either 2 × 2 or 3 × 3 — from the dropdown. When you pick 2 × 2, the fields for the third row and column are hidden automatically.
- Enter the constant in the Scalar (k) field. It can be positive, negative, zero, or a decimal.
- Fill in every visible entry of Matrix A (a₁₁, a₁₂, a₁₃, a₂₁, and so on). The subscript tells you the position: the first number is the row, the second is the column.
- Read the Resulting Matrix (kA) shown under “Your Results”. Each cell displays the corresponding entry of \(A\) multiplied by \(k\), rounded to two decimal places.
What is scalar multiplication of a matrix?
In linear algebra, a scalar is a single number, as opposed to a matrix, which is a rectangular array of numbers. Multiplying a matrix by a scalar means multiplying every single entry of that matrix by the same number. The result is a new matrix of exactly the same dimensions — scalar multiplication never changes the size of a matrix.
This operation is different from matrix multiplication, where two matrices are multiplied together using row-by-column dot products. Scalar multiplication is much simpler: it is just repeated ordinary multiplication applied entry by entry. For example, if \(k = 2\) and one entry of \(A\) is 5, the matching entry of \(kA\) is \(2 \times 5 = 10\).
Geometrically, if a matrix represents a transformation of space, multiplying it by a scalar \(k\) stretches (or shrinks) that transformation by a factor of \(k\) in every direction. With \(k > 1\) the result is magnified, with \(0 < k < 1\) it is shrunk, and with a negative \(k\) the result is flipped through the origin: every entry changes sign.
Scalar multiplication appears constantly in applied work: scaling coefficient matrices in systems of equations (related to the elimination method), normalizing data tables, adjusting weights, and building linear combinations of matrices. Note that scalar multiplication also plays nicely with matrix addition: \(k(A + B) = kA + kB\).
Key properties
- Order of the result: \(kA\) always has the same dimensions as \(A\).
- Commutativity with the scalar: \(kA = Ak\) — the scalar can be written on either side.
- Associativity: \(c(kA) = (ck)A\) — multiplying by two scalars in a row is the same as multiplying by their product once.
- Distributivity over scalars: \((c + k)A = cA + kA\).
- Distributivity over matrices: \(k(A + B) = kA + kB\).
- Multiplying by 1: \(1 \cdot A = A\) — the identity scalar leaves the matrix unchanged.
- Multiplying by 0: \(0 \cdot A\) is the zero matrix — every entry becomes 0.
- Negative scalars: \((-1)A\) flips the sign of every entry, which is exactly the matrix \(-A\).
Limitations and practical tips
- This calculator handles square matrices only (2 × 2 or 3 × 3). For rectangular matrices you can still apply the same rule by hand: multiply every entry by \(k\).
- Results are rounded to two decimal places for display, so entries with many decimals may appear slightly rounded. Use exact inputs (integers or simple fractions) when you need an exact answer.
- Very large scalars or entries can produce large results; the calculator works with floating-point numbers, so extreme values may lose precision.
- Remember the difference between \(kA\) (scalar multiplication) and \(k \cdot I\) (a scalar times the identity matrix). They are not the same thing: \(kI\) has \(k\) on the diagonal and zeros elsewhere.
- If you are scaling a matrix as part of solving a linear system, each row operation must be applied to the whole augmented matrix — check the elimination method calculator for that workflow, or explore patterns in square grids with the magic square generator.
Frequently Asked Questions
How do I multiply a matrix by a scalar by hand?
Multiply every single entry of the matrix by the scalar and write the products in the same positions. For example, if k = 4 and the first row of the matrix is \(\begin{bmatrix} 2 & -1 \end{bmatrix}\), the first row of \(kA\) is \(\begin{bmatrix} 8 & -4 \end{bmatrix}\). Repeat this for all entries — there is no row-by-column pairing like in matrix multiplication, just entry-by-entry arithmetic.
What is the difference between scalar multiplication and matrix multiplication?
Scalar multiplication multiplies a matrix by a single number, so every entry is scaled by the same constant. Matrix multiplication multiplies two matrices together using row-by-column dot products, and it is only defined when the number of columns of the first matrix equals the number of rows of the second. The two operations follow different rules — for example, \(kA\) always has the same dimensions as \(A\), while \(AB\) may have different dimensions.
Does the determinant also get multiplied by the scalar?
Not by the scalar itself — for an \(n \times n\) matrix, \(\det(kA) = k^n \det(A)\). So doubling every entry of a 2 × 2 matrix multiplies its determinant by \(2^2 = 4\), not by 2. This is a very common mistake on exams. The trace, however, does scale simply: \(\operatorname{tr}(kA) = k \operatorname{tr}(A)\).
Can the scalar be negative, zero, or a fraction?
Yes, the scalar can be any real number. A negative scalar flips the sign of every entry, so \(-2A\) doubles each entry and negates it. With \(k = 0\) every entry becomes 0, giving the zero matrix. A fraction like \(k = 0.5\) shrinks every entry by half, which is often used to average or normalize matrices.
Is scalar multiplication commutative — does kA equal Ak?
When k is a scalar (a plain number), yes: \(kA = Ak\) and both equal the matrix with every entry multiplied by \(k\). However, if \(k\) is itself a matrix, \(kA\) and \(Ak\) are matrix products, and matrix multiplication is generally not commutative — \(AB \neq BA\) in most cases. Context determines whether \(k\) is a number or a matrix.
How does scalar multiplication work with matrix addition?
They combine through the distributive property: \(k(A + B) = kA + kB\). You can either add the matrices first and then scale, or scale each one first and then add — the result is identical. This works entry by entry because \(k(a_{ij} + b_{ij}) = k\,a_{ij} + k\,b_{ij}\) is just ordinary distributivity of numbers. This rule underlies linear combinations like \(2A + 3B\).
Why does the result only have two decimal places?
The display rounds each entry to two decimals for readability. If you multiply entries with many decimal digits, the shown values may be slightly rounded — for instance 3 × 0.123456 = 0.370368 appears as 0.37. When you need an exact result, enter integers or terminating decimals and do a quick check by hand, since the underlying computation itself is not rounded, only the display.