Matrix By Scalar Calculator - Scalar kA Cell-by-Cell Result

Use this matrix by scalar calculator to multiply a 2x2 matrix by a single scalar k and read each cell of the result matrix B in the result panel.

Updated: June 16, 2026 • Free Tool

Matrix By Scalar Calculator

The number that multiplies every cell of matrix A. Can be any real number, including zero, negative, or fractional values.

Top-left cell of the 2x2 input matrix A.

Top-right cell of the 2x2 input matrix A.

Bottom-left cell of the 2x2 input matrix A.

Bottom-right cell of the 2x2 input matrix A.

Results

B row 1, col 1 (k * A11)
0
B row 1, col 2 (k * A12) 0
B row 2, col 1 (k * A21) 0
B row 2, col 2 (k * A22) 0

What Is a Matrix by Scalar Calculator?

A matrix by scalar calculator multiplies a 2x2 input matrix A by a single real number k and shows the four cell-by-cell products of the result matrix B in the result panel. Use it for a linear-algebra homework problem, a 2D graphics scaling, or a quick sanity test on a system that scales a fixed shape by a constant factor.

  • Linear-algebra homework: Check the kA scaling of a 2x2 matrix without redoing the per-cell arithmetic by hand.
  • 2D graphics scaling: Scale a 2x2 transformation matrix by a constant so a 2D scale, reflection, or shear stays correct.
  • Study and self-check: Confirm the per-cell rule b[i][j] = k * a[i][j] against your own work when learning the operation.
  • Quick sign-rule check: Use negative or fractional scalars to see how the sign of every cell flips or shrinks.

The calculator accepts the four cells of a 2x2 matrix A in row-column order, plus a single scalar k, and applies k to each cell. The output keeps the same 2x2 shape, so reading the answer matches reading the input.

For broader linear-algebra work on the same 2x2 layout, the matrix addition calculator covers the cell-by-cell sum of two matrices in a single pass.

How the Matrix by Scalar Calculator Works

The rule is one line: multiply every cell of A by the scalar k. The pure calculation function reads the four cells of A and the scalar, then returns the four products in the same row-column order.

B = k * A (b[i][j] = k * a[i][j] for every cell)
  • k: The scalar multiplier, any real number, entered once and applied to every cell.
  • A: The 2x2 input matrix with cells a11, a12, a21, a22 entered in row-column order.
  • B: The 2x2 result matrix with cells b11, b12, b21, b22 in the same row-column order as A.

The output is presented as four labelled cells, so you read each cell of B in the same row-column order as A. The rule generalises to 3x3 and larger square matrices, but the form would grow accordingly.

Worked Example 1 - scale A = [[1, 2], [3, 4]] by k = 3

Scalar k = 3, Matrix A = [[1, 2], [3, 4]]

b11 = 3 * 1 = 3, b12 = 3 * 2 = 6, b21 = 3 * 3 = 9, b22 = 3 * 4 = 12

Result matrix B = [[3, 6], [9, 12]]

Each cell of A was multiplied by the same scalar k, so the result is a 2x2 matrix that is exactly three times A in every cell.

Worked Example 2 - shrink A = [[2, 4], [6, 8]] by k = 0.5

Scalar k = 0.5, Matrix A = [[2, 4], [6, 8]]

b11 = 0.5 * 2 = 1, b12 = 0.5 * 4 = 2, b21 = 0.5 * 6 = 3, b22 = 0.5 * 8 = 4

Result matrix B = [[1, 2], [3, 4]]

A scalar between 0 and 1 shrinks every cell by the same factor, which is how a 2D scale-down of a fixed shape is encoded in matrix form.

According to Wolfram MathWorld, scalar multiplication of a matrix multiplies every entry of the matrix by the same scalar, leaving the shape of the matrix unchanged

If you need the same kA scaling on a 3x3 matrix, the rule is identical, but the input grid grows to nine cells, and the adjoint matrix calculator handles the cofactor expansion for the 2x2 and 3x3 cases.

Key Concepts Behind Scalar Multiplication

Four ideas carry the rest of the calculation: the per-cell rule, the role of the scalar, the sign of the result, and the way scalar multiplication fits with the other matrix operations.

Per-cell product rule

Scalar multiplication is the entrywise product b[i][j] = k * a[i][j]; every cell of the result is the product of the scalar with the matching cell of A, in the same row and column.

The scalar is one number

The scalar k is a single real number, not a vector or another matrix; the same k multiplies all four cells of A, which is what makes the operation a scaling rather than a transformation.

Shape is preserved

Multiplying a 2x2 matrix by any scalar returns a 2x2 matrix, so the result panel keeps the same row-column layout as the input grid and the answer is read cell by cell.

Distributive over addition

For any scalar k and any two 2x2 matrices A and B of the same shape, k * (A + B) = k * A + k * B, which links scalar multiplication back to the cell-by-cell sum of two matrices.

The same idea extends to 3x3 and larger square matrices; the rule is still one scalar times one cell, and the result has the same shape. When the system is part of a 2x2 or 3x3 linear system, the matrix-based solution method uses Cramer's rule or elimination on the same small matrices.

When the system is part of a 2x2 or 3x3 linear system, the system of equations calculator walks through the same small matrices in a Cramer's rule or elimination context, which is where the kA rule reappears in disguise.

How to Use the Matrix by Scalar Calculator

Enter the four cells of matrix A in row-column order, type the scalar k, and read the four cells of the result matrix B from the result panel.

  1. 1 Type the scalar k: Fill in the Scalar k field with the real number that should multiply every cell of A; positive, negative, fractional, and zero values are all accepted.
  2. 2 Type the top row of A: Enter the top row of the 2x2 matrix A in A row 1, col 1 and A row 1, col 2, in left-to-right order.
  3. 3 Type the bottom row of A: Enter the bottom row of A in A row 2, col 1 and A row 2, col 2, in left-to-right order.
  4. 4 Read the result matrix B: Look at the four labelled cells in the result panel; each cell shows the product of k with the matching cell of A.
  5. 5 Try a different scalar: Change k to see the result update cell by cell and check how sign and magnitude shift.
  6. 6 Reset to the defaults: Click Reset to restore the default scalar and 2x2 matrix A for a quick check of the rule.

The form loads with scalar k = 3 and matrix A = [[1, 2], [3, 4]], so the result panel shows B = [[3, 6], [9, 12]] right away. To encode a 5x scale, type 5 in the scalar field and change the four cells of A to 1, 0, 0, 1; the result returns B = [[5, 0], [0, 5]].

When the same 2x2 matrix shows up as a coefficient matrix in a linear system, the elimination method calculator walks through the same cells to reduce the system to row-echelon form.

Benefits of Using the Matrix by Scalar Calculator

The per-cell rule is short, but mixing up the sign or the order is the most common source of errors in a small matrix. The calculator removes the arithmetic risk without hiding the rule.

  • Cell-by-cell product without redoing the arithmetic: Each of the four output cells is the product of k with the matching cell of A, so the answer is read directly from the result panel.
  • Scalar and matrix stay on screen together: The scalar field and the four cells of A remain visible in the form, so you can cross-check the inputs against the matching output cells of B at a glance.
  • Handles positive, negative, fractional, and zero scalars: Cells can be 0.25, 1.5, -3, or any other real number; the calculation keeps full double precision internally and rounds only at the display step.
  • Matches the textbook per-cell rule exactly: b[i][j] = k * a[i][j] is the rule used in linear-algebra texts, and the calculator applies it the same way for integers, decimals, and negatives.
  • Quick check for the identity and zero cases: Setting k = 1 returns the input matrix unchanged, and k = 0 returns the 2x2 zero matrix; both edge cases are visible without changing the matrix A.

For problems that involve several matrix operations in sequence, the page-level links below cover the related operations on the same small matrices.

When the same matrix needs its trace, determinant, or eigenvalues, the characteristic polynomial calculator reads the same cells to build p(λ) = det(A − λI), so the input matrix from this page is the starting point of that calculation.

Factors That Affect Your kA Result

A handful of input choices and structural facts decide whether the result matrix B is the right kA scaling of the input matrix A.

The value of the scalar k

The same matrix A produces a different B for every value of k, so the result is sensitive to the sign and magnitude of k; doubling k doubles every cell, and a negative k flips the sign of every cell.

Sign of each input cell

Each cell follows the sign rules of ordinary multiplication, so a positive cell becomes negative when k is negative, a negative cell becomes positive, and a zero cell stays zero for any k.

Shape of the input matrix

The calculator is fixed to a 2x2 input matrix and a 2x2 result matrix, so the four cells of A always map one-to-one to the four cells of B; the same rule extends to 3x3 and larger square matrices, but the form would grow accordingly.

Decimal precision of the cells

Inputs can be decimals like 0.25 or 1.5, and the calculation keeps full double precision internally; rounding happens only at the display step.

  • The calculator is limited to a 2x2 input matrix and a single scalar; for 3x3 and larger square matrices, the same rule applies, but you would need a 3x3 tool to enter all nine cells.
  • Output values are rounded to four decimal places for display, so a true fraction like 1/3 will appear as 0.3333; the underlying calculation keeps the full value, but the visible cell shows the rounded form.

Scalar multiplication is not the same as matrix multiplication; the scalar multiplies one matrix by one number, while matrix multiplication combines two matrices of compatible shapes into a new matrix.

According to Wikipedia, scalar multiplication of a matrix is the entrywise product of the scalar with each element of the matrix, so the result matrix has the same dimensions as the input

As published by Khan Academy, multiplying a 2x2 matrix by a scalar k multiplies each of the four entries by k, so the sign of every cell follows the sign of the scalar

For a broader set of linear-algebra operations on the same 2x2 and 3x3 matrices, the matrix calculator covers matrix operations including addition, subtraction, multiplication, transpose, determinant, and inverse.

matrix by scalar calculator showing a 2x2 input matrix A, a scalar k field, and the matching 2x2 result matrix B built cell by cell
matrix by scalar calculator showing a 2x2 input matrix A, a scalar k field, and the matching 2x2 result matrix B built cell by cell

Frequently Asked Questions

Q: How do you multiply a matrix by a scalar?

A: To multiply a 2x2 matrix A by a scalar k, take the scalar and multiply it by each of the four cells of A in row-column order. The result matrix B has the same 2x2 shape, and each cell of B is the product of k with the matching cell of A.

Q: What is the rule for scalar multiplication of a matrix?

A: The rule is b[i][j] = k * a[i][j] for every row i and column j. Apply the same scalar k to all four cells of a 2x2 matrix, and you get a 2x2 result matrix with the row-column order preserved.

Q: How do you multiply a 2x2 matrix by a scalar with an example?

A: Take A = [[1, 2], [3, 4]] and k = 3. The result is B = [[3 * 1, 3 * 2], [3 * 3, 3 * 4]] = [[3, 6], [9, 12]]. The shape of the matrix does not change; only the magnitudes of the four cells change.

Q: Is scalar multiplication the same as matrix multiplication?

A: No. Scalar multiplication takes one real number and one matrix and returns a new matrix of the same shape, while matrix multiplication takes two matrices of compatible shapes and returns a new matrix whose shape is determined by the inner dimensions. They use the same word, but they are different operations.

Q: What are the properties of scalar matrix multiplication?

A: Scalar multiplication is associative, k * (A + B) = k * A + k * B is distributive over matrix addition, and 1 * A = A while 0 * A is the zero matrix. Each property follows from the per-cell rule b[i][j] = k * a[i][j].

Q: Can you multiply any matrix by any scalar?

A: Yes, you can multiply any real matrix by any real scalar, including negative, fractional, and zero values, and the result keeps the same shape as the input. The per-cell rule b[i][j] = k * a[i][j] works for any real k and any real matrix A.