QR Decomposition Calculator screenshot

QR Decomposition Calculator

Work out the orthonormal Q and upper-triangular R with A = Q × R from matrix whose columns are a₁ … aₙ. Gram–Schmidt on the columns; Rᵢⱼ = qᵢ·aⱼ, Rᵢᵢ = ‖vᵢ‖, and the page prints the substitution so the result can be checked by hand.

Privacy First
0 Runs
Updated 2026-11-22
Runs in your browser
No sign-up, no upload
Formula printed with the answer

QR Decomposition Calculator

Work out the orthonormal Q and upper-triangular R with A = Q × R from matrix whose columns are a₁ … aₙ. Gram–Schmidt on the columns; Rᵢⱼ = qᵢ·aⱼ, Rᵢᵢ = ‖vᵢ‖, and the page prints the substitution so the result can be checked by hand.

How this page computes

Gram–Schmidt on the columns; Rᵢⱼ = qᵢ·aⱼ, Rᵢᵢ = ‖vᵢ‖

Q and R are exact while every column norm is a rational square; from the first irrational norm the page prints decimals and names the column where that started.

Q × R is multiplied back and compared with A, so the factors are verified.

The calculation runs entirely in this browser tab; nothing is uploaded.

QR Decomposition Calculator computes the orthonormal Q and upper-triangular R with A = Q × R. Gram–Schmidt on the columns; Rᵢⱼ = qᵢ·aⱼ, Rᵢᵢ = ‖vᵢ‖. The page prints the rule, the numbers substituted into it and the result, so the arithmetic can be checked by hand.

Q and R are exact while every column norm is a rational square; from the first irrational norm the page prints decimals and names the column where that started. Pressed with matrix whose columns are a₁ … aₙ 1 2; 3 4, it answers: [ 0.316228 0.948683 ]

How to use QR Decomposition Calculator

Enter matrix whose columns are a₁ … aₙ 1 2; 3 4, then press Run: the page evaluates the orthonormal Q and upper-triangular R with A = Q × R and prints every line of the working. Typed input is read exactly as written, and a blank field is refused with its name.

Read the first line as the answer and the lines below it as the substitution. If a value is out of range the page refuses it by field and reason instead of printing a number.

With matrix whose columns are a₁ … aₙ 1 2; 3 4, the answer is [ 0.316228 0.948683 ].

Exact when the norms allow

Q and R are exact while every column norm is a rational square; from the first irrational norm the page prints decimals and names the column where that started.

Q × R is multiplied back and compared with A, so the factors are verified.

What to Expect

Best for

  • Working out the orthonormal Q and upper-triangular R with A = Q × R without a spreadsheet
  • Checking a figure someone else quoted
  • Seeing the formula behind an answer

Not ideal for

  • A rank-deficient matrix is refused, because Q would need a direction the columns do not span.
  • A quantity the page cannot compute, which it refuses instead of estimating
  • Rounding an answer that has an exact form

What this tool keeps

  • Gram–Schmidt on the columns; Rᵢⱼ = qᵢ·aⱼ, Rᵢᵢ = ‖vᵢ‖
  • Every input exactly as typed

What may need cleanup

  • Nothing: the printed answer is the final output
  • A unit conversion, if the inputs were entered in different units

Common errors

  • A rank-deficient matrix is refused, because Q would need a direction the columns do not span.
  • An empty field is refused with the field's name

Example use cases

  • Work out the orthonormal Q and upper-triangular R with A = Q × R for one set of inputs
  • Check the result against the formula by hand
  • See which input the answer is most sensitive to

Sample input

QR Decomposition Calculator: matrix whose columns are a₁ … aₙ 1 2; 3 4

Sample output

[ 0.316228 0.948683 ] — [ 0.948683 -0.316228 ]

Who this is for

  • Students checking a formula
  • Anyone who needs the number and the working

Frequently asked questions

What formula does this page use?

Gram–Schmidt on the columns; Rᵢⱼ = qᵢ·aⱼ, Rᵢᵢ = ‖vᵢ‖. The page prints the substitution as well, so the answer can be checked against the rule.

What does QR Decomposition Calculator refuse?

A rank-deficient matrix is refused, because Q would need a direction the columns do not span.

What does the default example give?

Matrix whose columns are a₁ … aₙ 1 2; 3 4 gives [ 0.316228 0.948683 ]. Every line below that restates the same arithmetic.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.