MatrixStep

Scalar Multiplication Calculator

Multiplies every entry of the matrix by the same number k.

INPUT

Integers, fractions (1/3) and decimals (0.25) are accepted. Empty cells count as 0. Paste a block of numbers from a spreadsheet or textbook into the first cell to fill the whole matrix.

RESULT

LaTeX is the math code you can paste into Overleaf, Notion equation blocks or Word's equation editor.

Scalar multiplication

kA is the matrix obtained by multiplying every entry of A by k. The size stays the same.

Full explanation with examples: Matrix Addition, Subtraction and Scalar Multiplication: Rules and Examples

Exam tipFor an n×n matrix, det(kA) = kⁿ·det(A).

How to do it by hand

  1. Multiply every entry of the matrix by the same number k. The size stays the same.
  2. If k is a fraction, multiply each entry as a fraction and reduce where possible.
  3. k = −1 flips every sign; k = 0 gives the zero matrix.
Worked example

With k = 3 and A = [1 −2; ½ 0],

3A = [3·1 3·(−2); 3·½ 3·0] = [3 −6; 3/2 0]

With k = ½ instead, ½A = [½ −1; ¼ 0].

Where is it used?

  • Changing units: multiplying a coordinate matrix in meters by 100 converts it to centimeters.
  • Normalizing a probability matrix by dividing everything by the total (multiplying by 1/total) is a scalar multiplication.
  • In the inverse formula A⁻¹ = (1/det A)·adj(A), scaling the adjugate by 1/det is exactly this operation.

Common mistakes

  • Multiplying only the diagonal by k. That confusion comes from det(kA) = kⁿ det(A). Scalar multiplication hits every entry.
  • Dropping a sign when k is negative. (−2)·(−3) = 6: two negatives make a positive.
  • Rounding a fractional k to a decimal. ⅓ is not 0.33. Keep the fraction.

How to use

  1. Set the matrix size with the row and column buttons. Up to 6×6 is supported.
  2. Type numbers into the cells and the result updates instantly. Enter fractions as 1/3 and negatives as -2.
  3. Enter moves to the next cell; the ← → ↑ ↓ arrow keys move between cells.
  4. Open ‘Steps’ to see the full working. ‘Copy LaTeX’ copies the result as math code you can paste into Overleaf, a Notion equation block or Word's equation editor.

FAQ

Can k be a fraction?
Yes. Fractions like 3/2 and decimals like 0.5 both work.

Related guides